DayZ 1.24
Loading...
Searching...
No Matches
Ammo_40mm_Explosive Class Reference
Inheritance diagram for Ammo_40mm_Explosive:
[legend]
Collaboration diagram for Ammo_40mm_Explosive:
[legend]

Private Member Functions

override bool ShootsExplosiveAmmo ()
 
override void OnActivatedByItem (notnull ItemBase item)
 
override void EEKilled (Object killer)
 
override void OnDamageDestroyed (int oldLevel)
 

Detailed Description

Definition at line 182 of file AmmunitionPiles.c.

Member Function Documentation

◆ EEKilled()

override void Ammo_40mm_Explosive::EEKilled ( Object killer)
inlineprivate

Definition at line 195 of file AmmunitionPiles.c.

196 {
197 super.EEKilled(killer);
198 DamageSystem.ExplosionDamage(this, null, "Explosion_40mm_Ammo", GetPosition(), DamageType.EXPLOSION);
199 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(DeleteSafe, 1000, false);
200 }
DamageType
exposed from C++ (do not change)
class JsonUndergroundAreaTriggerData GetPosition
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

References CALL_CATEGORY_SYSTEM, GetGame(), and GetPosition.

◆ OnActivatedByItem()

override void Ammo_40mm_Explosive::OnActivatedByItem ( notnull ItemBase item)
inlineprivate

Definition at line 189 of file AmmunitionPiles.c.

190 {
191 if (GetGame().IsServer())
192 DamageSystem.ExplosionDamage(this, null, "Explosion_40mm_Ammo", item.GetPosition(), DamageType.EXPLOSION);
193 }

References GetGame().

◆ OnDamageDestroyed()

override void Ammo_40mm_Explosive::OnDamageDestroyed ( int oldLevel)
inlineprivate

Definition at line 202 of file AmmunitionPiles.c.

203 {
204 super.OnDamageDestroyed(oldLevel);
205#ifndef SERVER
206 ClearFlags(EntityFlags.VISIBLE, false);
207#endif
208 }
EntityFlags
Entity flags.
Definition EnEntity.c:114
proto native int ClearFlags(int flags, bool immedUpdate=true)

References ClearFlags().

◆ ShootsExplosiveAmmo()

override bool Ammo_40mm_Explosive::ShootsExplosiveAmmo ( )
inlineprivate

Definition at line 184 of file AmmunitionPiles.c.

185 {
186 return true;
187 }

The documentation for this class was generated from the following file: