DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс FuelStation

Закрытые члены

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.
 
override int GetLiquidSourceType ()
 

Подробное описание

Методы

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprivate
4 {
5 super.EEKilled(killer);
6
7 Explode(DT_EXPLOSION, "LandFuelFeed_Ammo");
8 }
override void Explode(int damageType, string ammoType="")
Definition Trap_LandMine.c:220
Definition EntityAI.c:95

Перекрестные ссылки Explode().

◆ GetLiquidSourceType()

override int GetLiquidSourceType ( )
inlineprivate
37 {
38 if (HasFuelToGive())
39 return super.GetLiquidSourceType();
40 return LIQUID_NONE;
41 }
bool HasFuelToGive()
Returns true if this stand is functional.
Definition Land_FuelStation_Feed.c:31
const int LIQUID_NONE
Definition constants.c:506

Перекрестные ссылки LIQUID_NONE.

◆ HasFuelToGive()

bool HasFuelToGive ( )
inlineprivate

Returns true if this stand is functional.

32 {
33 return !IsRuined();
34 }

◆ OnExplosionEffects()

override void OnExplosionEffects ( Object source,
Object directHit,
int componentIndex,
string surface,
vector pos,
vector surfNormal,
float energyFactor,
float explosionFactor,
bool isWater,
string ammoType )
inlineprivate
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)
Definition ParticleManager.c:84
Legacy way of using particles in the game.
Definition Particle.c:7
Definition ParticleList.c:12
static const int IMPACT_METAL_RICOCHET
Definition ParticleList.c:226
static const int EXPLOSION_LANDMINE
Definition ParticleList.c:257
static const int IMPACT_GRAVEL_RICOCHET
Definition ParticleList.c:220
static const int SMOKE_GENERIC_WRECK
Definition ParticleList.c:264
Definition EnConvert.c:106
proto native CGame GetGame()

Перекрестные ссылки ParticleList::EXPLOSION_LANDMINE, GetGame(), ParticleList::IMPACT_GRAVEL_RICOCHET, ParticleList::IMPACT_METAL_RICOCHET, ParticleManager() и ParticleList::SMOKE_GENERIC_WRECK.


Объявления и описания членов класса находятся в файле: