DayZ 1.24
Loading...
Searching...
No Matches
AmmunitionPiles.c File Reference

Go to the source code of this file.

Classes

class  Ammunition_Base
 ammo pile base More...
 
class  Ammo_45ACP
 
class  Ammo_308Win
 
class  Ammo_308WinTracer
 
class  Ammo_9x19
 
class  Ammo_380
 
class  Ammo_556x45
 
class  Ammo_556x45Tracer
 
class  Ammo_762x54
 
class  Ammo_762x54Tracer
 
class  Ammo_762x39
 
class  Ammo_762x39Tracer
 
class  Ammo_9x39
 
class  Ammo_22
 
class  Ammo_12gaPellets
 
class  Ammo_12gaSlug
 
class  Ammo_357
 
class  Ammo_545x39
 
class  Ammo_545x39Tracer
 
class  Bolt_Base
 
class  Ammo_Flare
 
class  Ammo_RPG7_HE
 
class  Ammo_RPG7_AP
 
class  Ammo_LAW_HE
 
class  Ammo_GrenadeM4
 
class  Ammo_HuntingBolt
 
class  Ammo_ImprovisedBolt_2
 
class  Ammo_40mm_Base
 
class  Ammo_40mm_Explosive
 
class  Ammo_40mm_Smoke_ColorBase
 
class  Ammo_40mm_Smoke_Green
 
class  Ammo_40mm_Smoke_White
 
class  Ammo_40mm_Smoke_Black
 

Functions

Ammo_HuntingBolt Bolt_Base SetActions ()
 
Ammo_ImprovisedBolt_2 Bolt_Base EEParentedTo (EntityAI parent)
 
override void EEParentedFrom (EntityAI parent)
 
static void PlayOnHitParticle (vector position)
 
Ammo_40mm_Explosive Ammo_40mm_Base OnActivatedByItem (notnull ItemBase item)
 Called when this item is activated by other.
 
override bool ShootsExplosiveAmmo ()
 
override void EEKilled (Object killer)
 
override void OnDamageDestroyed (int oldLevel)
 

Variables

Bolt_Base Ammunition_Base
 
Ammo_40mm_Base EEParentedTo
 
Ammo_40mm_Smoke_ColorBase Ammo_40mm_Smoke_ColorBase
 

Function Documentation

◆ EEKilled()

override void OnActivatedByItem::EEKilled ( Object killer)

Definition at line 225 of file AmmunitionPiles.c.

227 {
228 super.OnDamageDestroyed(oldLevel);
229
230#ifndef SERVER

References ClearFlags().

◆ EEParentedFrom()

override void EEParentedFrom ( EntityAI parent)

◆ EEParentedTo()

Ammo_ImprovisedBolt_2 Bolt_Base EEParentedTo ( EntityAI parent)

Definition at line 1 of file AmmunitionPiles.c.

152 {
153 Delete();
154 }

◆ OnActivatedByItem()

Called when this item is activated by other.

Definition at line 158 of file AmmunitionPiles.c.

214 {
215 if (GetGame().IsServer())
216 GetGame().CreateObject("ContaminatedArea_Local", item.GetPosition());
217 }
proto native CGame GetGame()

References ParticleList::BOLT_CUPID_HIT, and ParticleManager().

◆ OnDamageDestroyed()

override void OnActivatedByItem::OnDamageDestroyed ( int oldLevel)

Definition at line 232 of file AmmunitionPiles.c.

◆ PlayOnHitParticle()

static void PlayOnHitParticle ( vector position)
static

Definition at line 158 of file AmmunitionPiles.c.

159 {
160 ParticleManager.GetInstance().PlayInWorld(ParticleList.BOLT_CUPID_HIT, position);
161 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
static const int BOLT_CUPID_HIT

◆ SetActions()

Ammo_HuntingBolt Bolt_Base SetActions ( )

Definition at line 1 of file AmmunitionPiles.c.

141 {
142 super.SetActions();
143
145 }
void AddAction(typename actionName)

◆ ShootsExplosiveAmmo()

override bool OnActivatedByItem::ShootsExplosiveAmmo ( )

Definition at line 214 of file AmmunitionPiles.c.

214 {
215 if (GetGame().IsServer())
216 GetGame().CreateObject("ContaminatedArea_Local", item.GetPosition());
217 }

References GetGame().

Variable Documentation

◆ Ammo_40mm_Smoke_ColorBase

Ammo_40mm_Smoke_ColorBase Ammo_40mm_Smoke_ColorBase

◆ Ammunition_Base

Bolt_Base Ammunition_Base

◆ EEParentedTo

Ammo_40mm_Base EEParentedTo