Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isServer) then
- {
- waitUntil { sleep 10; a3a_var_started };
- minBlueForces = 6;
- minRedForces = 5;
- _missionEndTime = diag_tickTime + 120*60;
- _piska = 0;
- while {isNil "srv_triggerFinished"} do {
- sleep 3;
- if (T_14 getHitPointDamage "hitEngine" < 0.7) then {srv_triggerFinished = true; ["Победа ВС РФ. Армату починили.", east] call a3a_fnc_endMission;};
- if (_piska == 0) then {
- if (T_14 getVariable 'controledBy' == west) then { T_14 allowdammage true; _piska = 1;};
- };
- if (!alive T_14) then {srv_triggerFinished = true; ["Победа ВС РФ. Армата уничтожена.", east] call a3a_fnc_endMission;}
- if (diag_tickTime > _missionEndTime) then {if (T_14 getVariable 'controledBy' == west) then {srv_triggerFinished = true; ["Победа армии США. Армата захвачена.", west] call a3a_fnc_endMission;}
- else {srv_triggerFinished = true; ["Победа ВС РФ. Армата удержана.", east] call a3a_fnc_endMission;};};
- if (east countside playableUnits < minRedForces) then {srv_triggerFinished = true; ["Победа армии США. Силы ВС РФ были разбиты.", west] call a3a_fnc_endMission;};
- if (west countside playableUnits < minBlueForces) then {srv_triggerFinished = true; ["Победа ВС РФ. Силы армии США были разбиты.", east] call a3a_fnc_endMission;};
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement