mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Merge pull request #866 from dayz10k/master
melee mags for skinchanges, actions after skinchanges
This commit is contained in:
@@ -90,6 +90,13 @@ player allowDamage true;
|
||||
player addWeapon "Loot";
|
||||
player addWeapon "Flare";
|
||||
|
||||
//melee check
|
||||
_wpnType = primaryWeapon player;
|
||||
_ismelee = (gettext (configFile >> "CfgWeapons" >> _wpnType >> "melee"));
|
||||
if (_ismelee == "true") then {
|
||||
call dayz_meleeMagazineCheck;
|
||||
};
|
||||
|
||||
sleep 0.1;
|
||||
|
||||
if (!isNull _old) then {
|
||||
|
||||
@@ -208,4 +208,15 @@ diag_log str(getMagazineCargo unitBackpack _newUnit);
|
||||
_playerUID=getPlayerUID player;
|
||||
_playerObjName = format["player%1",_playerUID];
|
||||
call compile format["%1 = player;",_playerObjName];
|
||||
publicVariable _playerObjName;
|
||||
publicVariable _playerObjName;
|
||||
|
||||
//melee check
|
||||
_wpnType = primaryWeapon player;
|
||||
_ismelee = (gettext (configFile >> "CfgWeapons" >> _wpnType >> "melee"));
|
||||
if (_ismelee == "true") then {
|
||||
call dayz_meleeMagazineCheck;
|
||||
};
|
||||
|
||||
//reveal all near objects.
|
||||
{player reveal _x} forEach (nearestObjects [getPosATL player, ["All"], 75]);
|
||||
//All is arbitrary and will need to be changed to ["AllVehicles","WeaponHolder","tentStorage"] ++ others (stashes etc.)
|
||||
|
||||
Reference in New Issue
Block a user