Skip to content

Commit

Permalink
Optimze
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeno69 committed Feb 28, 2023
1 parent e1b3d9d commit 82c6f3c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Binary file modified co30_Domination.Altis/mission.sqm
Binary file not shown.
14 changes: 13 additions & 1 deletion co30_Domination.Altis/server/fn_vehirespawn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,26 @@ if (_vec isKindOf "Boat_F") then {

sleep 5;

if (isNil "d_vec_respawn_blocked") then {
d_vec_respawn_blocked = false;
};

private ["_disabled", "_empty"];
while {true} do {
_disabled = false;
_empty = false;
if (_delay != -1) then {
sleep (_delay + random 20);
} else {
sleep (2 + random 10);
sleep (2 + random 8);
};

while {d_vec_respawn_blocked} do {
sleep 0.3;
};

d_vec_respawn_blocked = true;

if (alive _vec) then {
_empty = (crew _vec) findIf {alive _x} == -1;
__TRACE_2("","_vec","_empty")
Expand Down Expand Up @@ -242,4 +252,6 @@ while {true} do {
};
_vec setDamage 0;
};

d_vec_respawn_blocked = false;
};

0 comments on commit 82c6f3c

Please sign in to comment.