Skip to content

Commit

Permalink
build & logic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosenator committed Aug 6, 2019
1 parent 0432b8d commit 9c47282
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CfgVehicles {

class TWC_AI_Control_Gesture_Halt {
displayName = "Halt";
condition = "true":
condition = "true";
statement = "[_target] call TWC_AI_Control_Gestures_fnc_signalHalt";
icon = "";
showDisabled = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[
"TWC",
"TWC_AI_Control_Gestures",
"TWC_AI_Control_Gestures_Advance",
"Advance Signal",
{
[player] call TWC_AI_Control_Gestures_fnc_signalAdvance;
Expand All @@ -20,14 +20,14 @@

[
"TWC",
"TWC_AI_Control_Gestures",
"TWC_AI_Control_Gestures_Halt",
"Halt Signal",
{
[player] call TWC_AI_Control_Gestures_fnc_signalHalt;
},
"",
[
DIK_NUMPAD1,
DIK_NUMPAD2,
[
false,
false,
Expand All @@ -39,7 +39,7 @@
[
"TWC_Show_Gestures",
"CHECKBOX",
["Show Gestures Menu", "Show the Custom TWC AI Control Gestures Menu under Self-Interaction"],
"Show Gestures Menu",
"TWC",
true,
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ _fnc_checkNearbyPlayers = {
["TWC_AI_Control_Gestures_doHalt", {
params ["_group"];

_group setVariable ["TWC_AI_Control_Gestures_Halted", true, true];
_waypoint = _group addWaypoint [position (leader _group), 0];
_waypoint setWaypointType "HOLD";
[_group, 0] setWaypointBehaviour "CARELESS";
_hasPlayerHaltedThem = _group getVariable ["TWC_AI_Control_Gestures_Halted", false];

_group call _fnc_checkNearbyPlayers;
if !(_hasPlayerHaltedThem) then {
_group setVariable ["TWC_AI_Control_Gestures_Halted", true, true];
_waypoint = _group addWaypoint [position (leader _group), 0];
_waypoint setWaypointType "HOLD";
[_group, 0] setWaypointBehaviour "CARELESS";

_group call _fnc_checkNearbyPlayers;
};
}] call CBA_fnc_addEventHandler;

["TWC_AI_Control_Gestures_doAdvance", {
Expand Down
2 changes: 1 addition & 1 deletion prep_all_mods.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for /d %%i in (*) do (
cd !tmp!
for /d %%a in (*) do (
echo Pboing %%a
makePbo !tmp!\%%a
makePbo -ABU -X "thumbs.db,*.txt,*.h,*.dep,*.cpp,*.bak,*.png,*.log,*.pew,source" -Z=default -@=%%a !tmp!\%%a
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion prep_config_compatibility.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ for /d %%i in (*) do (
cd !tmp!
for /d %%a in (*) do (
echo Pboing %%a
makePbo !tmp!\%%a
makePbo -ABU -X "thumbs.db,*.txt,*.h,*.dep,*.cpp,*.bak,*.png,*.log,*.pew,source" -Z=default -@=%%a !tmp!\%%a
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion prep_framework.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ for /d %%i in (*) do (
cd !tmp!
for /d %%a in (*) do (
echo Pboing %%a
makePbo !tmp!\%%a
makePbo -ABU -X "thumbs.db,*.txt,*.h,*.dep,*.cpp,*.bak,*.png,*.log,*.pew,source" -Z=default -@=%%a !tmp!\%%a
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion prep_public.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ for /d %%i in (*) do (
cd !tmp!
for /d %%a in (*) do (
echo Pboing %%a
makePbo !tmp!\%%a
makePbo -ABU -X "thumbs.db,*.txt,*.h,*.dep,*.cpp,*.bak,*.png,*.log,*.pew,source" -Z=default -@=%%a !tmp!\%%a
)
)
)
Expand Down

0 comments on commit 9c47282

Please sign in to comment.