mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker than forEach.
This commit is contained in:
@@ -309,7 +309,7 @@ r_player_removeActions2 = {
|
||||
if (!isNull r_player_lastVehicle) then {
|
||||
{
|
||||
r_player_lastVehicle removeAction _x;
|
||||
} forEach r_player_actions2;
|
||||
} count r_player_actions2;
|
||||
r_player_actions2 = [];
|
||||
r_action2 = false;
|
||||
};
|
||||
@@ -431,9 +431,9 @@ DAYZ_agentnumber = 0;
|
||||
dayz_animalDistance = 800;
|
||||
dayz_zSpawnDistance = 1000;
|
||||
|
||||
dayz_maxMaxModels = 80; // max quantity of Man models (player or Z, dead or alive) around players. Below this limit we can spawn Z // max quantity of loot piles around players. Below this limit we can spawn some loot
|
||||
dayz_maxMaxModels = 80; // max quantity of Man models (player || Z, dead || alive) around players. Below this limit we can spawn Z // max quantity of loot piles around players. Below this limit we can spawn some loot
|
||||
dayz_spawnArea = 200; // radius around player where we can spawn loot & Z
|
||||
dayz_cantseeDist = 150; // distance from which we can spawn a Z in front of any player without ray-tracing and angle checks
|
||||
dayz_cantseeDist = 150; // distance from which we can spawn a Z in front of any player without ray-tracing && angle checks
|
||||
dayz_cantseefov = 70; // half player field-of-view. Visible Z won't be spawned in front of any near players
|
||||
dayz_canDelete = 300; // Z, further than this distance from its "owner", will be deleted
|
||||
selfTransfusionTime = time; //time to keep for last self transfusion.
|
||||
|
||||
Reference in New Issue
Block a user