DIFF

class AmmoEffectsSource

Static data holder for certain ammo config values

NoteKept the names similar to what is in config, but it might be a little deceiving as this is mainly used for explosives

Members 2

static ref map<string, int> m_AmmoParticles

Key: Ammo class name; Data: ParticleList ID

Referenced by GetAmmoParticleID(), and Init()
static ref map<string, typename> m_AmmoEffects

Key: Ammo class name; Data: ParticleList ID

Referenced by GetAmmoEffectTypename(), and Init()

Methods 6

static int GetAmmoParticleID(string ammoType)

Get the ParticleList ID for the particle for this ammoType

Referenced by PlayAmmoParticle()
static bool PlayAmmoParticle(string ammoType, vector pos)

Attempt to play the ammo particle at pos if found, returns true on success

static typename GetAmmoEffectTypename(string ammoType)

Get the typename for the effect for this ammoType

Referenced by PlayAmmoEffect()
static bool PlayAmmoEffect(string ammoType, vector pos)

Attempt to play the ammo effect at pos if found, returns true on success

static void Init()

Initialize the containers: this is done this way, to have these not exist on server

Referenced by CGame.CGame()
static void Cleanup()

Clean up the data

Referenced by CGame.~CGame()