Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
land_fuelstation_feed.c
Go to the documentation of this file.
1
class
Land_FuelStation_Feed
extends
FuelStation
2
{
3
override
void
EEKilled
(
Object
killer)
4
{
5
super.EEKilled(killer);
6
7
Explode
(
DamageType
.EXPLOSION,
"LandFuelFeed_Ammo"
);
8
}
9
10
override
void
OnExplosionEffects
(
Object
source,
Object
directHit,
int
componentIndex,
string
surface,
vector
pos,
vector
surfNormal,
float
energyFactor,
float
explosionFactor,
bool
isWater,
string
ammoType)
11
{
12
super.OnExplosionEffects(source, directHit, componentIndex, surface, pos, surfNormal, energyFactor, explosionFactor, isWater, ammoType);
13
if
( !
g_Game
.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
}
29
31
bool
HasFuelToGive
()
32
{
33
return
!IsRuined();
34
}
35
36
override
int
GetLiquidSourceType
()
37
{
38
if
(
HasFuelToGive
())
39
return
super.GetLiquidSourceType();
40
return
LIQUID_NONE
;
41
}
42
};
43
44
class
Land_FuelStation_Feed_Enoch
: Land_FuelStation_Feed {};
FuelStation
Definition
land_fuelstation_feed.c:2
FuelStation::OnExplosionEffects
override void OnExplosionEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
Definition
land_fuelstation_feed.c:10
FuelStation::EEKilled
override void EEKilled(Object killer)
Definition
land_fuelstation_feed.c:3
FuelStation::GetLiquidSourceType
override int GetLiquidSourceType()
Definition
land_fuelstation_feed.c:36
FuelStation::HasFuelToGive
bool HasFuelToGive()
Returns true if this stand is functional.
Definition
land_fuelstation_feed.c:31
Land_FuelStation_Feed_Enoch
Definition
land_fuelstation_feed.c:44
Object
Definition
objecttyped.c:2
Particle
Legacy way of using particles in the game.
Definition
particle.c:7
ParticleList
Definition
particlelist.c:12
ParticleList::IMPACT_METAL_RICOCHET
static const int IMPACT_METAL_RICOCHET
Definition
particlelist.c:237
ParticleList::EXPLOSION_LANDMINE
static const int EXPLOSION_LANDMINE
Definition
particlelist.c:268
ParticleList::IMPACT_GRAVEL_RICOCHET
static const int IMPACT_GRAVEL_RICOCHET
Definition
particlelist.c:231
ParticleList::SMOKE_GENERIC_WRECK
static const int SMOKE_GENERIC_WRECK
Definition
particlelist.c:275
vector
Definition
enconvert.c:119
vector::VectorToAngles
proto vector VectorToAngles()
Converts vector to spherical coordinates with radius = 1.
DamageType
DamageType
exposed from C++ (do not change)
Definition
damagesystem.c:11
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
LIQUID_NONE
const int LIQUID_NONE
Definition
constants.c:532
ParticleManager
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor).
Definition
particlemanager.c:88
Explode
override void Explode(int damageType, string ammoType="")
Definition
trap_landmine.c:220
Games
Dayz
scripts
4_world
entities
building
specific
land_fuelstation_feed.c
Generated by
1.17.0