Get the typename for the effect for this ammoType.
69 {
70 typename typeName;
71
72
74 {
75
76 string effectName;
77 g_Game.ConfigGetText(
string.Format(
"cfgAmmo %1 effect", ammoType), effectName);
78
79
80 if ( effectName != "" )
81 {
82 typeName = effectName.
ToType();
83 }
84
85
87 }
88
89 return typeName;
90 }
static ref map< string, typename > m_AmmoEffects
Key: Ammo class name; Data: ParticleList ID.
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...