24 return PluginConfigEmotesProfile.Cast(
GetPlugin(PluginConfigEmotesProfile) );
33 CfgParamInt param =
new CfgParamInt(
"" );
34 param.SetValue( value );
41 protected CfgParamInt
SetInt(
string key,
int value )
43 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key,
CFG_TYPE_INT ) );
44 param.SetValue( value );
51 if ( ParamExist(key) )
53 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key,
CFG_TYPE_INT ) );
54 return param.GetValue();
58 if ( m_DefaultValues.Contains(key) )
60 CfgParamInt default_param = CfgParamInt.Cast( m_DefaultValues.Get( key ) );
61 return SetInt( key, default_param.GetValue() ).GetValue();
65 return SetInt( key, 0 ).GetValue();
78 m_DefaultValues.Insert( EmoteSlots.EMOTE_1.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_GREETING) );
79 m_DefaultValues.Insert( EmoteSlots.EMOTE_2.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_SOS) );
80 m_DefaultValues.Insert( EmoteSlots.EMOTE_3.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_HEART) );
81 m_DefaultValues.Insert( EmoteSlots.EMOTE_4.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_TAUNT) );
82 m_DefaultValues.Insert( EmoteSlots.EMOTE_5.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_SURRENDER) );
83 m_DefaultValues.Insert( EmoteSlots.EMOTE_6.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_TAUNTKISS) );
84 m_DefaultValues.Insert( EmoteSlots.EMOTE_7.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_POINT) );
85 m_DefaultValues.Insert( EmoteSlots.EMOTE_8.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_TAUNTELBOW) );
86 m_DefaultValues.Insert( EmoteSlots.EMOTE_9.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_THUMB) );
87 m_DefaultValues.Insert( EmoteSlots.EMOTE_10.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_THROAT) );
88 m_DefaultValues.Insert( EmoteSlots.EMOTE_11.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_SUICIDE) );
106 return GetInt( EmoteSlots.EMOTE_1.ToString() );
111 SetInt( EmoteSlots.EMOTE_1.ToString(), emoted_id );
116 return GetInt( EmoteSlots.EMOTE_2.ToString() );
121 SetInt( EmoteSlots.EMOTE_2.ToString(), emoted_id );
126 return GetInt( EmoteSlots.EMOTE_3.ToString() );
131 SetInt( EmoteSlots.EMOTE_3.ToString(), emoted_id );
136 return GetInt( EmoteSlots.EMOTE_4.ToString() );
141 SetInt( EmoteSlots.EMOTE_4.ToString(), emoted_id );
146 return GetInt( EmoteSlots.EMOTE_5.ToString() );
151 SetInt( EmoteSlots.EMOTE_5.ToString(), emoted_id );
156 return GetInt( EmoteSlots.EMOTE_6.ToString() );
161 SetInt( EmoteSlots.EMOTE_6.ToString(), emoted_id );
166 return GetInt( EmoteSlots.EMOTE_7.ToString() );
171 SetInt( EmoteSlots.EMOTE_7.ToString(), emoted_id );
176 return GetInt( EmoteSlots.EMOTE_8.ToString() );
181 SetInt( EmoteSlots.EMOTE_8.ToString(), emoted_id );
186 return GetInt( EmoteSlots.EMOTE_9.ToString() );
191 SetInt( EmoteSlots.EMOTE_9.ToString(), emoted_id );
196 return GetInt( EmoteSlots.EMOTE_10.ToString() );
201 SetInt( EmoteSlots.EMOTE_10.ToString(), emoted_id );
206 return GetInt( EmoteSlots.EMOTE_11.ToString() );
211 SetInt( EmoteSlots.EMOTE_11.ToString(), emoted_id );
static PluginConfigEmotesProfile GetInstance()
void SetEmoteSlot8(int emoted_id)
override string GetFileName()
void SetEmoteSlot2(int emoted_id)
void SetEmoteSlot9(int emoted_id)
void SetEmoteSlot7(int emoted_id)
ref TStringArray m_PresetList
CfgParamInt SetInt(string key, int value)
int GetEmoteFromSlot(string slot)
CfgParamInt GetNewCfgParamInt(int value)
void PluginConfigEmotesProfile()
void SetEmoteSlot3(int emoted_id)
void SetEmoteSlot6(int emoted_id)
void SetEmoteSlot1(int emoted_id)
void SetEmoteSlot4(int emoted_id)
ref map< string, ref CfgParam > m_DefaultValues
void SetEmoteSlot5(int emoted_id)
void SetEmoteSlot10(int emoted_id)
void SetEmoteSlot11(int emoted_id)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
const string CFG_FILE_EMOTES_PROFILE
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_6
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_8
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_11
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_2
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_1
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_9
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_3
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_7
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_10
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_4
class PluginConfigEmotesProfile extends PluginConfigHandler EMOTE_5
PluginBase GetPlugin(typename plugin_type)