From f9de90c6f9af067528452a5044850193f01cb1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Thu, 15 Jan 2015 19:34:35 -0300 Subject: [PATCH] resting: port --- addons/resting/$PBOPREFIX$ | 1 + addons/resting/CfgEventHandlers.hpp | 6 + addons/resting/CfgMoves.hpp | 1389 ++++++++++++++++ addons/resting/CfgWeapons.hpp | 22 + addons/resting/XEH_preInit.sqf | 4 + addons/resting/config.cpp | 1466 +---------------- addons/resting/functions/fn_hasBipod.sqf | 9 - addons/resting/functions/fnc_hasBipod.sqf | 12 + .../{fn_restWeapon.sqf => fnc_restWeapon.sqf} | 51 +- addons/resting/functions/script_component.hpp | 1 + addons/resting/script_component.hpp | 12 + addons/resting/stringtable.xml | 12 +- 12 files changed, 1503 insertions(+), 1482 deletions(-) create mode 100644 addons/resting/$PBOPREFIX$ create mode 100644 addons/resting/CfgEventHandlers.hpp create mode 100644 addons/resting/CfgMoves.hpp create mode 100644 addons/resting/CfgWeapons.hpp create mode 100644 addons/resting/XEH_preInit.sqf delete mode 100644 addons/resting/functions/fn_hasBipod.sqf create mode 100644 addons/resting/functions/fnc_hasBipod.sqf rename addons/resting/functions/{fn_restWeapon.sqf => fnc_restWeapon.sqf} (74%) create mode 100644 addons/resting/functions/script_component.hpp create mode 100644 addons/resting/script_component.hpp diff --git a/addons/resting/$PBOPREFIX$ b/addons/resting/$PBOPREFIX$ new file mode 100644 index 0000000000..94f2a89f81 --- /dev/null +++ b/addons/resting/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\resting \ No newline at end of file diff --git a/addons/resting/CfgEventHandlers.hpp b/addons/resting/CfgEventHandlers.hpp new file mode 100644 index 0000000000..f0a9f14d91 --- /dev/null +++ b/addons/resting/CfgEventHandlers.hpp @@ -0,0 +1,6 @@ + +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + }; +}; diff --git a/addons/resting/CfgMoves.hpp b/addons/resting/CfgMoves.hpp new file mode 100644 index 0000000000..3c4ab85a5c --- /dev/null +++ b/addons/resting/CfgMoves.hpp @@ -0,0 +1,1389 @@ +// CODE BELOW TAKEN FROM TMR, PREFIXES EDITED FOR COMPATABILITY + +#define ACE_SWAY_DEPLOY 0.02 +#define ACE_SWAY_DEPLOYPRONE 0.01 +#define ACE_SWAY_RESTED 0.04 //0.08 +#define ACE_SWAY_RESTEDPRONE 0.02 //0.04 +#define ACE_DEPLOY_TURNSPEED 0.1 + +// Arma 3 doesn't respect turnSpeed. + +class CfgMovesBasic { + class Default; + + class Actions { + class RifleStandActions; + class RifleStandActions_ace_deploy : RifleStandActions { + stop = "AmovPercMstpSrasWrflDnon_ace_deploy"; + default = "AmovPercMstpSrasWrflDnon_ace_deploy"; + turnL = "AmovPercMstpSrasWrflDnon_ace_deploy"; + turnR = "AmovPercMstpSrasWrflDnon_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustLStandActions; + class RifleAdjustLStandActions_ace_deploy : RifleAdjustLStandActions { + stop = "AadjPercMstpSrasWrflDleft_ace_deploy"; + default = "AadjPercMstpSrasWrflDleft_ace_deploy"; + AdjustL = "AadjPercMstpSrasWrflDleft_ace_deploy"; + turnL = "AadjPercMstpSrasWrflDleft_ace_deploy"; + turnR = "AadjPercMstpSrasWrflDleft_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustRStandActions; + class RifleAdjustRStandActions_ace_deploy : RifleAdjustRStandActions { + stop = "AadjPercMstpSrasWrflDright_ace_deploy"; + default = "AadjPercMstpSrasWrflDright_ace_deploy"; + AdjustRight = "AadjPercMstpSrasWrflDright_ace_deploy"; + turnL = "AadjPercMstpSrasWrflDright_ace_deploy"; + turnR = "AadjPercMstpSrasWrflDright_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustFStandActions; + class RifleAdjustFStandActions_ace_deploy : RifleAdjustFStandActions { + stop = "AadjPercMstpSrasWrflDup_ace_deploy"; + default = "AadjPercMstpSrasWrflDup_ace_deploy"; + AdjustF = "AadjPercMstpSrasWrflDup_ace_deploy"; + turnL = "AadjPercMstpSrasWrflDup_ace_deploy"; + turnR = "AadjPercMstpSrasWrflDup_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustBStandActions; + class RifleAdjustBStandActions_ace_deploy : RifleAdjustBStandActions { + stop = "AadjPercMstpSrasWrflDdown_ace_deploy"; + default = "AadjPercMstpSrasWrflDdown_ace_deploy"; + AdjustB = "AadjPercMstpSrasWrflDdown_ace_deploy"; + turnR = "AadjPercMstpSrasWrflDdown_ace_deploy"; + turnL = "AadjPercMstpSrasWrflDdown_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleKneelActions; + class RifleKneelActions_ace_deploy : RifleKneelActions { + stop = "AmovPknlMstpSrasWrflDnon_ace_deploy"; + default = "AmovPknlMstpSrasWrflDnon_ace_deploy"; + crouch = "AmovPknlMstpSrasWrflDnon_ace_deploy"; // TODO: this might cause issues + turnL = "AmovPknlMstpSrasWrflDnon_ace_deploy"; + turnR = "AmovPknlMstpSrasWrflDnon_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustLKneelActions; + class RifleAdjustLKneelActions_ace_deploy : RifleAdjustLKneelActions { + stop = "AadjPknlMstpSrasWrflDleft_ace_deploy"; + default = "AadjPknlMstpSrasWrflDleft_ace_deploy"; + turnL = "AadjPknlMstpSrasWrflDleft_ace_deploy"; + turnR = "AadjPknlMstpSrasWrflDleft_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustRKneelActions; + class RifleAdjustRKneelActions_ace_deploy : RifleAdjustRKneelActions { + stop = "AadjPknlMstpSrasWrflDright_ace_deploy"; + default = "AadjPknlMstpSrasWrflDright_ace_deploy"; + turnL = "AadjPknlMstpSrasWrflDright_ace_deploy"; + turnR = "AadjPknlMstpSrasWrflDright_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustFKneelActions; + class RifleAdjustFKneelActions_ace_deploy : RifleAdjustFKneelActions { + stop = "AadjPknlMstpSrasWrflDup_ace_deploy"; + default = "AadjPknlMstpSrasWrflDup_ace_deploy"; + turnL = "AadjPknlMstpSrasWrflDup_ace_deploy"; + turnR = "AadjPknlMstpSrasWrflDup_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustBKneelActions; + class RifleAdjustBKneelActions_ace_deploy : RifleAdjustBKneelActions { + stop = "AadjPknlMstpSrasWrflDdown_ace_deploy"; + default = "AadjPknlMstpSrasWrflDdown_ace_deploy"; + turnL = "AadjPknlMstpSrasWrflDdown_ace_deploy"; + turnR = "AadjPknlMstpSrasWrflDdown_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleProneActions; + class RifleProneActions_ace_deploy : RifleProneActions { + stop = "AmovPpneMstpSrasWrflDnon_ace_deploy"; + default = "AmovPpneMstpSrasWrflDnon_ace_deploy"; + turnL = "AmovPpneMstpSrasWrflDnon_ace_deploy"; + turnR = "AmovPpneMstpSrasWrflDnon_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustLProneActions; + class RifleAdjustLProneActions_ace_deploy : RifleAdjustLProneActions { + stop = "AadjPpneMstpSrasWrflDleft_ace_deploy"; + default = "AadjPpneMstpSrasWrflDleft_ace_deploy"; + turnL = "AadjPpneMstpSrasWrflDleft_ace_deploy"; + turnR = "AadjPpneMstpSrasWrflDleft_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustRProneActions; + class RifleAdjustRProneActions_ace_deploy : RifleAdjustRProneActions { + stop = "AadjPpneMstpSrasWrflDright_ace_deploy"; + default = "AadjPpneMstpSrasWrflDright_ace_deploy"; + turnL = "AadjPpneMstpSrasWrflDright_ace_deploy"; + turnR = "AadjPpneMstpSrasWrflDright_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustFProneActions; + class RifleAdjustFProneActions_ace_deploy : RifleAdjustFProneActions { + stop = "aadjppnemstpsraswrfldup_ace_deploy"; + default = "aadjppnemstpsraswrfldup_ace_deploy"; + turnL = "aadjppnemstpsraswrfldup_ace_deploy"; + turnR = "aadjppnemstpsraswrfldup_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustBProneActions; + class RifleAdjustBProneActions_ace_deploy : RifleAdjustBProneActions { + stop = "AadjPpneMstpSrasWrflDdown_ace_deploy"; + default = "AadjPpneMstpSrasWrflDdown_ace_deploy"; + turnL = "AadjPpneMstpSrasWrflDdown_ace_deploy"; + turnR = "AadjPpneMstpSrasWrflDdown_ace_deploy"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + ////////////////////////////////////////////////////////////////////// + + class RifleStandActions_ace_rested : RifleStandActions { + stop = "AmovPercMstpSrasWrflDnon_ace_rested"; + default = "AmovPercMstpSrasWrflDnon_ace_rested"; + turnL = "AmovPercMstpSrasWrflDnon_ace_rested"; + turnR = "AmovPercMstpSrasWrflDnon_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustLStandActions_ace_rested : RifleAdjustLStandActions { + stop = "AadjPercMstpSrasWrflDleft_ace_rested"; + default = "AadjPercMstpSrasWrflDleft_ace_rested"; + AdjustL = "AadjPercMstpSrasWrflDleft_ace_rested"; + turnL = "AadjPercMstpSrasWrflDleft_ace_rested"; + turnR = "AadjPercMstpSrasWrflDleft_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustRStandActions_ace_rested : RifleAdjustRStandActions { + stop = "AadjPercMstpSrasWrflDright_ace_rested"; + default = "AadjPercMstpSrasWrflDright_ace_rested"; + AdjustRight = "AadjPercMstpSrasWrflDright_ace_rested"; + turnL = "AadjPercMstpSrasWrflDright_ace_rested"; + turnR = "AadjPercMstpSrasWrflDright_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustFStandActions_ace_rested : RifleAdjustFStandActions { + stop = "AadjPercMstpSrasWrflDup_ace_rested"; + default = "AadjPercMstpSrasWrflDup_ace_rested"; + AdjustF = "AadjPercMstpSrasWrflDup_ace_rested"; + turnL = "AadjPercMstpSrasWrflDup_ace_rested"; + turnR = "AadjPercMstpSrasWrflDup_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustBStandActions_ace_rested : RifleAdjustBStandActions { + stop = "AadjPercMstpSrasWrflDdown_ace_rested"; + default = "AadjPercMstpSrasWrflDdown_ace_rested"; + AdjustB = "AadjPercMstpSrasWrflDdown_ace_rested"; + turnR = "AadjPercMstpSrasWrflDdown_ace_rested"; + turnL = "AadjPercMstpSrasWrflDdown_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleKneelActions_ace_rested : RifleKneelActions { + stop = "AmovPknlMstpSrasWrflDnon_ace_rested"; + default = "AmovPknlMstpSrasWrflDnon_ace_rested"; + crouch = "AmovPknlMstpSrasWrflDnon_ace_rested"; + turnL = "AmovPknlMstpSrasWrflDnon_ace_rested"; + turnR = "AmovPknlMstpSrasWrflDnon_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustLKneelActions_ace_rested : RifleAdjustLKneelActions { + stop = "AadjPknlMstpSrasWrflDleft_ace_rested"; + default = "AadjPknlMstpSrasWrflDleft_ace_rested"; + turnL = "AadjPknlMstpSrasWrflDleft_ace_rested"; + turnR = "AadjPknlMstpSrasWrflDleft_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustRKneelActions_ace_rested : RifleAdjustRKneelActions { + stop = "AadjPknlMstpSrasWrflDright_ace_rested"; + default = "AadjPknlMstpSrasWrflDright_ace_rested"; + turnL = "AadjPknlMstpSrasWrflDright_ace_rested"; + turnR = "AadjPknlMstpSrasWrflDright_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustFKneelActions_ace_rested : RifleAdjustFKneelActions { + stop = "AadjPknlMstpSrasWrflDup_ace_rested"; + default = "AadjPknlMstpSrasWrflDup_ace_rested"; + turnL = "AadjPknlMstpSrasWrflDup_ace_rested"; + turnR = "AadjPknlMstpSrasWrflDup_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustBKneelActions_ace_rested : RifleAdjustBKneelActions { + stop = "AadjPknlMstpSrasWrflDdown_ace_rested"; + default = "AadjPknlMstpSrasWrflDdown_ace_rested"; + turnL = "AadjPknlMstpSrasWrflDdown_ace_rested"; + turnR = "AadjPknlMstpSrasWrflDdown_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleProneActions_ace_rested : RifleProneActions { + stop = "AmovPpneMstpSrasWrflDnon_ace_rested"; + default = "AmovPpneMstpSrasWrflDnon_ace_rested"; + turnL = "AmovPpneMstpSrasWrflDnon_ace_rested"; + turnR = "AmovPpneMstpSrasWrflDnon_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustLProneActions_ace_rested : RifleAdjustLProneActions { + stop = "AadjPpneMstpSrasWrflDleft_ace_rested"; + default = "AadjPpneMstpSrasWrflDleft_ace_rested"; + turnL = "AadjPpneMstpSrasWrflDleft_ace_rested"; + turnR = "AadjPpneMstpSrasWrflDleft_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustRProneActions_ace_rested : RifleAdjustRProneActions { + stop = "AadjPpneMstpSrasWrflDright_ace_rested"; + default = "AadjPpneMstpSrasWrflDright_ace_rested"; + turnL = "AadjPpneMstpSrasWrflDright_ace_rested"; + turnR = "AadjPpneMstpSrasWrflDright_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustFProneActions_ace_rested : RifleAdjustFProneActions { + stop = "aadjppnemstpsraswrfldup_ace_rested"; + default = "aadjppnemstpsraswrfldup_ace_rested"; + turnL = "aadjppnemstpsraswrfldup_ace_rested"; + turnR = "aadjppnemstpsraswrfldup_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class RifleAdjustBProneActions_ace_rested : RifleAdjustBProneActions { + stop = "AadjPpneMstpSrasWrflDdown_ace_rested"; + default = "AadjPpneMstpSrasWrflDdown_ace_rested"; + turnL = "AadjPpneMstpSrasWrflDdown_ace_rested"; + turnR = "AadjPpneMstpSrasWrflDdown_ace_rested"; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + ////////////////////////////////////////////////////////////////////// + // FFV + ////////////////////////////////////////////////////////////////////// + + class passenger_inside_1Actions; + class passenger_inside_1Actions_ace_deploy : passenger_inside_1Actions { + stop = "passenger_inside_1_Aim_ace_deploy"; + default = "passenger_inside_1_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_inside_2Actions; + class passenger_inside_2Actions_ace_deploy : passenger_inside_2Actions { + stop = "passenger_inside_2_Aim_ace_deploy"; + default = "passenger_inside_2_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_inside_3Actions; + class passenger_inside_3Actions_ace_deploy : passenger_inside_3Actions { + stop = "passenger_inside_3_Aim_ace_deploy"; + default = "passenger_inside_3_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_inside_4Actions; + class passenger_inside_4Actions_ace_deploy : passenger_inside_4Actions { + stop = "passenger_inside_4_Aim_ace_deploy"; + default = "passenger_inside_4_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_bench_1Actions; + class passenger_bench_1Actions_ace_deploy : passenger_bench_1Actions { + stop = "passenger_bench_1_Aim_ace_deploy"; + default = "passenger_bench_1_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_1Actions; + class passenger_boat_1Actions_ace_deploy : passenger_boat_1Actions { + stop = "passenger_boat_1_Aim_ace_deploy"; + default = "passenger_boat_1_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_2Actions; + class passenger_boat_2Actions_ace_deploy : passenger_boat_2Actions { + stop = "passenger_boat_2_Aim_ace_deploy"; + default = "passenger_boat_2_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_3Actions; + class passenger_boat_3Actions_ace_deploy : passenger_boat_3Actions { + stop = "passenger_boat_3_Aim_ace_deploy"; + default = "passenger_boat_3_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_4Actions; + class passenger_boat_4Actions_ace_deploy : passenger_boat_4Actions { + stop = "passenger_boat_4_Aim_ace_deploy"; + default = "passenger_boat_4_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_1Actions; + class passenger_flatground_1Actions_ace_deploy : passenger_flatground_1Actions { + stop = "passenger_flatground_1_Aim_ace_deploy"; + default = "passenger_flatground_1_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_2Actions; + class passenger_flatground_2Actions_ace_deploy : passenger_flatground_2Actions { + stop = "passenger_flatground_2_Aim_ace_deploy"; + default = "passenger_flatground_2_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_3Actions; + class passenger_flatground_3Actions_ace_deploy : passenger_flatground_3Actions { + stop = "passenger_flatground_3_Aim_ace_deploy"; + default = "passenger_flatground_3_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_4Actions; + class passenger_flatground_4Actions_ace_deploy : passenger_flatground_4Actions { + stop = "passenger_flatground_4_Aim_ace_deploy"; + default = "passenger_flatground_4_Aim_ace_deploy"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + ////////////////////////////////////////////////////////////////////// + + class passenger_inside_1Actions_ace_rested : passenger_inside_1Actions { + stop = "passenger_inside_1_Aim_ace_rested"; + default = "passenger_inside_1_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_inside_2Actions_ace_rested : passenger_inside_2Actions { + stop = "passenger_inside_2_Aim_ace_rested"; + default = "passenger_inside_2_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_inside_3Actions_ace_rested : passenger_inside_3Actions { + stop = "passenger_inside_3_Aim_ace_rested"; + default = "passenger_inside_3_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_inside_4Actions_ace_rested : passenger_inside_4Actions { + stop = "passenger_inside_4_Aim_ace_rested"; + default = "passenger_inside_4_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_bench_1Actions_ace_rested : passenger_bench_1Actions { + stop = "passenger_bench_1_Aim_ace_rested"; + default = "passenger_bench_1_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_1Actions_ace_rested : passenger_boat_1Actions { + stop = "passenger_boat_1_Aim_ace_rested"; + default = "passenger_boat_1_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_2Actions_ace_rested : passenger_boat_2Actions { + stop = "passenger_boat_2_Aim_ace_rested"; + default = "passenger_boat_2_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_3Actions_ace_rested : passenger_boat_3Actions { + stop = "passenger_boat_3_Aim_ace_rested"; + default = "passenger_boat_3_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_boat_4Actions_ace_rested : passenger_boat_4Actions { + stop = "passenger_boat_4_Aim_ace_rested"; + default = "passenger_boat_4_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_1Actions_ace_rested : passenger_flatground_1Actions { + stop = "passenger_flatground_1_Aim_ace_rested"; + default = "passenger_flatground_1_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_2Actions_ace_rested : passenger_flatground_2Actions { + stop = "passenger_flatground_2_Aim_ace_rested"; + default = "passenger_flatground_2_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_3Actions_ace_rested : passenger_flatground_3Actions { + stop = "passenger_flatground_3_Aim_ace_rested"; + default = "passenger_flatground_3_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + + class passenger_flatground_4Actions_ace_rested : passenger_flatground_4Actions { + stop = "passenger_flatground_4_Aim_ace_rested"; + default = "passenger_flatground_4_Aim_ace_rested"; + turnL = ""; + turnR = ""; + turnSpeed = ACE_DEPLOY_TURNSPEED; + limitFast = 1; + }; + }; +}; + +class CfgMovesMaleSdr : CfgMovesBasic { + class States { + class AmovPercMstpSrasWrflDnon; + class AmovPercMstpSrasWrflDnon_ace_deploy : AmovPercMstpSrasWrflDnon { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleStandActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"AmovPercMstpSrasWrflDnon_ace_deploy", 0.02}; + ConnectFrom[] = {"AmovPercMstpSrasWrflDnon_ace_deploy", 0.02}; + InterpolateFrom[] = {"AmovPercMstpSrasWrflDnon", 0.02}; + InterpolateTo[] = {"AmovPercMstpSrasWrflDnon", 0.02}; + }; + + class aadjpercmstpsraswrfldup; + class aadjpercmstpsraswrfldup_ace_deploy : aadjpercmstpsraswrfldup { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustFStandActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrfldup_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrfldup_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrfldup", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrfldup", 0.02}; + }; + + class aadjpercmstpsraswrflddown; + class aadjpercmstpsraswrflddown_ace_deploy : aadjpercmstpsraswrflddown { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustBStandActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrflddown_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrflddown_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrflddown", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrflddown", 0.02}; + }; + + class aadjpercmstpsraswrfldright; + class aadjpercmstpsraswrfldright_ace_deploy : aadjpercmstpsraswrfldright { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustRStandActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrfldright_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrfldright_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrfldright", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrfldright", 0.02}; + }; + + class aadjpercmstpsraswrfldleft; + class aadjpercmstpsraswrfldleft_ace_deploy : aadjpercmstpsraswrfldleft { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustLStandActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrfldleft_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrfldleft_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrfldleft", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrfldleft", 0.02}; + }; + + class aadjpknlmstpsraswrfldup; + class aadjpknlmstpsraswrfldup_ace_deploy : aadjpknlmstpsraswrfldup { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustFKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrfldup_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrfldup_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrfldup", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrfldup", 0.02}; + }; + + class amovpknlmstpsraswrfldnon; + class amovpknlmstpsraswrfldnon_ace_deploy : amovpknlmstpsraswrfldnon { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"amovpknlmstpsraswrfldnon_ace_deploy", 0.02}; + ConnectFrom[] = {"amovpknlmstpsraswrfldnon_ace_deploy", 0.02}; + InterpolateFrom[] = {"amovpknlmstpsraswrfldnon", 0.02}; + InterpolateTo[] = {"amovpknlmstpsraswrfldnon", 0.02}; + }; + + class aadjpknlmstpsraswrflddown; + class aadjpknlmstpsraswrflddown_ace_deploy : aadjpknlmstpsraswrflddown { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustBKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrflddown_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrflddown_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrflddown", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrflddown", 0.02}; + }; + + class aadjpknlmstpsraswrfldleft; + class aadjpknlmstpsraswrfldleft_ace_deploy : aadjpknlmstpsraswrfldleft { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustLKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrfldleft_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrfldleft_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrfldleft", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrfldleft", 0.02}; + }; + + class aadjpknlmstpsraswrfldright; + class aadjpknlmstpsraswrfldright_ace_deploy : aadjpknlmstpsraswrfldright { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "RifleAdjustRKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrfldright_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrfldright_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrfldright", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrfldright", 0.02}; + }; + + class aadjppnemstpsraswrfldup; + class aadjppnemstpsraswrfldup_ace_deploy : aadjppnemstpsraswrfldup { + aimPrecision = ACE_SWAY_DEPLOYPRONE; + actions = "RifleAdjustFProneActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrfldup_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrfldup_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrfldup", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrfldup", 0.02}; + }; + + class amovppnemstpsraswrfldnon; + class amovppnemstpsraswrfldnon_ace_deploy : amovppnemstpsraswrfldnon { + aimPrecision = ACE_SWAY_DEPLOYPRONE; + actions = "RifleProneActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"amovppnemstpsraswrfldnon_ace_deploy", 0.02}; + ConnectFrom[] = {"amovppnemstpsraswrfldnon_ace_deploy", 0.02}; + InterpolateFrom[] = {"amovppnemstpsraswrfldnon", 0.02}; + InterpolateTo[] = {"amovppnemstpsraswrfldnon", 0.02}; + }; + + class aadjppnemstpsraswrflddown; + class aadjppnemstpsraswrflddown_ace_deploy : aadjppnemstpsraswrflddown { + aimPrecision = ACE_SWAY_DEPLOYPRONE; + actions = "RifleAdjustBKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrflddown_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrflddown_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrflddown", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrflddown", 0.02}; + }; + + class aadjppnemstpsraswrfldleft; + class aadjppnemstpsraswrfldleft_ace_deploy : aadjppnemstpsraswrfldleft { + aimPrecision = ACE_SWAY_DEPLOYPRONE; + actions = "RifleAdjustLKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrfldleft_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrfldleft_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrfldleft", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrfldleft", 0.02}; + }; + + class aadjppnemstpsraswrfldright; + class aadjppnemstpsraswrfldright_ace_deploy : aadjppnemstpsraswrfldright { + aimPrecision = ACE_SWAY_DEPLOYPRONE; + actions = "RifleAdjustRKneelActions_ace_deploy"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrfldright_ace_deploy", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrfldright_ace_deploy", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrfldright", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrfldright", 0.02}; + }; + + ///////////////////////////////////////////////////////////////////////////// + + class AmovPercMstpSrasWrflDnon_ace_rested : AmovPercMstpSrasWrflDnon { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleStandActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"AmovPercMstpSrasWrflDnon_ace_rested", 0.02}; + ConnectFrom[] = {"AmovPercMstpSrasWrflDnon_ace_rested", 0.02}; + InterpolateFrom[] = {"AmovPercMstpSrasWrflDnon", 0.02}; + InterpolateTo[] = {"AmovPercMstpSrasWrflDnon", 0.02}; + }; + + class aadjpercmstpsraswrfldup_ace_rested : aadjpercmstpsraswrfldup { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustFStandActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrfldup_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrfldup_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrfldup", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrfldup", 0.02}; + }; + + class aadjpercmstpsraswrflddown_ace_rested : aadjpercmstpsraswrflddown { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustBStandActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrflddown_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrflddown_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrflddown", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrflddown", 0.02}; + }; + + class aadjpercmstpsraswrfldright_ace_rested : aadjpercmstpsraswrfldright { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustRStandActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrfldright_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrfldright_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrfldright", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrfldright", 0.02}; + }; + + class aadjpercmstpsraswrfldleft_ace_rested : aadjpercmstpsraswrfldleft { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustLStandActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpercmstpsraswrfldleft_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpercmstpsraswrfldleft_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpercmstpsraswrfldleft", 0.02}; + InterpolateTo[] = {"aadjpercmstpsraswrfldleft", 0.02}; + }; + + class aadjpknlmstpsraswrfldup_ace_rested : aadjpknlmstpsraswrfldup { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustFKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrfldup_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrfldup_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrfldup", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrfldup", 0.02}; + }; + + class amovpknlmstpsraswrfldnon_ace_rested : amovpknlmstpsraswrfldnon { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"amovpknlmstpsraswrfldnon_ace_rested", 0.02}; + ConnectFrom[] = {"amovpknlmstpsraswrfldnon_ace_rested", 0.02}; + InterpolateFrom[] = {"amovpknlmstpsraswrfldnon", 0.02}; + InterpolateTo[] = {"amovpknlmstpsraswrfldnon", 0.02}; + }; + + class aadjpknlmstpsraswrflddown_ace_rested : aadjpknlmstpsraswrflddown { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustBKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrflddown_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrflddown_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrflddown", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrflddown", 0.02}; + }; + + class aadjpknlmstpsraswrfldleft_ace_rested : aadjpknlmstpsraswrfldleft { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustLKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrfldleft_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrfldleft_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrfldleft", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrfldleft", 0.02}; + }; + + class aadjpknlmstpsraswrfldright_ace_rested : aadjpknlmstpsraswrfldright { + aimPrecision = ACE_SWAY_RESTED; + actions = "RifleAdjustRKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjpknlmstpsraswrfldright_ace_rested", 0.02}; + ConnectFrom[] = {"aadjpknlmstpsraswrfldright_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjpknlmstpsraswrfldright", 0.02}; + InterpolateTo[] = {"aadjpknlmstpsraswrfldright", 0.02}; + }; + + class aadjppnemstpsraswrfldup_ace_rested : aadjppnemstpsraswrfldup { + aimPrecision = ACE_SWAY_RESTEDPRONE; + actions = "RifleAdjustFProneActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrfldup_ace_rested", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrfldup_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrfldup", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrfldup", 0.02}; + }; + + class amovppnemstpsraswrfldnon_ace_rested : amovppnemstpsraswrfldnon { + aimPrecision = ACE_SWAY_RESTEDPRONE; + actions = "RifleProneActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"amovppnemstpsraswrfldnon_ace_rested", 0.02}; + ConnectFrom[] = {"amovppnemstpsraswrfldnon_ace_rested", 0.02}; + InterpolateFrom[] = {"amovppnemstpsraswrfldnon", 0.02}; + InterpolateTo[] = {"amovppnemstpsraswrfldnon", 0.02}; + }; + + class aadjppnemstpsraswrflddown_ace_rested : aadjppnemstpsraswrflddown { + aimPrecision = ACE_SWAY_RESTEDPRONE; + actions = "RifleAdjustBKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrflddown_ace_rested", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrflddown_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrflddown", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrflddown", 0.02}; + }; + + class aadjppnemstpsraswrfldleft_ace_rested : aadjppnemstpsraswrfldleft { + aimPrecision = ACE_SWAY_RESTEDPRONE; + actions = "RifleAdjustLKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrfldleft_ace_rested", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrfldleft_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrfldleft", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrfldleft", 0.02}; + }; + + class aadjppnemstpsraswrfldright_ace_rested : aadjppnemstpsraswrfldright { + aimPrecision = ACE_SWAY_RESTEDPRONE; + actions = "RifleAdjustRKneelActions_ace_rested"; + aiming = "aimingLying"; + speed = 0.01; + onLandEnd = true; + onLandBeg = true; + + ConnectTo[] = {"aadjppnemstpsraswrfldright_ace_rested", 0.02}; + ConnectFrom[] = {"aadjppnemstpsraswrfldright_ace_rested", 0.02}; + InterpolateFrom[] = {"aadjppnemstpsraswrfldright", 0.02}; + InterpolateTo[] = {"aadjppnemstpsraswrfldright", 0.02}; + }; + + ////////////////////////////////////////////////////////////////////// + // FFV + ////////////////////////////////////////////////////////////////////// + + class passenger_bench_1_Aim; + class passenger_bench_1_Aim_ace_deploy : passenger_bench_1_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_bench_1Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_bench_1_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_bench_1_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_bench_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_bench_1_Aim", 0.02}; + }; + + class passenger_inside_1_Aim; + class passenger_inside_1_Aim_ace_deploy : passenger_inside_1_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_inside_1Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_1_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_inside_1_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_inside_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_1_Aim", 0.02}; + }; + + class passenger_inside_2_Aim; + class passenger_inside_2_Aim_ace_deploy : passenger_inside_2_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_inside_2Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_2_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_inside_2_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_inside_2_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_2_Aim", 0.02}; + }; + + class passenger_inside_3_Aim; + class passenger_inside_3_Aim_ace_deploy : passenger_inside_3_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_inside_3Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_3_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_inside_3_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_inside_3_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_3_Aim", 0.02}; + }; + + class passenger_inside_4_Aim; + class passenger_inside_4_Aim_ace_deploy : passenger_inside_4_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_inside_4Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_4_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_inside_4_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_inside_4_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_4_Aim", 0.02}; + }; + + class passenger_boat_1_Aim; + class passenger_boat_1_Aim_ace_deploy : passenger_boat_1_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_boat_1Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_1_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_boat_1_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_boat_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_1_Aim", 0.02}; + }; + + class passenger_boat_2_Aim; + class passenger_boat_2_Aim_ace_deploy : passenger_boat_2_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_boat_2Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_2_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_boat_2_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_boat_2_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_2_Aim", 0.02}; + }; + + class passenger_boat_3_Aim; + class passenger_boat_3_Aim_ace_deploy : passenger_boat_3_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_boat_3Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_3_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_boat_3_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_boat_3_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_3_Aim", 0.02}; + }; + + class passenger_boat_4_Aim; + class passenger_boat_4_Aim_ace_deploy : passenger_boat_4_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_boat_4Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_4_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_boat_4_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_boat_4_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_4_Aim", 0.02}; + }; + + class passenger_flatground_1_Aim; + class passenger_flatground_1_Aim_ace_deploy : passenger_flatground_1_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_flatground_1Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_1_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_flatground_1_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_flatground_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_1_Aim", 0.02}; + }; + + class passenger_flatground_2_Aim; + class passenger_flatground_2_Aim_ace_deploy : passenger_flatground_2_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_flatground_2Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_2_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_flatground_2_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_flatground_2_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_2_Aim", 0.02}; + }; + + class passenger_flatground_3_Aim; + class passenger_flatground_3_Aim_ace_deploy : passenger_flatground_3_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_flatground_3Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_3_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_flatground_3_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_flatground_3_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_3_Aim", 0.02}; + }; + + class passenger_flatground_4_Aim; + class passenger_flatground_4_Aim_ace_deploy : passenger_flatground_4_Aim { + aimPrecision = ACE_SWAY_DEPLOY; + actions = "passenger_flatground_4Actions_ace_deploy"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_4_Aim_ace_deploy", 0.02}; + ConnectFrom[] = {"passenger_flatground_4_Aim_ace_deploy", 0.02}; + InterpolateFrom[] = {"passenger_flatground_4_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_4_Aim", 0.02}; + }; + + ////////////////////////////////////////////////////////////////////// + + class passenger_bench_1_Aim_ace_rested : passenger_bench_1_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_bench_1Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_bench_1_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_bench_1_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_bench_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_bench_1_Aim", 0.02}; + }; + + class passenger_inside_1_Aim_ace_rested : passenger_inside_1_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_inside_1Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_1_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_inside_1_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_inside_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_1_Aim", 0.02}; + }; + + class passenger_inside_2_Aim_ace_rested : passenger_inside_2_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_inside_2Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_2_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_inside_2_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_inside_2_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_2_Aim", 0.02}; + }; + + class passenger_inside_3_Aim_ace_rested : passenger_inside_3_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_inside_3Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_3_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_inside_3_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_inside_3_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_3_Aim", 0.02}; + }; + + class passenger_inside_4_Aim_ace_rested : passenger_inside_4_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_inside_4Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_inside_4_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_inside_4_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_inside_4_Aim", 0.02}; + InterpolateTo[] = {"passenger_inside_4_Aim", 0.02}; + }; + + class passenger_boat_1_Aim_ace_rested : passenger_boat_1_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_boat_1Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_1_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_boat_1_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_boat_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_1_Aim", 0.02}; + }; + + class passenger_boat_2_Aim_ace_rested : passenger_boat_2_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_boat_2Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_2_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_boat_2_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_boat_2_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_2_Aim", 0.02}; + }; + + class passenger_boat_3_Aim_ace_rested : passenger_boat_3_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_boat_3Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_3_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_boat_3_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_boat_3_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_3_Aim", 0.02}; + }; + + class passenger_boat_4_Aim_ace_rested : passenger_boat_4_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_boat_4Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_boat_4_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_boat_4_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_boat_4_Aim", 0.02}; + InterpolateTo[] = {"passenger_boat_4_Aim", 0.02}; + }; + + class passenger_flatground_1_Aim_ace_rested : passenger_flatground_1_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_flatground_1Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_1_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_flatground_1_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_flatground_1_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_1_Aim", 0.02}; + }; + + class passenger_flatground_2_Aim_ace_rested : passenger_flatground_2_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_flatground_2Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_2_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_flatground_2_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_flatground_2_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_2_Aim", 0.02}; + }; + + class passenger_flatground_3_Aim_ace_rested : passenger_flatground_3_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_flatground_3Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_3_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_flatground_3_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_flatground_3_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_3_Aim", 0.02}; + }; + + class passenger_flatground_4_Aim_ace_rested : passenger_flatground_4_Aim { + aimPrecision = ACE_SWAY_RESTED; + actions = "passenger_flatground_4Actions_ace_rested"; + aiming = "aimingDefault"; + speed = 0.01; + onLandEnd = false; + onLandBeg = false; + + ConnectTo[] = {"passenger_flatground_4_Aim_ace_rested", 0.02}; + ConnectFrom[] = {"passenger_flatground_4_Aim_ace_rested", 0.02}; + InterpolateFrom[] = {"passenger_flatground_4_Aim", 0.02}; + InterpolateTo[] = {"passenger_flatground_4_Aim", 0.02}; + }; + }; +}; diff --git a/addons/resting/CfgWeapons.hpp b/addons/resting/CfgWeapons.hpp new file mode 100644 index 0000000000..56bef2c033 --- /dev/null +++ b/addons/resting/CfgWeapons.hpp @@ -0,0 +1,22 @@ +class CfgWeapons { + class Rifle_Long_Base_F; + class arifle_MX_Base_F; + + class arifle_MX_SW_F : arifle_MX_Base_F { + ACE_Bipod = 1; + }; + + class LMG_Mk200_F : Rifle_Long_Base_F { + ACE_Bipod = 1; + }; + class LMG_Zafir_F: Rifle_Long_Base_F { + ACE_Bipod = 1; + }; + + class LRR_base_F : Rifle_Long_Base_F { + ACE_Bipod = 1; + }; + class GM6_base_F : Rifle_Long_Base_F { + ACE_Bipod = 1; + }; +}; diff --git a/addons/resting/XEH_preInit.sqf b/addons/resting/XEH_preInit.sqf new file mode 100644 index 0000000000..6367607706 --- /dev/null +++ b/addons/resting/XEH_preInit.sqf @@ -0,0 +1,4 @@ +#include "script_component.hpp" + +PREP(hasBipod); +PREP(restWeapon); diff --git a/addons/resting/config.cpp b/addons/resting/config.cpp index f01391a3db..e68036418c 100644 --- a/addons/resting/config.cpp +++ b/addons/resting/config.cpp @@ -1,1449 +1,31 @@ -// PATCH CONFIG +#include "script_component.hpp" + class CfgPatches { - class AGM_Resting { - units[] = {}; - weapons[] = {}; - requiredVersion = 0.60; - requiredAddons[] = {AGM_Core}; - version = "0.95"; - versionStr = "0.95"; - versionAr[] = {0,95,0}; - author[] = {"KoffeinFlummi", "TaoSensai"}; - authorUrl = "https://github.com/KoffeinFlummi/"; - }; + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common"}; + author[] = {"KoffeinFlummi", "TaoSensai"}; + authorUrl = "https://github.com/KoffeinFlummi/"; + VERSION_CONFIG; + }; }; -class CfgFunctions { - class AGM_Resting { - class AGM_Resting { - file = "AGM_Resting\functions"; - class hasBipod; - class restWeapon; +#include "CfgEventHandlers.hpp" + +class ACE_Default_Keys { + class restWeapon { + displayName = "$STR_ACE_Resting_RestWeapon"; + condition = QUOTE([_player] call EFUNC(common,canUseWeapon) && {inputAction 'reloadMagazine' == 0} && {!weaponLowered _player} && {speed _player < 1}); + statement = QUOTE([ARR_3(_player, _vehicle, currentWeapon _player)] call FUNC(restWeapon)); + key = 15; + shift = 0; + control = 0; + alt = 0; }; - }; }; -class AGM_Core_Default_Keys { - class restWeapon { - displayName = "$STR_AGM_Resting_RestWeapon"; - condition = "[_player] call AGM_Core_fnc_canUseWeapon && {inputAction 'reloadMagazine' == 0} && {!weaponLowered _player} && {speed _player < 1}"; - statement = "[_player, _vehicle, currentWeapon _player] call AGM_Resting_fnc_restWeapon"; - key = 15; - shift = 0; - control = 0; - alt = 0; - }; -}; +#include "CfgWeapons.hpp" -class CfgWeapons { - class Rifle_Long_Base_F; - class arifle_MX_Base_F; - - class arifle_MX_SW_F : arifle_MX_Base_F { - AGM_Bipod = 1; - }; - - class LMG_Mk200_F : Rifle_Long_Base_F { - AGM_Bipod = 1; - }; - class LMG_Zafir_F: Rifle_Long_Base_F { - AGM_Bipod = 1; - }; - - class LRR_base_F : Rifle_Long_Base_F { - AGM_Bipod = 1; - }; - class GM6_base_F : Rifle_Long_Base_F { - AGM_Bipod = 1; - }; -}; - -// CODE BELOW TAKEN FROM TMR, PREFIXES EDITED FOR COMPATABILITY - -#define AGM_SWAY_DEPLOY 0.02 -#define AGM_SWAY_DEPLOYPRONE 0.01 -#define AGM_SWAY_RESTED 0.04 //0.08 -#define AGM_SWAY_RESTEDPRONE 0.02 //0.04 -#define AGM_DEPLOY_TURNSPEED 0.1 - -// Arma 3 doesn't respect turnSpeed. - -class CfgMovesBasic { - class Default; - - class Actions { - class RifleStandActions; - class RifleStandActions_agm_deploy : RifleStandActions { - stop = "AmovPercMstpSrasWrflDnon_agm_deploy"; - default = "AmovPercMstpSrasWrflDnon_agm_deploy"; - turnL = "AmovPercMstpSrasWrflDnon_agm_deploy"; - turnR = "AmovPercMstpSrasWrflDnon_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustLStandActions; - class RifleAdjustLStandActions_agm_deploy : RifleAdjustLStandActions { - stop = "AadjPercMstpSrasWrflDleft_agm_deploy"; - default = "AadjPercMstpSrasWrflDleft_agm_deploy"; - AdjustL = "AadjPercMstpSrasWrflDleft_agm_deploy"; - turnL = "AadjPercMstpSrasWrflDleft_agm_deploy"; - turnR = "AadjPercMstpSrasWrflDleft_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustRStandActions; - class RifleAdjustRStandActions_agm_deploy : RifleAdjustRStandActions { - stop = "AadjPercMstpSrasWrflDright_agm_deploy"; - default = "AadjPercMstpSrasWrflDright_agm_deploy"; - AdjustRight = "AadjPercMstpSrasWrflDright_agm_deploy"; - turnL = "AadjPercMstpSrasWrflDright_agm_deploy"; - turnR = "AadjPercMstpSrasWrflDright_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustFStandActions; - class RifleAdjustFStandActions_agm_deploy : RifleAdjustFStandActions { - stop = "AadjPercMstpSrasWrflDup_agm_deploy"; - default = "AadjPercMstpSrasWrflDup_agm_deploy"; - AdjustF = "AadjPercMstpSrasWrflDup_agm_deploy"; - turnL = "AadjPercMstpSrasWrflDup_agm_deploy"; - turnR = "AadjPercMstpSrasWrflDup_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustBStandActions; - class RifleAdjustBStandActions_agm_deploy : RifleAdjustBStandActions { - stop = "AadjPercMstpSrasWrflDdown_agm_deploy"; - default = "AadjPercMstpSrasWrflDdown_agm_deploy"; - AdjustB = "AadjPercMstpSrasWrflDdown_agm_deploy"; - turnR = "AadjPercMstpSrasWrflDdown_agm_deploy"; - turnL = "AadjPercMstpSrasWrflDdown_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleKneelActions; - class RifleKneelActions_agm_deploy : RifleKneelActions { - stop = "AmovPknlMstpSrasWrflDnon_agm_deploy"; - default = "AmovPknlMstpSrasWrflDnon_agm_deploy"; - crouch = "AmovPknlMstpSrasWrflDnon_agm_deploy"; // TODO: this might cause issues - turnL = "AmovPknlMstpSrasWrflDnon_agm_deploy"; - turnR = "AmovPknlMstpSrasWrflDnon_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustLKneelActions; - class RifleAdjustLKneelActions_agm_deploy : RifleAdjustLKneelActions { - stop = "AadjPknlMstpSrasWrflDleft_agm_deploy"; - default = "AadjPknlMstpSrasWrflDleft_agm_deploy"; - turnL = "AadjPknlMstpSrasWrflDleft_agm_deploy"; - turnR = "AadjPknlMstpSrasWrflDleft_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustRKneelActions; - class RifleAdjustRKneelActions_agm_deploy : RifleAdjustRKneelActions { - stop = "AadjPknlMstpSrasWrflDright_agm_deploy"; - default = "AadjPknlMstpSrasWrflDright_agm_deploy"; - turnL = "AadjPknlMstpSrasWrflDright_agm_deploy"; - turnR = "AadjPknlMstpSrasWrflDright_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustFKneelActions; - class RifleAdjustFKneelActions_agm_deploy : RifleAdjustFKneelActions { - stop = "AadjPknlMstpSrasWrflDup_agm_deploy"; - default = "AadjPknlMstpSrasWrflDup_agm_deploy"; - turnL = "AadjPknlMstpSrasWrflDup_agm_deploy"; - turnR = "AadjPknlMstpSrasWrflDup_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustBKneelActions; - class RifleAdjustBKneelActions_agm_deploy : RifleAdjustBKneelActions { - stop = "AadjPknlMstpSrasWrflDdown_agm_deploy"; - default = "AadjPknlMstpSrasWrflDdown_agm_deploy"; - turnL = "AadjPknlMstpSrasWrflDdown_agm_deploy"; - turnR = "AadjPknlMstpSrasWrflDdown_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleProneActions; - class RifleProneActions_agm_deploy : RifleProneActions { - stop = "AmovPpneMstpSrasWrflDnon_agm_deploy"; - default = "AmovPpneMstpSrasWrflDnon_agm_deploy"; - turnL = "AmovPpneMstpSrasWrflDnon_agm_deploy"; - turnR = "AmovPpneMstpSrasWrflDnon_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustLProneActions; - class RifleAdjustLProneActions_agm_deploy : RifleAdjustLProneActions { - stop = "AadjPpneMstpSrasWrflDleft_agm_deploy"; - default = "AadjPpneMstpSrasWrflDleft_agm_deploy"; - turnL = "AadjPpneMstpSrasWrflDleft_agm_deploy"; - turnR = "AadjPpneMstpSrasWrflDleft_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustRProneActions; - class RifleAdjustRProneActions_agm_deploy : RifleAdjustRProneActions { - stop = "AadjPpneMstpSrasWrflDright_agm_deploy"; - default = "AadjPpneMstpSrasWrflDright_agm_deploy"; - turnL = "AadjPpneMstpSrasWrflDright_agm_deploy"; - turnR = "AadjPpneMstpSrasWrflDright_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustFProneActions; - class RifleAdjustFProneActions_agm_deploy : RifleAdjustFProneActions { - stop = "aadjppnemstpsraswrfldup_agm_deploy"; - default = "aadjppnemstpsraswrfldup_agm_deploy"; - turnL = "aadjppnemstpsraswrfldup_agm_deploy"; - turnR = "aadjppnemstpsraswrfldup_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustBProneActions; - class RifleAdjustBProneActions_agm_deploy : RifleAdjustBProneActions { - stop = "AadjPpneMstpSrasWrflDdown_agm_deploy"; - default = "AadjPpneMstpSrasWrflDdown_agm_deploy"; - turnL = "AadjPpneMstpSrasWrflDdown_agm_deploy"; - turnR = "AadjPpneMstpSrasWrflDdown_agm_deploy"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - ////////////////////////////////////////////////////////////////////// - - class RifleStandActions_agm_rested : RifleStandActions { - stop = "AmovPercMstpSrasWrflDnon_agm_rested"; - default = "AmovPercMstpSrasWrflDnon_agm_rested"; - turnL = "AmovPercMstpSrasWrflDnon_agm_rested"; - turnR = "AmovPercMstpSrasWrflDnon_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustLStandActions_agm_rested : RifleAdjustLStandActions { - stop = "AadjPercMstpSrasWrflDleft_agm_rested"; - default = "AadjPercMstpSrasWrflDleft_agm_rested"; - AdjustL = "AadjPercMstpSrasWrflDleft_agm_rested"; - turnL = "AadjPercMstpSrasWrflDleft_agm_rested"; - turnR = "AadjPercMstpSrasWrflDleft_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustRStandActions_agm_rested : RifleAdjustRStandActions { - stop = "AadjPercMstpSrasWrflDright_agm_rested"; - default = "AadjPercMstpSrasWrflDright_agm_rested"; - AdjustRight = "AadjPercMstpSrasWrflDright_agm_rested"; - turnL = "AadjPercMstpSrasWrflDright_agm_rested"; - turnR = "AadjPercMstpSrasWrflDright_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustFStandActions_agm_rested : RifleAdjustFStandActions { - stop = "AadjPercMstpSrasWrflDup_agm_rested"; - default = "AadjPercMstpSrasWrflDup_agm_rested"; - AdjustF = "AadjPercMstpSrasWrflDup_agm_rested"; - turnL = "AadjPercMstpSrasWrflDup_agm_rested"; - turnR = "AadjPercMstpSrasWrflDup_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustBStandActions_agm_rested : RifleAdjustBStandActions { - stop = "AadjPercMstpSrasWrflDdown_agm_rested"; - default = "AadjPercMstpSrasWrflDdown_agm_rested"; - AdjustB = "AadjPercMstpSrasWrflDdown_agm_rested"; - turnR = "AadjPercMstpSrasWrflDdown_agm_rested"; - turnL = "AadjPercMstpSrasWrflDdown_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleKneelActions_agm_rested : RifleKneelActions { - stop = "AmovPknlMstpSrasWrflDnon_agm_rested"; - default = "AmovPknlMstpSrasWrflDnon_agm_rested"; - crouch = "AmovPknlMstpSrasWrflDnon_agm_rested"; - turnL = "AmovPknlMstpSrasWrflDnon_agm_rested"; - turnR = "AmovPknlMstpSrasWrflDnon_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustLKneelActions_agm_rested : RifleAdjustLKneelActions { - stop = "AadjPknlMstpSrasWrflDleft_agm_rested"; - default = "AadjPknlMstpSrasWrflDleft_agm_rested"; - turnL = "AadjPknlMstpSrasWrflDleft_agm_rested"; - turnR = "AadjPknlMstpSrasWrflDleft_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustRKneelActions_agm_rested : RifleAdjustRKneelActions { - stop = "AadjPknlMstpSrasWrflDright_agm_rested"; - default = "AadjPknlMstpSrasWrflDright_agm_rested"; - turnL = "AadjPknlMstpSrasWrflDright_agm_rested"; - turnR = "AadjPknlMstpSrasWrflDright_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustFKneelActions_agm_rested : RifleAdjustFKneelActions { - stop = "AadjPknlMstpSrasWrflDup_agm_rested"; - default = "AadjPknlMstpSrasWrflDup_agm_rested"; - turnL = "AadjPknlMstpSrasWrflDup_agm_rested"; - turnR = "AadjPknlMstpSrasWrflDup_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustBKneelActions_agm_rested : RifleAdjustBKneelActions { - stop = "AadjPknlMstpSrasWrflDdown_agm_rested"; - default = "AadjPknlMstpSrasWrflDdown_agm_rested"; - turnL = "AadjPknlMstpSrasWrflDdown_agm_rested"; - turnR = "AadjPknlMstpSrasWrflDdown_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleProneActions_agm_rested : RifleProneActions { - stop = "AmovPpneMstpSrasWrflDnon_agm_rested"; - default = "AmovPpneMstpSrasWrflDnon_agm_rested"; - turnL = "AmovPpneMstpSrasWrflDnon_agm_rested"; - turnR = "AmovPpneMstpSrasWrflDnon_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustLProneActions_agm_rested : RifleAdjustLProneActions { - stop = "AadjPpneMstpSrasWrflDleft_agm_rested"; - default = "AadjPpneMstpSrasWrflDleft_agm_rested"; - turnL = "AadjPpneMstpSrasWrflDleft_agm_rested"; - turnR = "AadjPpneMstpSrasWrflDleft_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustRProneActions_agm_rested : RifleAdjustRProneActions { - stop = "AadjPpneMstpSrasWrflDright_agm_rested"; - default = "AadjPpneMstpSrasWrflDright_agm_rested"; - turnL = "AadjPpneMstpSrasWrflDright_agm_rested"; - turnR = "AadjPpneMstpSrasWrflDright_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustFProneActions_agm_rested : RifleAdjustFProneActions { - stop = "aadjppnemstpsraswrfldup_agm_rested"; - default = "aadjppnemstpsraswrfldup_agm_rested"; - turnL = "aadjppnemstpsraswrfldup_agm_rested"; - turnR = "aadjppnemstpsraswrfldup_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class RifleAdjustBProneActions_agm_rested : RifleAdjustBProneActions { - stop = "AadjPpneMstpSrasWrflDdown_agm_rested"; - default = "AadjPpneMstpSrasWrflDdown_agm_rested"; - turnL = "AadjPpneMstpSrasWrflDdown_agm_rested"; - turnR = "AadjPpneMstpSrasWrflDdown_agm_rested"; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - ////////////////////////////////////////////////////////////////////// - // FFV - ////////////////////////////////////////////////////////////////////// - - class passenger_inside_1Actions; - class passenger_inside_1Actions_agm_deploy : passenger_inside_1Actions { - stop = "passenger_inside_1_Aim_agm_deploy"; - default = "passenger_inside_1_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_inside_2Actions; - class passenger_inside_2Actions_agm_deploy : passenger_inside_2Actions { - stop = "passenger_inside_2_Aim_agm_deploy"; - default = "passenger_inside_2_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_inside_3Actions; - class passenger_inside_3Actions_agm_deploy : passenger_inside_3Actions { - stop = "passenger_inside_3_Aim_agm_deploy"; - default = "passenger_inside_3_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_inside_4Actions; - class passenger_inside_4Actions_agm_deploy : passenger_inside_4Actions { - stop = "passenger_inside_4_Aim_agm_deploy"; - default = "passenger_inside_4_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_bench_1Actions; - class passenger_bench_1Actions_agm_deploy : passenger_bench_1Actions { - stop = "passenger_bench_1_Aim_agm_deploy"; - default = "passenger_bench_1_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_1Actions; - class passenger_boat_1Actions_agm_deploy : passenger_boat_1Actions { - stop = "passenger_boat_1_Aim_agm_deploy"; - default = "passenger_boat_1_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_2Actions; - class passenger_boat_2Actions_agm_deploy : passenger_boat_2Actions { - stop = "passenger_boat_2_Aim_agm_deploy"; - default = "passenger_boat_2_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_3Actions; - class passenger_boat_3Actions_agm_deploy : passenger_boat_3Actions { - stop = "passenger_boat_3_Aim_agm_deploy"; - default = "passenger_boat_3_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_4Actions; - class passenger_boat_4Actions_agm_deploy : passenger_boat_4Actions { - stop = "passenger_boat_4_Aim_agm_deploy"; - default = "passenger_boat_4_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_1Actions; - class passenger_flatground_1Actions_agm_deploy : passenger_flatground_1Actions { - stop = "passenger_flatground_1_Aim_agm_deploy"; - default = "passenger_flatground_1_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_2Actions; - class passenger_flatground_2Actions_agm_deploy : passenger_flatground_2Actions { - stop = "passenger_flatground_2_Aim_agm_deploy"; - default = "passenger_flatground_2_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_3Actions; - class passenger_flatground_3Actions_agm_deploy : passenger_flatground_3Actions { - stop = "passenger_flatground_3_Aim_agm_deploy"; - default = "passenger_flatground_3_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_4Actions; - class passenger_flatground_4Actions_agm_deploy : passenger_flatground_4Actions { - stop = "passenger_flatground_4_Aim_agm_deploy"; - default = "passenger_flatground_4_Aim_agm_deploy"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - ////////////////////////////////////////////////////////////////////// - - class passenger_inside_1Actions_agm_rested : passenger_inside_1Actions { - stop = "passenger_inside_1_Aim_agm_rested"; - default = "passenger_inside_1_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_inside_2Actions_agm_rested : passenger_inside_2Actions { - stop = "passenger_inside_2_Aim_agm_rested"; - default = "passenger_inside_2_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_inside_3Actions_agm_rested : passenger_inside_3Actions { - stop = "passenger_inside_3_Aim_agm_rested"; - default = "passenger_inside_3_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_inside_4Actions_agm_rested : passenger_inside_4Actions { - stop = "passenger_inside_4_Aim_agm_rested"; - default = "passenger_inside_4_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_bench_1Actions_agm_rested : passenger_bench_1Actions { - stop = "passenger_bench_1_Aim_agm_rested"; - default = "passenger_bench_1_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_1Actions_agm_rested : passenger_boat_1Actions { - stop = "passenger_boat_1_Aim_agm_rested"; - default = "passenger_boat_1_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_2Actions_agm_rested : passenger_boat_2Actions { - stop = "passenger_boat_2_Aim_agm_rested"; - default = "passenger_boat_2_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_3Actions_agm_rested : passenger_boat_3Actions { - stop = "passenger_boat_3_Aim_agm_rested"; - default = "passenger_boat_3_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_boat_4Actions_agm_rested : passenger_boat_4Actions { - stop = "passenger_boat_4_Aim_agm_rested"; - default = "passenger_boat_4_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_1Actions_agm_rested : passenger_flatground_1Actions { - stop = "passenger_flatground_1_Aim_agm_rested"; - default = "passenger_flatground_1_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_2Actions_agm_rested : passenger_flatground_2Actions { - stop = "passenger_flatground_2_Aim_agm_rested"; - default = "passenger_flatground_2_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_3Actions_agm_rested : passenger_flatground_3Actions { - stop = "passenger_flatground_3_Aim_agm_rested"; - default = "passenger_flatground_3_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - - class passenger_flatground_4Actions_agm_rested : passenger_flatground_4Actions { - stop = "passenger_flatground_4_Aim_agm_rested"; - default = "passenger_flatground_4_Aim_agm_rested"; - turnL = ""; - turnR = ""; - turnSpeed = AGM_DEPLOY_TURNSPEED; - limitFast = 1; - }; - }; -}; - -class CfgMovesMaleSdr : CfgMovesBasic { - class States { - class AmovPercMstpSrasWrflDnon; - class AmovPercMstpSrasWrflDnon_agm_deploy : AmovPercMstpSrasWrflDnon { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleStandActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"AmovPercMstpSrasWrflDnon_agm_deploy", 0.02}; - ConnectFrom[] = {"AmovPercMstpSrasWrflDnon_agm_deploy", 0.02}; - InterpolateFrom[] = {"AmovPercMstpSrasWrflDnon", 0.02}; - InterpolateTo[] = {"AmovPercMstpSrasWrflDnon", 0.02}; - }; - - class aadjpercmstpsraswrfldup; - class aadjpercmstpsraswrfldup_agm_deploy : aadjpercmstpsraswrfldup { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustFStandActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrfldup_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrfldup_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrfldup", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrfldup", 0.02}; - }; - - class aadjpercmstpsraswrflddown; - class aadjpercmstpsraswrflddown_agm_deploy : aadjpercmstpsraswrflddown { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustBStandActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrflddown_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrflddown_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrflddown", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrflddown", 0.02}; - }; - - class aadjpercmstpsraswrfldright; - class aadjpercmstpsraswrfldright_agm_deploy : aadjpercmstpsraswrfldright { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustRStandActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrfldright_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrfldright_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrfldright", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrfldright", 0.02}; - }; - - class aadjpercmstpsraswrfldleft; - class aadjpercmstpsraswrfldleft_agm_deploy : aadjpercmstpsraswrfldleft { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustLStandActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrfldleft_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrfldleft_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrfldleft", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrfldleft", 0.02}; - }; - - class aadjpknlmstpsraswrfldup; - class aadjpknlmstpsraswrfldup_agm_deploy : aadjpknlmstpsraswrfldup { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustFKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrfldup_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrfldup_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrfldup", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrfldup", 0.02}; - }; - - class amovpknlmstpsraswrfldnon; - class amovpknlmstpsraswrfldnon_agm_deploy : amovpknlmstpsraswrfldnon { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"amovpknlmstpsraswrfldnon_agm_deploy", 0.02}; - ConnectFrom[] = {"amovpknlmstpsraswrfldnon_agm_deploy", 0.02}; - InterpolateFrom[] = {"amovpknlmstpsraswrfldnon", 0.02}; - InterpolateTo[] = {"amovpknlmstpsraswrfldnon", 0.02}; - }; - - class aadjpknlmstpsraswrflddown; - class aadjpknlmstpsraswrflddown_agm_deploy : aadjpknlmstpsraswrflddown { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustBKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrflddown_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrflddown_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrflddown", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrflddown", 0.02}; - }; - - class aadjpknlmstpsraswrfldleft; - class aadjpknlmstpsraswrfldleft_agm_deploy : aadjpknlmstpsraswrfldleft { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustLKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrfldleft_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrfldleft_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrfldleft", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrfldleft", 0.02}; - }; - - class aadjpknlmstpsraswrfldright; - class aadjpknlmstpsraswrfldright_agm_deploy : aadjpknlmstpsraswrfldright { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "RifleAdjustRKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrfldright_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrfldright_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrfldright", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrfldright", 0.02}; - }; - - class aadjppnemstpsraswrfldup; - class aadjppnemstpsraswrfldup_agm_deploy : aadjppnemstpsraswrfldup { - aimPrecision = AGM_SWAY_DEPLOYPRONE; - actions = "RifleAdjustFProneActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrfldup_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrfldup_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrfldup", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrfldup", 0.02}; - }; - - class amovppnemstpsraswrfldnon; - class amovppnemstpsraswrfldnon_agm_deploy : amovppnemstpsraswrfldnon { - aimPrecision = AGM_SWAY_DEPLOYPRONE; - actions = "RifleProneActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"amovppnemstpsraswrfldnon_agm_deploy", 0.02}; - ConnectFrom[] = {"amovppnemstpsraswrfldnon_agm_deploy", 0.02}; - InterpolateFrom[] = {"amovppnemstpsraswrfldnon", 0.02}; - InterpolateTo[] = {"amovppnemstpsraswrfldnon", 0.02}; - }; - - class aadjppnemstpsraswrflddown; - class aadjppnemstpsraswrflddown_agm_deploy : aadjppnemstpsraswrflddown { - aimPrecision = AGM_SWAY_DEPLOYPRONE; - actions = "RifleAdjustBKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrflddown_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrflddown_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrflddown", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrflddown", 0.02}; - }; - - class aadjppnemstpsraswrfldleft; - class aadjppnemstpsraswrfldleft_agm_deploy : aadjppnemstpsraswrfldleft { - aimPrecision = AGM_SWAY_DEPLOYPRONE; - actions = "RifleAdjustLKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrfldleft_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrfldleft_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrfldleft", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrfldleft", 0.02}; - }; - - class aadjppnemstpsraswrfldright; - class aadjppnemstpsraswrfldright_agm_deploy : aadjppnemstpsraswrfldright { - aimPrecision = AGM_SWAY_DEPLOYPRONE; - actions = "RifleAdjustRKneelActions_agm_deploy"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrfldright_agm_deploy", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrfldright_agm_deploy", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrfldright", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrfldright", 0.02}; - }; - - ///////////////////////////////////////////////////////////////////////////// - - class AmovPercMstpSrasWrflDnon_agm_rested : AmovPercMstpSrasWrflDnon { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleStandActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"AmovPercMstpSrasWrflDnon_agm_rested", 0.02}; - ConnectFrom[] = {"AmovPercMstpSrasWrflDnon_agm_rested", 0.02}; - InterpolateFrom[] = {"AmovPercMstpSrasWrflDnon", 0.02}; - InterpolateTo[] = {"AmovPercMstpSrasWrflDnon", 0.02}; - }; - - class aadjpercmstpsraswrfldup_agm_rested : aadjpercmstpsraswrfldup { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustFStandActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrfldup_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrfldup_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrfldup", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrfldup", 0.02}; - }; - - class aadjpercmstpsraswrflddown_agm_rested : aadjpercmstpsraswrflddown { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustBStandActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrflddown_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrflddown_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrflddown", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrflddown", 0.02}; - }; - - class aadjpercmstpsraswrfldright_agm_rested : aadjpercmstpsraswrfldright { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustRStandActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrfldright_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrfldright_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrfldright", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrfldright", 0.02}; - }; - - class aadjpercmstpsraswrfldleft_agm_rested : aadjpercmstpsraswrfldleft { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustLStandActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpercmstpsraswrfldleft_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpercmstpsraswrfldleft_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpercmstpsraswrfldleft", 0.02}; - InterpolateTo[] = {"aadjpercmstpsraswrfldleft", 0.02}; - }; - - class aadjpknlmstpsraswrfldup_agm_rested : aadjpknlmstpsraswrfldup { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustFKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrfldup_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrfldup_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrfldup", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrfldup", 0.02}; - }; - - class amovpknlmstpsraswrfldnon_agm_rested : amovpknlmstpsraswrfldnon { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"amovpknlmstpsraswrfldnon_agm_rested", 0.02}; - ConnectFrom[] = {"amovpknlmstpsraswrfldnon_agm_rested", 0.02}; - InterpolateFrom[] = {"amovpknlmstpsraswrfldnon", 0.02}; - InterpolateTo[] = {"amovpknlmstpsraswrfldnon", 0.02}; - }; - - class aadjpknlmstpsraswrflddown_agm_rested : aadjpknlmstpsraswrflddown { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustBKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrflddown_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrflddown_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrflddown", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrflddown", 0.02}; - }; - - class aadjpknlmstpsraswrfldleft_agm_rested : aadjpknlmstpsraswrfldleft { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustLKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrfldleft_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrfldleft_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrfldleft", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrfldleft", 0.02}; - }; - - class aadjpknlmstpsraswrfldright_agm_rested : aadjpknlmstpsraswrfldright { - aimPrecision = AGM_SWAY_RESTED; - actions = "RifleAdjustRKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjpknlmstpsraswrfldright_agm_rested", 0.02}; - ConnectFrom[] = {"aadjpknlmstpsraswrfldright_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjpknlmstpsraswrfldright", 0.02}; - InterpolateTo[] = {"aadjpknlmstpsraswrfldright", 0.02}; - }; - - class aadjppnemstpsraswrfldup_agm_rested : aadjppnemstpsraswrfldup { - aimPrecision = AGM_SWAY_RESTEDPRONE; - actions = "RifleAdjustFProneActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrfldup_agm_rested", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrfldup_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrfldup", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrfldup", 0.02}; - }; - - class amovppnemstpsraswrfldnon_agm_rested : amovppnemstpsraswrfldnon { - aimPrecision = AGM_SWAY_RESTEDPRONE; - actions = "RifleProneActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"amovppnemstpsraswrfldnon_agm_rested", 0.02}; - ConnectFrom[] = {"amovppnemstpsraswrfldnon_agm_rested", 0.02}; - InterpolateFrom[] = {"amovppnemstpsraswrfldnon", 0.02}; - InterpolateTo[] = {"amovppnemstpsraswrfldnon", 0.02}; - }; - - class aadjppnemstpsraswrflddown_agm_rested : aadjppnemstpsraswrflddown { - aimPrecision = AGM_SWAY_RESTEDPRONE; - actions = "RifleAdjustBKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrflddown_agm_rested", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrflddown_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrflddown", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrflddown", 0.02}; - }; - - class aadjppnemstpsraswrfldleft_agm_rested : aadjppnemstpsraswrfldleft { - aimPrecision = AGM_SWAY_RESTEDPRONE; - actions = "RifleAdjustLKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrfldleft_agm_rested", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrfldleft_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrfldleft", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrfldleft", 0.02}; - }; - - class aadjppnemstpsraswrfldright_agm_rested : aadjppnemstpsraswrfldright { - aimPrecision = AGM_SWAY_RESTEDPRONE; - actions = "RifleAdjustRKneelActions_agm_rested"; - aiming = "aimingLying"; - speed = 0.01; - onLandEnd = true; - onLandBeg = true; - - ConnectTo[] = {"aadjppnemstpsraswrfldright_agm_rested", 0.02}; - ConnectFrom[] = {"aadjppnemstpsraswrfldright_agm_rested", 0.02}; - InterpolateFrom[] = {"aadjppnemstpsraswrfldright", 0.02}; - InterpolateTo[] = {"aadjppnemstpsraswrfldright", 0.02}; - }; - - ////////////////////////////////////////////////////////////////////// - // FFV - ////////////////////////////////////////////////////////////////////// - - class passenger_bench_1_Aim; - class passenger_bench_1_Aim_agm_deploy : passenger_bench_1_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_bench_1Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_bench_1_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_bench_1_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_bench_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_bench_1_Aim", 0.02}; - }; - - class passenger_inside_1_Aim; - class passenger_inside_1_Aim_agm_deploy : passenger_inside_1_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_inside_1Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_1_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_inside_1_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_inside_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_1_Aim", 0.02}; - }; - - class passenger_inside_2_Aim; - class passenger_inside_2_Aim_agm_deploy : passenger_inside_2_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_inside_2Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_2_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_inside_2_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_inside_2_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_2_Aim", 0.02}; - }; - - class passenger_inside_3_Aim; - class passenger_inside_3_Aim_agm_deploy : passenger_inside_3_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_inside_3Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_3_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_inside_3_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_inside_3_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_3_Aim", 0.02}; - }; - - class passenger_inside_4_Aim; - class passenger_inside_4_Aim_agm_deploy : passenger_inside_4_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_inside_4Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_4_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_inside_4_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_inside_4_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_4_Aim", 0.02}; - }; - - class passenger_boat_1_Aim; - class passenger_boat_1_Aim_agm_deploy : passenger_boat_1_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_boat_1Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_1_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_boat_1_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_boat_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_1_Aim", 0.02}; - }; - - class passenger_boat_2_Aim; - class passenger_boat_2_Aim_agm_deploy : passenger_boat_2_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_boat_2Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_2_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_boat_2_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_boat_2_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_2_Aim", 0.02}; - }; - - class passenger_boat_3_Aim; - class passenger_boat_3_Aim_agm_deploy : passenger_boat_3_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_boat_3Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_3_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_boat_3_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_boat_3_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_3_Aim", 0.02}; - }; - - class passenger_boat_4_Aim; - class passenger_boat_4_Aim_agm_deploy : passenger_boat_4_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_boat_4Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_4_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_boat_4_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_boat_4_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_4_Aim", 0.02}; - }; - - class passenger_flatground_1_Aim; - class passenger_flatground_1_Aim_agm_deploy : passenger_flatground_1_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_flatground_1Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_1_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_flatground_1_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_flatground_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_1_Aim", 0.02}; - }; - - class passenger_flatground_2_Aim; - class passenger_flatground_2_Aim_agm_deploy : passenger_flatground_2_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_flatground_2Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_2_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_flatground_2_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_flatground_2_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_2_Aim", 0.02}; - }; - - class passenger_flatground_3_Aim; - class passenger_flatground_3_Aim_agm_deploy : passenger_flatground_3_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_flatground_3Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_3_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_flatground_3_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_flatground_3_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_3_Aim", 0.02}; - }; - - class passenger_flatground_4_Aim; - class passenger_flatground_4_Aim_agm_deploy : passenger_flatground_4_Aim { - aimPrecision = AGM_SWAY_DEPLOY; - actions = "passenger_flatground_4Actions_agm_deploy"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_4_Aim_agm_deploy", 0.02}; - ConnectFrom[] = {"passenger_flatground_4_Aim_agm_deploy", 0.02}; - InterpolateFrom[] = {"passenger_flatground_4_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_4_Aim", 0.02}; - }; - - ////////////////////////////////////////////////////////////////////// - - class passenger_bench_1_Aim_agm_rested : passenger_bench_1_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_bench_1Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_bench_1_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_bench_1_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_bench_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_bench_1_Aim", 0.02}; - }; - - class passenger_inside_1_Aim_agm_rested : passenger_inside_1_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_inside_1Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_1_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_inside_1_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_inside_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_1_Aim", 0.02}; - }; - - class passenger_inside_2_Aim_agm_rested : passenger_inside_2_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_inside_2Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_2_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_inside_2_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_inside_2_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_2_Aim", 0.02}; - }; - - class passenger_inside_3_Aim_agm_rested : passenger_inside_3_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_inside_3Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_3_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_inside_3_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_inside_3_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_3_Aim", 0.02}; - }; - - class passenger_inside_4_Aim_agm_rested : passenger_inside_4_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_inside_4Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_inside_4_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_inside_4_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_inside_4_Aim", 0.02}; - InterpolateTo[] = {"passenger_inside_4_Aim", 0.02}; - }; - - class passenger_boat_1_Aim_agm_rested : passenger_boat_1_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_boat_1Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_1_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_boat_1_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_boat_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_1_Aim", 0.02}; - }; - - class passenger_boat_2_Aim_agm_rested : passenger_boat_2_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_boat_2Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_2_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_boat_2_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_boat_2_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_2_Aim", 0.02}; - }; - - class passenger_boat_3_Aim_agm_rested : passenger_boat_3_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_boat_3Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_3_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_boat_3_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_boat_3_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_3_Aim", 0.02}; - }; - - class passenger_boat_4_Aim_agm_rested : passenger_boat_4_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_boat_4Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_boat_4_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_boat_4_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_boat_4_Aim", 0.02}; - InterpolateTo[] = {"passenger_boat_4_Aim", 0.02}; - }; - - class passenger_flatground_1_Aim_agm_rested : passenger_flatground_1_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_flatground_1Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_1_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_flatground_1_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_flatground_1_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_1_Aim", 0.02}; - }; - - class passenger_flatground_2_Aim_agm_rested : passenger_flatground_2_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_flatground_2Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_2_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_flatground_2_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_flatground_2_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_2_Aim", 0.02}; - }; - - class passenger_flatground_3_Aim_agm_rested : passenger_flatground_3_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_flatground_3Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_3_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_flatground_3_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_flatground_3_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_3_Aim", 0.02}; - }; - - class passenger_flatground_4_Aim_agm_rested : passenger_flatground_4_Aim { - aimPrecision = AGM_SWAY_RESTED; - actions = "passenger_flatground_4Actions_agm_rested"; - aiming = "aimingDefault"; - speed = 0.01; - onLandEnd = false; - onLandBeg = false; - - ConnectTo[] = {"passenger_flatground_4_Aim_agm_rested", 0.02}; - ConnectFrom[] = {"passenger_flatground_4_Aim_agm_rested", 0.02}; - InterpolateFrom[] = {"passenger_flatground_4_Aim", 0.02}; - InterpolateTo[] = {"passenger_flatground_4_Aim", 0.02}; - }; - }; -}; +#include "CfgMoves.hpp" diff --git a/addons/resting/functions/fn_hasBipod.sqf b/addons/resting/functions/fn_hasBipod.sqf deleted file mode 100644 index 353d3aecf0..0000000000 --- a/addons/resting/functions/fn_hasBipod.sqf +++ /dev/null @@ -1,9 +0,0 @@ -// by commy2 - -private ["_weapon", "_config"]; - -_weapon = _this select 0; - -_config = configFile >> "CfgWeapons" >> _weapon; - -getNumber (_config >> "AGM_Bipod") == 1 || {getNumber (_config >> "tmr_autorest_deployable") == 1} diff --git a/addons/resting/functions/fnc_hasBipod.sqf b/addons/resting/functions/fnc_hasBipod.sqf new file mode 100644 index 0000000000..0a40943c92 --- /dev/null +++ b/addons/resting/functions/fnc_hasBipod.sqf @@ -0,0 +1,12 @@ +// by commy2 +#include "script_component.hpp" + +private ["_weapon", "_config"]; + +_weapon = _this select 0; + +_config = configFile >> "CfgWeapons" >> _weapon; + +getNumber (_config >> "ACE_Bipod") == 1 || +getNumber (_config >> "AGM_Bipod") == 1 || +{getNumber (_config >> "tmr_autorest_deployable") == 1} diff --git a/addons/resting/functions/fn_restWeapon.sqf b/addons/resting/functions/fnc_restWeapon.sqf similarity index 74% rename from addons/resting/functions/fn_restWeapon.sqf rename to addons/resting/functions/fnc_restWeapon.sqf index bb2345e010..cddfd89ce5 100644 --- a/addons/resting/functions/fn_restWeapon.sqf +++ b/addons/resting/functions/fnc_restWeapon.sqf @@ -10,6 +10,7 @@ * None * */ +#include "script_component.hpp" #define RESTEDRECOIL 0.6 #define BIPODRECOIL 0.3 @@ -35,37 +36,37 @@ _fnc_unRestWeapon = { private "_animation"; _animation = animationState _unit; - if (_unit getVariable ["AGM_bipodDeployed", false]) then { + if (_unit getVariable ["ACE_bipodDeployed", false]) then { _unit setUnitRecoilCoefficient (unitRecoilCoefficient _unit / BIPODRECOIL); - if (_animation find "_agm_deploy" != -1) then { - //[_unit, [_animation, "_agm_deploy", ""] call CBA_fnc_replace, 2] call AGM_Core_fnc_doAnimation; - _unit switchMove ([_animation, "_agm_deploy", ""] call CBA_fnc_replace); + if (_animation find "_ace_deploy" != -1) then { + //[_unit, [_animation, "_ace_deploy", ""] call CBA_fnc_replace, 2] call EFUNC(common,doAnimation); + _unit switchMove ([_animation, "_ace_deploy", ""] call CBA_fnc_replace); }; private "_picture"; _picture = getText (configFile >> "CfgWeapons" >> _weapon >> "picture"); - [localize "STR_AGM_Resting_BipodUndeployed", _picture] call AGM_Core_fnc_displayTextPicture; + [localize "STR_ACE_Resting_BipodUndeployed", _picture] call EFUNC(common,displayTextPicture); } else { _unit setUnitRecoilCoefficient (unitRecoilCoefficient _unit / RESTEDRECOIL); - if (_animation find "_agm_rested" != -1) then { - //[_unit, [_animation, "_agm_rested", ""] call CBA_fnc_replace, 2] call AGM_Core_fnc_doAnimation; - _unit switchMove ([_animation, "_agm_rested", ""] call CBA_fnc_replace); + if (_animation find "_ace_rested" != -1) then { + //[_unit, [_animation, "_ace_rested", ""] call CBA_fnc_replace, 2] call EFUNC(common,doAnimation); + _unit switchMove ([_animation, "_ace_rested", ""] call CBA_fnc_replace); }; private "_picture"; _picture = getText (configFile >> "CfgWeapons" >> _weapon >> "picture"); - [localize "STR_AGM_Resting_WeaponLifted", _picture] call AGM_Core_fnc_displayTextPicture; + [localize "STR_ACE_Resting_WeaponLifted", _picture] call EFUNC(common,displayTextPicture); }; - _unit setVariable ["AGM_weaponRested", false]; - _unit setVariable ["AGM_bipodDeployed", false]; + _unit setVariable ["ACE_weaponRested", false]; + _unit setVariable ["ACE_bipodDeployed", false]; }; -if (_unit getVariable ["AGM_weaponRested", false]) exitWith {call _fnc_unRestWeapon}; +if (_unit getVariable ["ACE_weaponRested", false]) exitWith {call _fnc_unRestWeapon}; // exit if this is not an available animation -if (!isClass (configFile >> "CfgMovesMaleSdr" >> "States" >> format ["%1_agm_deploy", animationState _unit])) exitWith {}; +if (!isClass (configFile >> "CfgMovesMaleSdr" >> "States" >> format ["%1_ace_deploy", animationState _unit])) exitWith {}; // PREPARE INTERSECTS private "_fnc_getIntersection"; @@ -131,7 +132,7 @@ private "_intersects"; _intersects = call _fnc_getIntersection; if (true in _intersects) then { - _unit setVariable ["AGM_weaponRested", true]; + _unit setVariable ["ACE_weaponRested", true]; private "_restedPosition"; _restedPosition = getPosASL _unit; @@ -139,27 +140,27 @@ if (true in _intersects) then { // REST THE WEAPON addCamShake CAMSHAKE; - if ([_weapon] call AGM_Resting_fnc_hasBipod && {_intersects select 3}) then { - _unit setVariable ["AGM_bipodDeployed", true]; + if ([_weapon] call FUNC(hasBipod) && {_intersects select 3}) then { + _unit setVariable ["ACE_bipodDeployed", true]; _unit setUnitRecoilCoefficient (BIPODRECOIL * unitRecoilCoefficient _unit); - //[_unit, format ["%1_agm_deploy", animationState _unit], 2] call AGM_Core_fnc_doAnimation; - _unit switchMove format ["%1_agm_deploy", animationState _unit]; + //[_unit, format ["%1_ace_deploy", animationState _unit], 2] call EFUNC(common,doAnimation); + _unit switchMove format ["%1_ace_deploy", animationState _unit]; private "_picture"; _picture = getText (configFile >> "CfgWeapons" >> _weapon >> "picture"); - [localize "STR_AGM_Resting_BipodDeployed", _picture] call AGM_Core_fnc_displayTextPicture; + [localize "STR_ACE_Resting_BipodDeployed", _picture] call EFUNC(common,displayTextPicture); } else { - _unit setVariable ["AGM_bipodDeployed", false]; + _unit setVariable ["ACE_bipodDeployed", false]; _unit setUnitRecoilCoefficient (RESTEDRECOIL * unitRecoilCoefficient _unit); - //[_unit, format ["%1_agm_rested", animationState _unit], 2] call AGM_Core_fnc_doAnimation; - _unit switchMove format ["%1_agm_rested", animationState _unit]; + //[_unit, format ["%1_ace_rested", animationState _unit], 2] call EFUNC(common,doAnimation); + _unit switchMove format ["%1_ace_rested", animationState _unit]; private "_picture"; _picture = getText (configFile >> "CfgWeapons" >> _weapon >> "picture"); - [localize "STR_AGM_Resting_WeaponRested", _picture] call AGM_Core_fnc_displayTextPicture; + [localize "STR_ACE_Resting_WeaponRested", _picture] call EFUNC(common,displayTextPicture); }; // CHECK FOR PLAYER MOVING AWAY, CHANGING WEAPONS ETC @@ -171,11 +172,11 @@ if (true in _intersects) then { _fnc_getIntersection = _this select 4; _restedPosition = _this select 5; - while {_unit getVariable ["AGM_weaponRested", false]} do { + while {_unit getVariable ["ACE_weaponRested", false]} do { _intersects = call _fnc_getIntersection; if ( - _unit != AGM_player + _unit != ACE_player || {_vehicle != vehicle _unit} || {inputAction "reloadMagazine" != 0} || {weaponLowered _unit} diff --git a/addons/resting/functions/script_component.hpp b/addons/resting/functions/script_component.hpp new file mode 100644 index 0000000000..9a1f2912f9 --- /dev/null +++ b/addons/resting/functions/script_component.hpp @@ -0,0 +1 @@ +#include "\z\ace\addons\resting\script_component.hpp" \ No newline at end of file diff --git a/addons/resting/script_component.hpp b/addons/resting/script_component.hpp new file mode 100644 index 0000000000..144267f508 --- /dev/null +++ b/addons/resting/script_component.hpp @@ -0,0 +1,12 @@ +#define COMPONENT resting +#include "\z\ace\Addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_RESTING + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_RESTING + #define DEBUG_SETTINGS DEBUG_SETTINGS_RESTING +#endif + +#include "\z\ace\Addons\main\script_macros.hpp" diff --git a/addons/resting/stringtable.xml b/addons/resting/stringtable.xml index d61d0ead7a..e74892f6eb 100644 --- a/addons/resting/stringtable.xml +++ b/addons/resting/stringtable.xml @@ -1,8 +1,8 @@ - + - + Rest Weapon Waffe auflegen Apoyar el arma @@ -15,7 +15,7 @@ Appoggia l'arma - + Bipod deployed Zweibein ausgeklappt Bípode desplegado @@ -27,7 +27,7 @@ Bipé apoiado Bipiede appoggiato - + Weapon rested Waffe aufgelegt Arma apoyada @@ -40,7 +40,7 @@ Arma appoggiata - + Bipod undeployed Zweibein eingeklappt Bípode plegado @@ -52,7 +52,7 @@ Bipé recolhido Bipiede richiuso - + Weapon lifted Waffe gehoben Arma levantada