Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce capture response delay time #2147

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 8 additions & 24 deletions A3-Antistasi/functions/Base/fn_markerChange.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,14 @@ garrison setVariable [format ["%1_requested", _markerX], [], true];
if (_winner == teamPlayer) then
{
_super = if (_markerX in airportsX) then {true} else {false};
if(_positionX distance2D posHQ > distanceMission) then
{
[_markerX, _looser, _super] spawn
{
params ["_marker", "_loser", "_super"];
waitUntil
{
sleep 10;
spawner getVariable _marker == 2
};
if(sidesX getVariable [_marker, sideUnknown] == _loser) exitWith {};
[[_marker, _loser, _super], "A3A_fnc_singleAttack"] call A3A_fnc_scheduler;
};
}
else
{
[_markerX, _looser, _super] spawn
{
params ["_marker", "_loser", "_super"];
sleep (random ((15 - tierWar) * 60));
if(sidesX getVariable [_marker, sideUnknown] == _loser) exitWith {};
[[_marker, _loser, _super], "A3A_fnc_singleAttack"] call A3A_fnc_scheduler;
};
};
[_markerX, _looser, _super] spawn
{
params ["_marker", "_loser", "_super"];
private _waitTime = (6 - tierWar/2) * (0.5 + random 0.5);
sleep (_waitTime * 60);
if(sidesX getVariable [_marker, sideUnknown] == _loser) exitWith {};
[[_marker, _loser, _super], "A3A_fnc_singleAttack"] call A3A_fnc_scheduler;
};
}
else
{
Expand Down