91 {
93
94 #ifdef NO_GUI
95 return result;
96 #endif
97
98 string particleFileName;
101
102 if (surfaceNameToEffectIDMap)
103 {
104 if (!surfaceNameToEffectIDMap.Find(
surfaceName, result))
105 {
106 if(!surfaceNameToEffectIDMap.Find("default", result))
107 {
108 g_Game.ConfigGetText(
string.Format(
"cfgAmmo %1 particle", ammoName), particleFileName);
109
110 if ( particleFileName != "" )
111 {
113 }
115 result = surfaceNameToEffectIDMap.Get("default");
116 }
117 }
118 }
119 else
120 {
121 g_Game.ConfigGetText(
string.Format(
"cfgAmmo %1 particle", ammoName), particleFileName);
122
123 if ( particleFileName != "" )
124 {
126 }
129 result = surfaceNameToEffectIDMap.Get("default");
130 }
131 return result;
132 }
static void AddExplosionParticleEffect(string ammoName, string surfaceName, int particleID, string soundSetName="")
class ExplosiveEffectData m_TypeToSurfaceParticleIDMap
static int GetParticleIDByName(string name)
Returns particle's ID based on the filename (without .ptc suffix)