DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Land_FuelStation_Feed.c
См. документацию.
1class 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.IsHeadlessOrDedicatedServer() )
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
32 {
33 return !IsRuined();
34 }
35
36 override int GetLiquidSourceType()
37 {
38 if (HasFuelToGive())
39 return super.GetLiquidSourceType();
40 return LIQUID_NONE;
41 }
42
47
48 override void SetActionAnimOverrides()
49 {
50 OverrideActionAnimation(ActionObtainLiquidBase, DayZPlayerConstants.CMD_ACTIONFB_FILLBOTTLEWELL, DayZPlayerConstants.STANCEMASK_CROUCH);
51 }
52};
53
54class Land_FuelStation_Feed_Enoch : Land_FuelStation_Feed {};
55class Land_FuelStation_Feed_Takistan : Land_FuelStation_Feed {};
DamageType
exposed from C++ (do not change)
Определения DamageSystem.c:11
DayZGame g_Game
Определения DayZGame.c:4074
string ammoType
Определения DustKickupEffects.c:24
ELiquidSourceObjectType
Определения ELiquidSourceObjectType.c:2
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
override void Explode(int damageType, string ammoType="")
Определения Trap_LandMine.c:220
override void OnExplosionEffects(Object source, Object directHit, int componentIndex, string surface, vector pos, vector surfNormal, float energyFactor, float explosionFactor, bool isWater, string ammoType)
Определения Land_FuelStation_Feed.c:10
override ELiquidSourceObjectType GetLiquidSourceObjectType()
Определения Land_FuelStation_Feed.c:43
override int GetLiquidSourceType()
Определения Land_FuelStation_Feed.c:36
override void SetActionAnimOverrides()
Определения Land_FuelStation_Feed.c:48
override void EEKilled(Object killer)
Определения Land_FuelStation_Feed.c:3
bool HasFuelToGive()
Returns true if this stand is functional.
Определения Land_FuelStation_Feed.c:31
Определения ObjectTyped.c:2
Legacy way of using particles in the game.
Определения Particle.c:7
static const int IMPACT_METAL_RICOCHET
Определения ParticleList.c:246
static const int EXPLOSION_LANDMINE
Определения ParticleList.c:283
static const int IMPACT_GRAVEL_RICOCHET
Определения ParticleList.c:240
static const int SMOKE_GENERIC_WRECK
Определения ParticleList.c:290
Определения ParticleList.c:12
proto vector VectorToAngles()
Converts vector to spherical coordinates with radius = 1.
Определения EnConvert.c:119
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
const int LIQUID_NONE
Определения 3_Game/DayZ/constants.c:566