98 string particleFileName;
102 if (surfaceNameToEffectIDMap)
104 if (!surfaceNameToEffectIDMap.Find(
surfaceName, result))
106 if(!surfaceNameToEffectIDMap.Find(
"default", result))
108 g_Game.ConfigGetText(
string.Format(
"cfgAmmo %1 particle", ammoName), particleFileName);
110 if ( particleFileName !=
"" )
115 result = surfaceNameToEffectIDMap.Get(
"default");
121 g_Game.ConfigGetText(
string.Format(
"cfgAmmo %1 particle", ammoName), particleFileName);
123 if ( particleFileName !=
"" )
129 result = surfaceNameToEffectIDMap.Get(
"default");
static const int EXPLOSION_GRENADE_SAND
static int GetParticleIDByName(string name)
Returns particle's ID based on the filename (without .ptc suffix)
static const int EXPLOSION_GRENADE_DESERT_SAND
static const int EXPLOSION_LANDMINE
static const int EXPLOSION_GRENADE_ICE
static const int EXPLOSION_GRENADE_SNOW