mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
BIN
SQF/dayz_code/anim/saw_idle.rtm
Normal file
BIN
SQF/dayz_code/anim/saw_idle.rtm
Normal file
Binary file not shown.
@@ -1,20 +1,13 @@
|
|||||||
private ["_weapons","_magazines","_weaponscnt","_magazinescnt","_backpack"];
|
private ["_weapons","_magazines","_weaponscnt","_magazinescnt","_backpack"];
|
||||||
_backpack = nearestObject [player, "Bag_Base_EP1"];
|
_backpack = nearestObject [player, "Bag_Base_EP1"];
|
||||||
if (!(isNull _backpack) and local _backpack) then {
|
if (!(isNull _backpack)) then{}
|
||||||
|
if (!local _backpack) then{
|
||||||
_weapons = getWeaponCargo _backpack;
|
_weapons = getWeaponCargo _backpack;
|
||||||
_magazines = getMagazineCargo _backpack;
|
_magazines = getMagazineCargo _backpack;
|
||||||
_weaponscnt = count(_weapons select 0);
|
_weaponscnt = count(_weapons select 0);
|
||||||
_magazinescnt = count(_magazines select 0);
|
_magazinescnt = count(_magazines select 0);
|
||||||
if ((_magazinescnt > 0) or(_weaponscnt > 0)) then{
|
if ((_magazinescnt > 0) or(_weaponscnt > 0)) then{
|
||||||
/* PVS/PVC - Skaronator */
|
hideObject _backpack;
|
||||||
_pos = getPosATL player;
|
};
|
||||||
_inRange = _pos nearEntities ["CAManBase",300];
|
|
||||||
{
|
|
||||||
// run only on other players
|
|
||||||
if(isPlayer _x and _x != player) then {
|
|
||||||
PVDZE_send = [_x,"HideObj",[_backpack]];
|
|
||||||
publicVariableServer "PVDZE_send";
|
|
||||||
};
|
|
||||||
} forEach _inRange;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user