Get the typename for the effect for this ammoType.
См. определение в файле AmmoEffects.c строка 72
73 {
74 typename typeName;
75
76
78 {
79
80 string effectName;
81 g_Game.ConfigGetText(
string.Format(
"cfgAmmo %1 effect",
ammoType), effectName);
82
83
84 if ( effectName != "" )
85 {
86 typeName = effectName.
ToType();
87 }
88
89
91 }
92
93 return typeName;
94 }
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...
Перекрестные ссылки ammoType, g_Game, m_AmmoEffects и string::ToType().
Используется в PlayAmmoEffect().