mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Update compiles - 2 more files to do
fn_selfActions.sqf player_updateGui.sqf
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
private ["_unit","_ammo","_distance","_weapon","_projectile","_endPos","_dir","_doWait","_vel"];
|
||||
_unit = _this select 0;
|
||||
_weapon = _this select 1;
|
||||
_ammo = _this select 4;
|
||||
_projectile = _this select 6;
|
||||
private ["_distance","_endPos","_doWait","_vel"];
|
||||
_obj = _this select 0;
|
||||
_unit = _obj select 0;
|
||||
//_weapon = _obj select 1;
|
||||
_ammo = _obj select 4;
|
||||
_projectile = _obj select 6;
|
||||
|
||||
_projectile = nearestObject [_unit, _ammo];
|
||||
waituntil {!isnil "dayz_sunRise"};
|
||||
|
||||
_projectile = nearestObject [_unit,_ammo];
|
||||
_endPos = getPosATL _projectile;
|
||||
_dir = 0;
|
||||
|
||||
_doWait = true;
|
||||
while {_doWait} do {
|
||||
@@ -23,11 +25,11 @@ if (_ammo isKindOf "ChemLight") then {
|
||||
_distance = 10;
|
||||
};
|
||||
if (_ammo isKindOf "RoadFlare") then {
|
||||
if (call world_isDay) then {
|
||||
if ((daytime < (24 - dayz_sunRise)) and (daytime > dayz_sunRise)) then {
|
||||
_distance = 30;
|
||||
} else {
|
||||
_distance = 60;
|
||||
};
|
||||
};
|
||||
|
||||
[_unit,_distance,false,_endPos] spawn player_alertZombies;
|
||||
[_unit,_distance,false,_endPos] call player_alertZombies;
|
||||
Reference in New Issue
Block a user