-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
226 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
//#define DEBUG_MODE_FULL | ||
#include "script_component.hpp" | ||
PARAMS_1(_unit); | ||
params ["_unit"]; | ||
|
||
if (GVAR(enabled) == 1) then { | ||
GVAR(configQueue) pushBack _unit; | ||
}; | ||
if (GVAR(enabled) == 1) then {GVAR(configQueue) pushBack _unit}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//#define DEBUG_MODE_FULL | ||
#include "script_component.hpp" | ||
|
||
while {count GVAR(configQueue) > 0} do { | ||
(GVAR(configQueue) deleteAt 0) call FUNC(configureUnit); | ||
}; | ||
|
||
if (GVAR(packNVG) == 1) then { | ||
{_x call FUNC(setupGear)} forEach allUnits; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//#define DEBUG_MODE_FULL | ||
#include "script_component.hpp" | ||
params ["_caller"]; | ||
if (leader _caller != _caller) exitWith {hint "ASR-AI3 :: Copy My Stance : You are not the leader of the group !"; false}; | ||
|
||
if (GVAR(copymystance) == 0) then { | ||
GVAR(copymystance) = 1; | ||
{ | ||
_x spawn { | ||
private "_leader"; | ||
while {alive _this && GVAR(copymystance) == 1} do { | ||
_leader = leader _this; | ||
if (isPlayer _leader && !isPlayer _this) then { | ||
switch (stance _leader) do { | ||
case "CROUCH": {_this setUnitPos "MIDDLE"}; | ||
case "PRONE": {_this setUnitPos "DOWN"}; | ||
default {_this setUnitPos "AUTO"}; | ||
}; | ||
}; | ||
sleep 2; | ||
}; | ||
}; | ||
} forEach units group _caller; | ||
hintSilent "ASR-AI3 :: Copy My Stance : Enabled"; | ||
} else { | ||
GVAR(copymystance) = 0; | ||
{ if (!isPlayer _x) then {_x setUnitPos "AUTO"} } forEach units group _caller; | ||
hintSilent "ASR-AI3 :: Copy My Stance : Disabled"; | ||
}; | ||
|
||
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.