Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.40 KB | None | 0 0
  1. if (isServer) then
  2. {
  3.     waitUntil { sleep 10; a3a_var_started };
  4.     minBlueForces = 6;
  5.     minRedForces = 5;
  6.     _missionEndTime = diag_tickTime + 120*60;
  7.     _piska = 0;
  8.     while {isNil "srv_triggerFinished"} do {
  9.         sleep 3;
  10.         if (T_14 getHitPointDamage "hitEngine" < 0.7) then {srv_triggerFinished = true; ["Победа ВС РФ. Армату починили.", east] call a3a_fnc_endMission;};
  11.         if (_piska == 0) then {
  12.         if (T_14 getVariable 'controledBy' == west) then { T_14 allowdammage true; _piska = 1;};
  13.         };
  14.         if (!alive T_14) then {srv_triggerFinished = true; ["Победа ВС РФ. Армата уничтожена.", east] call a3a_fnc_endMission;}
  15.         if (diag_tickTime > _missionEndTime) then {if (T_14 getVariable 'controledBy' == west) then {srv_triggerFinished = true; ["Победа армии США. Армата захвачена.", west] call a3a_fnc_endMission;}
  16.         else {srv_triggerFinished = true; ["Победа ВС РФ. Армата удержана.", east] call a3a_fnc_endMission;};};
  17.         if (east countside playableUnits < minRedForces) then {srv_triggerFinished = true; ["Победа армии США. Силы ВС РФ были разбиты.", west] call a3a_fnc_endMission;};
  18.         if (west countside playableUnits < minBlueForces) then {srv_triggerFinished = true; ["Победа ВС РФ. Силы армии США были разбиты.", east] call a3a_fnc_endMission;};
  19.         };
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement