Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс CrashBase

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

void Wreck_Mi8_Crashed ()
 
void Wreck_SantasSleigh ()
 
override string GetSoundSet ()
 
override void EEOnCECreate ()
 
override void EEDelete (EntityAI parent)
 
void SpawnRandomDeerLater ()
 
void SpawnRandomDeers ()
 
vector RandomizePosition (vector origin)
 
void Wreck_UH1Y ()
 

Закрытые данные

XmasSleighLight m_SleighLight
 
int m_MaxDeersAmount = 4
 
int m_MinDeersAmount = 2
 
int m_MaxDeersSpawnRange = 25
 
int m_MinDeersSpawnRange = 5
 

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

Методы

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprivate
37 {
38 super.EEDelete(parent);
39
40 if ( !GetGame().IsDedicatedServer() )
41 {
42 if ( m_SleighLight )
43 m_SleighLight.Destroy();
44 }
45 }
XmasSleighLight m_SleighLight
Definition Wreck_SantasSleigh.c:4
Definition EntityAI.c:95
proto native CGame GetGame()

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

◆ EEOnCECreate()

override void EEOnCECreate ( )
inlineprivate
31 {
32 super.EEOnCECreate();
34 }
void SpawnRandomDeerLater()
Definition Wreck_SantasSleigh.c:47

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

◆ GetSoundSet()

override string GetSoundSet ( )
inlineprivate
26 {
27 return "SledgeCrash_Distant_SoundSet";
28 }

Используется в House::EEInit() и House::RequestSoundEvent().

◆ RandomizePosition()

vector RandomizePosition ( vector origin)
inlineprivate
73 {
74 int randX;
75 int randZ;
76
78 if (Math.RandomIntInclusive(0,1) < 1)
79 randX = -randX;
80
82 if (Math.RandomIntInclusive(0,1) < 1)
83 randZ = -randZ;
84
85 origin[0] = origin[0] + randX;
86 origin[2] = origin[2] + randZ;
87
88 return origin;
89
90 }
int m_MaxDeersSpawnRange
Definition Wreck_SantasSleigh.c:8
int m_MinDeersSpawnRange
Definition Wreck_SantasSleigh.c:9
Definition EnMath.c:7
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54

Перекрестные ссылки Math::RandomIntInclusive().

◆ SpawnRandomDeerLater()

void SpawnRandomDeerLater ( )
inlineprivate
48 {
49 //SpawnRandomDeers();
50 GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( SpawnRandomDeers, 0);
51 }
void SpawnRandomDeers()
Definition Wreck_SantasSleigh.c:54
const int CALL_CATEGORY_GAMEPLAY
Definition tools.c:10

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

Используется в EEOnCECreate().

◆ SpawnRandomDeers()

void SpawnRandomDeers ( )
inlineprivate
55 {
58
60
61 for (int i = 0; i < m_MaxDeersAmount; i++)
62 {
64 deer = EntityAI.Cast(GetGame().CreateObject("Animal_CervusElaphus", deer_pos,false, true));
65 deer.SetHealth01("","", 0);
66 vector orientation = deer.GetOrientation();
67 deer.SetOrientation(Vector(Math.RandomIntInclusive(0,360),orientation[1],orientation[2]));
68 }
69 }
void RandomizePosition()
Definition MapNavigationBehaviour.c:93
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
int m_MinDeersAmount
Definition Wreck_SantasSleigh.c:7
int m_MaxDeersAmount
Definition Wreck_SantasSleigh.c:6
Definition Building.c:6
Definition EnConvert.c:106
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки GetGame(), GetPosition, m_MaxDeersAmount, Math::RandomIntInclusive(), RandomizePosition() и Vector().

◆ Wreck_Mi8_Crashed()

void Wreck_Mi8_Crashed ( )
inlineprivate
5 {
6 if ( !GetGame().IsDedicatedServer() )
7 {
8 m_ParticleEfx = ParticleManager.GetInstance().PlayOnObject(ParticleList.SMOKING_HELI_WRECK, this, Vector(2, 0, -5));
9 }
10 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
Definition ParticleList.c:12
static const int SMOKING_HELI_WRECK
Definition ParticleList.c:254

Перекрестные ссылки GetGame(), ParticleManager(), ParticleList::SMOKING_HELI_WRECK и Vector().

◆ Wreck_SantasSleigh()

void Wreck_SantasSleigh ( )
inlineprivate
12 {
13 if ( !GetGame().IsDedicatedServer() )
14 {
15 //particles - Aurora trail
16 m_ParticleEfx = ParticleManager.GetInstance().PlayOnObject(ParticleList.AURORA_SANTA_WRECK, this, Vector(0, 0, 0));
17
18 //lights - green light
19 m_SleighLight = XmasSleighLight.Cast( ScriptedLightBase.CreateLight( XmasSleighLight, Vector(0, 0, 0) ) );
20 m_SleighLight.AttachOnMemoryPoint( this, "light" );
21 }
22 }
static const int AURORA_SANTA_WRECK
Definition ParticleList.c:255
Definition PointLightBase.c:2

Перекрестные ссылки ParticleList::AURORA_SANTA_WRECK, GetGame(), ParticleManager() и Vector().

◆ Wreck_UH1Y()

void Wreck_UH1Y ( )
inlineprivate
4 {
5 if ( !GetGame().IsDedicatedServer() )
6 {
7 m_ParticleEfx = ParticleManager.GetInstance().PlayOnObject(ParticleList.SMOKING_HELI_WRECK, this, Vector(-0.5, 0, -1.0));
8 }
9 }

Перекрестные ссылки GetGame(), ParticleManager(), ParticleList::SMOKING_HELI_WRECK и Vector().

Поля

◆ m_MaxDeersAmount

int m_MaxDeersAmount = 4
private

Используется в SpawnRandomDeers().

◆ m_MaxDeersSpawnRange

int m_MaxDeersSpawnRange = 25
private

◆ m_MinDeersAmount

int m_MinDeersAmount = 2
private

◆ m_MinDeersSpawnRange

int m_MinDeersSpawnRange = 5
private

◆ m_SleighLight

XmasSleighLight m_SleighLight
private

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