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

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

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

class  ExplosionLight
 
class  FireworksLauncherClientEvent
 
class  FireworksLauncher
 

Функции

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

Переменные

FireworksLauncherClientEvent m_ShotPos
 

Функции

◆ ExplosionLight()

void ExplosionLight ( )
1{
2 void ExplosionLight()
3 {
4 SetVisibleDuringDaylight(true);
5 SetRadiusTo(60);
6 SetBrightnessTo(0.05);
7 SetFlareVisible(false);
8 SetAmbientColor(1.0, 1.0, 1.0);
9 SetDiffuseColor(1.0, 1.0, 1.0);
10 SetLifetime(2.1);
11 //SetDisableShadowsWithinRadius(-1);
12 SetFadeOutTime(1);
13 m_FadeInTime = 0.25;
14 SetFlickerSpeed(7);
15 //SetFlickerAmplitude(0.5);
16 SetFlickerAmplitudeMax(3);
void ExplosionLight()
Definition FireworksLauncher.c:0
Definition StaticObj_Roadblock_Wood_Small.c:28

◆ GetExplosionDistance()

float GetExplosionDistance ( )
protected
307 {
308 return Math.RandomFloatInclusive(10,15);
309 }
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().

◆ GetExplosionPosition()

vector GetExplosionPosition ( )
protected
289 {
290 return GetShotPos() + m_ShotDir * GetExplosionDistance();
291 }
float GetExplosionDistance()
Definition FireworksLauncher.c:306
vector GetShotPos()
Definition FireworksLauncher.c:301

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

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

◆ GetShotPos()

vector GetShotPos ( )
protected
302 {
303 return m_ShotPos;
304 }
FireworksLauncherClientEvent m_ShotPos

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

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

◆ Init()

void Init ( vector pos)
protected
294 {
295 m_ShotPos = pos;
296 m_ShotDir[0] = Math.RandomFloatInclusive(-1,1);
297 m_ShotDir[1] = Math.RandomFloatInclusive(-1,1);
298 m_ShotDir[2] = Math.RandomFloatInclusive(-1,1);
299 m_ShotDir.Normalize();
300 }

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

◆ OnExplode()

override void OnExplode ( )
protected
312 {
313 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( PlayExplosionSound, GetSoundDelay(), false);
314 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( SpawnLight, GetLightDelay(), false);
315 m_ParticleExplosion = ParticleManager.GetInstance().PlayInWorld(GetExplParticleFromSequence(), GetExplosionPosition());
316 }
Particle m_ParticleExplosion
particle
Definition ExplosivesBase.c:34
vector GetExplosionPosition()
Definition FireworksLauncher.c:288
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().

◆ OnFired()

Переменные

◆ m_ShotPos

Используется в GetShotPos() и Init().