diff --git a/@twc_framework/addons/twc_ai_control_gestures/CfgVehicles.hpp b/@twc_framework/addons/twc_ai_control_gestures/CfgVehicles.hpp index ebad8fd38..d5e05fc36 100644 --- a/@twc_framework/addons/twc_ai_control_gestures/CfgVehicles.hpp +++ b/@twc_framework/addons/twc_ai_control_gestures/CfgVehicles.hpp @@ -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; diff --git a/@twc_framework/addons/twc_ai_control_gestures/functions/fn_clientPreInit.sqf b/@twc_framework/addons/twc_ai_control_gestures/functions/fn_clientPreInit.sqf index 51738564b..a9638a93d 100644 --- a/@twc_framework/addons/twc_ai_control_gestures/functions/fn_clientPreInit.sqf +++ b/@twc_framework/addons/twc_ai_control_gestures/functions/fn_clientPreInit.sqf @@ -2,7 +2,7 @@ [ "TWC", - "TWC_AI_Control_Gestures", + "TWC_AI_Control_Gestures_Advance", "Advance Signal", { [player] call TWC_AI_Control_Gestures_fnc_signalAdvance; @@ -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, @@ -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 diff --git a/@twc_framework/addons/twc_ai_control_gestures/functions/fn_init.sqf b/@twc_framework/addons/twc_ai_control_gestures/functions/fn_init.sqf index 765d62d2a..c3f2f061b 100644 --- a/@twc_framework/addons/twc_ai_control_gestures/functions/fn_init.sqf +++ b/@twc_framework/addons/twc_ai_control_gestures/functions/fn_init.sqf @@ -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", { diff --git a/prep_all_mods.cmd b/prep_all_mods.cmd index fe7fccbd5..43b464807 100644 --- a/prep_all_mods.cmd +++ b/prep_all_mods.cmd @@ -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 ) ) ) diff --git a/prep_config_compatibility.cmd b/prep_config_compatibility.cmd index b3035780c..888e64b58 100644 --- a/prep_config_compatibility.cmd +++ b/prep_config_compatibility.cmd @@ -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 ) ) ) diff --git a/prep_framework.cmd b/prep_framework.cmd index 8083fcb9d..5ee1fdb19 100644 --- a/prep_framework.cmd +++ b/prep_framework.cmd @@ -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 ) ) ) diff --git a/prep_public.cmd b/prep_public.cmd index e4ceaad2a..db1834611 100644 --- a/prep_public.cmd +++ b/prep_public.cmd @@ -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 ) ) )