DayZ 1.24
Loading...
Searching...
No Matches
FuelStation Class Reference

Private Member Functions

override void EEKilled (Object killer)
 
override void OnExplosionEffects (Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
 
bool HasFuelToGive ()
 Returns true if this stand is functional.
 

Detailed Description

Definition at line 1 of file Land_FuelStation_Feed.c.

Member Function Documentation

◆ EEKilled()

override void FuelStation::EEKilled ( Object killer)
inlineprivate

Definition at line 3 of file Land_FuelStation_Feed.c.

4 {
5 super.EEKilled(killer);
6
7 Explode(DT_EXPLOSION, "LandFuelFeed_Ammo");
8 }
override void Explode(int damageType, string ammoType="")

References Explode().

◆ HasFuelToGive()

bool FuelStation::HasFuelToGive ( )
inlineprivate

Returns true if this stand is functional.

Definition at line 31 of file Land_FuelStation_Feed.c.

32 {
33 return !IsRuined();
34 }

◆ OnExplosionEffects()

override void FuelStation::OnExplosionEffects ( Object source,
Object directHit,
int componentIndex,
string surface,
vector pos,
vector surfNormal,
float energyFactor,
float explosionFactor,
bool isWater,
string ammoType )
inlineprivate

Definition at line 10 of file Land_FuelStation_Feed.c.

11 {
13 if (!GetGame().IsDedicatedServer())
14 {
15 vector n = surfNormal.VectorToAngles() + "0 90 0";
16 Particle p1 = ParticleManager.GetInstance().PlayInWorld(ParticleList.SMOKE_GENERIC_WRECK, pos);
17 p1.SetOrientation(n);
18
19 Particle p2 = ParticleManager.GetInstance().PlayInWorld(ParticleList.EXPLOSION_LANDMINE, pos);
20 p2.SetOrientation(n);
21
22 Particle p3 = ParticleManager.GetInstance().PlayInWorld(ParticleList.IMPACT_METAL_RICOCHET, pos);
23 p3.SetOrientation(n);
24
25 Particle p4 = ParticleManager.GetInstance().PlayInWorld(ParticleList.IMPACT_GRAVEL_RICOCHET, pos);
26 p4.SetOrientation(n);
27 }
28 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Legacy way of using particles in the game.
Definition Particle.c:7
static const int IMPACT_METAL_RICOCHET
static const int EXPLOSION_LANDMINE
static const int IMPACT_GRAVEL_RICOCHET
static const int SMOKE_GENERIC_WRECK
proto native CGame GetGame()

References ParticleList::EXPLOSION_LANDMINE, GetGame(), ParticleList::IMPACT_GRAVEL_RICOCHET, ParticleList::IMPACT_METAL_RICOCHET, ParticleManager(), and ParticleList::SMOKE_GENERIC_WRECK.


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