From 6b9b3bc6bdaecdf3ebceda868d29c32f6c008d32 Mon Sep 17 00:00:00 2001 From: commy2 Date: Thu, 26 Mar 2015 13:21:16 +0100 Subject: [PATCH] remove idle animations for players with lowered weapon --- addons/noidle/$PBOPREFIX$ | 1 + addons/noidle/CfgMoves.hpp | 35 ++++++++++++++++++++++++++++++ addons/noidle/config.cpp | 15 +++++++++++++ addons/noidle/script_component.hpp | 12 ++++++++++ 4 files changed, 63 insertions(+) create mode 100644 addons/noidle/$PBOPREFIX$ create mode 100644 addons/noidle/CfgMoves.hpp create mode 100644 addons/noidle/config.cpp create mode 100644 addons/noidle/script_component.hpp diff --git a/addons/noidle/$PBOPREFIX$ b/addons/noidle/$PBOPREFIX$ new file mode 100644 index 0000000000..e2dfb2cad3 --- /dev/null +++ b/addons/noidle/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\noidle \ No newline at end of file diff --git a/addons/noidle/CfgMoves.hpp b/addons/noidle/CfgMoves.hpp new file mode 100644 index 0000000000..2f7561c5ff --- /dev/null +++ b/addons/noidle/CfgMoves.hpp @@ -0,0 +1,35 @@ + +class CfgMovesBasic { + class StandBase; +}; + +class CfgMovesMaleSdr: CfgMovesBasic { + class States { + // rifle + class AmovPercMstpSlowWrflDnon: StandBase { + variantsPlayer[] = {/*"AidlPercMstpSlowWrflDnon_G01",0.5,"AidlPercMstpSlowWrflDnon_G02",0.125,"AidlPercMstpSlowWrflDnon_G03",0.125,"AidlPercMstpSlowWrflDnon_G04",0.125,"AidlPercMstpSlowWrflDnon_G05",0.125*/}; + }; + class AmovPknlMstpSlowWrflDnon: AmovPercMstpSlowWrflDnon { + variantsPlayer[] = {/*"AidlPknlMstpSlowWrflDnon_G01",0.25,"AidlPknlMstpSlowWrflDnon_G02",0.25,"AidlPknlMstpSlowWrflDnon_G03",0.25*/}; + }; + + // pistol + class AmovPercMstpSrasWpstDnon; + class AmovPercMstpSlowWpstDnon: AmovPercMstpSrasWpstDnon { + variantsPlayer[] = {/*"AidlPercMstpSlowWpstDnon_G01",0.333,"AidlPercMstpSlowWpstDnon_G02",0.333,"AidlPercMstpSlowWpstDnon_G03",0.334*/}; + }; + + class AmovPknlMstpSrasWpstDnon; + class AmovPknlMstpSlowWpstDnon: AmovPknlMstpSrasWpstDnon { + variantsPlayer[] = {/*"AidlPknlMstpSlowWpstDnon_G03",0.333,"AidlPknlMstpSlowWpstDnon_G02",0.333,"AidlPknlMstpSlowWpstDnon_G01",0.334*/}; + }; + + // none + class AmovPercMstpSnonWnonDnon: StandBase { + variantsPlayer[] = {/*"AidlPercMstpSnonWnonDnon_G01",0.16,"AidlPercMstpSnonWnonDnon_G02",0.16,"AidlPercMstpSnonWnonDnon_G03",0.16,"AidlPercMstpSnonWnonDnon_G04",0.16,"AidlPercMstpSnonWnonDnon_G05",0.16,"AidlPercMstpSnonWnonDnon_G06",0.16*/}; + }; + class AmovPknlMstpSnonWnonDnon: AmovPercMstpSnonWnonDnon { + variantsPlayer[] = {/*"AidlPknlMstpSnonWnonDnon_G01",0.33,"AidlPknlMstpSnonWnonDnon_G02",0.33,"AidlPknlMstpSnonWnonDnon_G03",0.33*/}; + }; + }; +}; diff --git a/addons/noidle/config.cpp b/addons/noidle/config.cpp new file mode 100644 index 0000000000..3c2ac1a9d6 --- /dev/null +++ b/addons/noidle/config.cpp @@ -0,0 +1,15 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common"}; + author[] = {"commy2"}; + authorUrl = "https://github.com/commy2"; + VERSION_CONFIG; + }; +}; + +#include "CfgMoves.hpp" diff --git a/addons/noidle/script_component.hpp b/addons/noidle/script_component.hpp new file mode 100644 index 0000000000..5a7623b0ba --- /dev/null +++ b/addons/noidle/script_component.hpp @@ -0,0 +1,12 @@ +#define COMPONENT noidle +#include "\z\ace\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_NOIDLE + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_ENABLED_NOIDLE + #define DEBUG_SETTINGS DEBUG_ENABLED_NOIDLE +#endif + +#include "\z\ace\addons\main\script_macros.hpp" \ No newline at end of file