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

См. исходные тексты.

Структуры данных

class  AnniversaryFireworksLauncherClientEvent
 
class  Anniversary_FireworksLauncher
 

Функции

vector GetExplosionPosition ()
 
void Init (vector pos)
 
vector GetShotPos ()
 
float GetExplosionDistance ()
 
override void OnExplode ()
 

Переменные

AnniversaryFireworksLauncherClientEvent m_ShotPos
 

Функции

◆ GetExplosionDistance()

float GetExplosionDistance ( )
protected
86 {
87 return Math.RandomFloatInclusive(10,15);
88 }
Definition EnMath.c:7
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106

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

◆ GetExplosionPosition()

vector GetExplosionPosition ( )
protected
68 {
69 return GetShotPos() + m_ShotDir * GetExplosionDistance();
70 }
float GetExplosionDistance()
Definition FireworksLauncherAnniversary.c:85
vector GetShotPos()
Definition FireworksLauncherAnniversary.c:80

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

◆ GetShotPos()

vector GetShotPos ( )
protected
81 {
82 return m_ShotPos;
83 }
AnniversaryFireworksLauncherClientEvent m_ShotPos

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

◆ Init()

void Init ( vector pos)
protected
73 {
74 m_ShotPos = pos;
75 m_ShotDir[0] = Math.RandomFloatInclusive(-1,1);
76 m_ShotDir[1] = Math.RandomFloatInclusive(-1,1);
77 m_ShotDir[2] = Math.RandomFloatInclusive(-1,1);
78 m_ShotDir.Normalize();
79 }

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

◆ OnExplode()

override void OnExplode ( )
protected
91 {
92 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( PlayExplosionSound, GetSoundDelay(), false);
93 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( SpawnLight, GetLightDelay(), false);
94 m_ParticleExplosion = ParticleManager.GetInstance().PlayInWorld(GetExplParticleFromSequence(), GetExplosionPosition());
95 }
Particle m_ParticleExplosion
particle
Definition ExplosivesBase.c:34
vector GetExplosionPosition()
Definition FireworksLauncherAnniversary.c:67
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetExplosionPosition(), GetGame(), m_ParticleExplosion и ParticleManager().

Переменные

◆ m_ShotPos