mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
send roadflare to only other players
This commit is contained in:
@@ -65,8 +65,10 @@ if (_ammo isKindOf "SmokeShell") then {
|
|||||||
_pos = getPosATL player;
|
_pos = getPosATL player;
|
||||||
_inRange = _pos nearEntities ["CAManBase",1250];
|
_inRange = _pos nearEntities ["CAManBase",1250];
|
||||||
{
|
{
|
||||||
PVDZE_send = [_x,"RoadFlare",[_projectile,0]];
|
if(isPlayer _x and _x != player) then {
|
||||||
publicVariableServer "PVDZE_send";
|
PVDZE_send = [_x,"RoadFlare",[_projectile,0]];
|
||||||
|
publicVariableServer "PVDZE_send";
|
||||||
|
};
|
||||||
} forEach _inRange;
|
} forEach _inRange;
|
||||||
|
|
||||||
_id = _this spawn player_throwObject;
|
_id = _this spawn player_throwObject;
|
||||||
@@ -79,8 +81,10 @@ if (_ammo isKindOf "SmokeShell") then {
|
|||||||
_pos = getPosATL player;
|
_pos = getPosATL player;
|
||||||
_inRange = _pos nearEntities ["CAManBase",1250];
|
_inRange = _pos nearEntities ["CAManBase",1250];
|
||||||
{
|
{
|
||||||
PVDZE_send = [_x,"RoadFlare",[_projectile,1]];
|
if(isPlayer _x and _x != player) then {
|
||||||
publicVariableServer "PVDZE_send";
|
PVDZE_send = [_x,"RoadFlare",[_projectile,1]];
|
||||||
|
publicVariableServer "PVDZE_send";
|
||||||
|
}
|
||||||
} forEach _inRange;
|
} forEach _inRange;
|
||||||
|
|
||||||
_id = _this spawn player_throwObject;
|
_id = _this spawn player_throwObject;
|
||||||
|
|||||||
Reference in New Issue
Block a user