DayZ 1.24
|
Static data holder for certain ammo config values. More...
Static Private Member Functions | |
Ammo particles | |
Methods regarding getting/playing ammo particle | |
static int | GetAmmoParticleID (string ammoType) |
Get the ParticleList ID for the particle for this ammoType. | |
static bool | PlayAmmoParticle (string ammoType, vector pos) |
Attempt to play the ammo particle at pos if found, returns true on success. | |
Ammo effects | |
Methods regarding getting/playing ammo effect | |
static | GetAmmoEffectTypename (string ammoType) |
Get the typename for the effect for this ammoType. | |
static bool | PlayAmmoEffect (string ammoType, vector pos) |
Attempt to play the ammo effect at pos if found, returns true on success. | |
Lifetime | |
Creation and cleanup | |
static void | Init () |
Initialize the containers: this is done this way, to have these not exist on server. | |
static void | Cleanup () |
Clean up the data. | |
Static Private Attributes | |
static ref map< string, int > | m_AmmoParticles |
Key: Ammo class name; Data: ParticleList ID. | |
static ref map< string, typename > | m_AmmoEffects |
Key: Ammo class name; Data: ParticleList ID. | |
Static data holder for certain ammo config values.
Definition at line 5 of file AmmoEffects.c.
Clean up the data.
Definition at line 119 of file AmmoEffects.c.
Referenced by CGame::~CGame().
Get the typename for the effect for this ammoType.
Definition at line 62 of file AmmoEffects.c.
References GetGame(), and m_AmmoEffects.
Referenced by PlayAmmoEffect().
Get the ParticleList ID for the particle for this ammoType.
Definition at line 20 of file AmmoEffects.c.
References GetGame(), ParticleList::GetParticleIDByName(), and m_AmmoParticles.
Referenced by PlayAmmoParticle().
Initialize the containers: this is done this way, to have these not exist on server.
Definition at line 112 of file AmmoEffects.c.
References m_AmmoEffects, and m_AmmoParticles.
Referenced by CGame::CGame().
Attempt to play the ammo effect at pos if found, returns true on success.
Definition at line 85 of file AmmoEffects.c.
References GetAmmoEffectTypename(), and SEffectManager::PlayInWorld().
Referenced by IEntity::OnExplodeClient().
Attempt to play the ammo particle at pos if found, returns true on success.
Definition at line 43 of file AmmoEffects.c.
References GetAmmoParticleID(), ParticleList::IsValidId(), and ParticleManager().
Referenced by IEntity::OnExplodeClient().
Key: Ammo class name; Data: ParticleList ID.
Definition at line 11 of file AmmoEffects.c.
Referenced by GetAmmoEffectTypename(), and Init().
Key: Ammo class name; Data: ParticleList ID.
Definition at line 8 of file AmmoEffects.c.
Referenced by GetAmmoParticleID(), and Init().