Skip to content

Commit

Permalink
Réactivation des avions d'ambience + défense de zone si ennemi < 60
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBelette committed Oct 4, 2017
1 parent 497e55b commit 25cfb55
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/tgvFrameworkReconfig.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Ceci est le fichier de configuration permettant de modifier le comportement du framework.

// Cette variable permet d'afficher la vidéo TGV au départ de la mission ou lorsqu'un joueur se connecte.
tgvIntroVideo=false;
tgvIntroVideo=true;

// Cette variable permet d'afficher les notifications de début de mission.
tgvNotificationAtStartup=false;
Expand Down
8 changes: 8 additions & 0 deletions function/MIS_fnc_defendArea.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
params ["_side", "_pos", "_radius"];

{
_leaderGroup = leader _x;
if (side _leaderGroup == _side) then {
[_leaderGroup, _pos, _radius] call CBA_fnc_taskDefend;
};
} forEach allGroups;
7 changes: 7 additions & 0 deletions function/MIS_fnc_trigger.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
params ["_condition", "_job"];

_trigger = createTrigger ["EmptyDetector", [0,0,0], false];
_trigger setTriggerActivation ["NONE", "PRESENT", false];
_trigger setTriggerStatements [_condition, _job, ""];

_trigger
12 changes: 9 additions & 3 deletions init/initServer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ MIS_fnc_spawnAndAttack = compile loadFile "function\MIS_fnc_spawnAndAttack.sqf";
MIS_fnc_spawnAndAttackEachTime = compile loadFile "function\MIS_fnc_spawnAndAttackEachTime.sqf";
MIS_fnc_cronjob = compile loadFile "function\MIS_fnc_cronjob.sqf";
MIS_fnc_scenarioTitle = compile loadFile "function\MIS_fnc_scenarioTitle.sqf";
MIS_fnc_trigger = compile loadFile "function\MIS_fnc_trigger.sqf";
MIS_fnc_defendArea = compile loadFile "function\MIS_fnc_defendArea.sqf";

// Ce script est exécuté sur le serveur au démarrage de la mission
southSpawn=false;
Expand All @@ -19,11 +21,15 @@ redition=false;
/*["execVM 'script\cronjob\removeDeadInfantry.sqf';", 20] call MIS_fnc_cronjob;*/
// Prépare la rédition et la fin de partie
["[20] execVM 'script\cronjob\prepareRedition.sqf';", 25] call MIS_fnc_cronjob;
// Les ennemis vont défendre la zone de kar shek dès qu'il restera moins de x unités encore en vie
["loadEnemies and (east countSide allUnits) < 60","[east, getPos karShekArea, 180] call MIS_fnc_defendArea;"] call MIS_fnc_trigger;


// Avions d'ambience
/*["[[-25,1466,0],[5422,3599,0]] execVM 'script\cronjob\ambientFlyBy.sqf';", 600] call MIS_fnc_cronjob;
["[[-25,1466,0],[5422,3599,0]] execVM 'script\cronjob\ambientFlyBy.sqf';", 600] call MIS_fnc_cronjob;
["[[4275,2299,0], [345,3490,0]] execVM 'script\cronjob\ambientFlyBy.sqf';", 900] call MIS_fnc_cronjob;
["[[1563,4860,0], [4193,2537,0]] execVM 'script\cronjob\ambientFlyBy.sqf';", 1400] call MIS_fnc_cronjob;*/
["[[1563,4860,0], [4193,2537,0]] execVM 'script\cronjob\ambientFlyBy.sqf';", 1400] call MIS_fnc_cronjob;


// Contient onEachFrame
/*[2115,2907,400] execVM "script\material\satelitte.sqf";*/
[2115,2907,400] execVM "script\material\satelitte.sqf";
Binary file added media/image/coin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image/final_assaut.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image/un_hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/image/un_hero2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mission.sqm
Binary file not shown.

0 comments on commit 25cfb55

Please sign in to comment.