remove idle animations for players with lowered weapon

This commit is contained in:
commy2 2015-03-26 13:21:16 +01:00
parent 6a1dfe00da
commit 6b9b3bc6bd
4 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1 @@
z\ace\addons\noidle

View File

@ -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*/};
};
};
};

15
addons/noidle/config.cpp Normal file
View File

@ -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"

View File

@ -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"