DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ InitializeParticles()

void Car::InitializeParticles ( )
inlineprotected

См. определение в файле CarScript.c строка 343

344 {
345 if (GetGame().IsHeadlessOrDedicatedServer())
346 return;
347
348 m_VFXComponent = VehicleVFXComponent(this);
349
350 // OBSOLETE (not used directly; backward compatibility only)
351 m_exhaustPtcPos = m_VFXComponent.ConvertMemPointToPosition("ptcExhaust_end");
352 if (m_exhaustPtcPos != vector.Zero)
353 {
354 vector exhaustStart = m_VFXComponent.ConvertMemPointToPosition("ptcExhaust_start");
355 vector tempOri = vector.Direction(exhaustStart, m_exhaustPtcPos);
356
357 m_exhaustPtcDir[0] = -tempOri[2];
358 m_exhaustPtcDir[1] = tempOri[1];
359 m_exhaustPtcDir[2] = tempOri[0];
360
361 m_exhaustPtcDir = m_exhaustPtcDir.Normalized().VectorToAngles();
362 }
363 else
364 m_exhaustPtcDir = "1 1 1";
365
366 m_enginePtcPos = m_VFXComponent.ConvertMemPointToPosition("ptcEnginePos");
367
368 m_DrownEnginePos = m_VFXComponent.ConvertMemPointToPosition("drown_engine");
369 m_enginePos = m_VFXComponent.ConvertMemPointToPosition("dmgZone_engine");
370 m_frontPos = m_VFXComponent.ConvertMemPointToPosition("dmgZone_front");
371 m_backPos = m_VFXComponent.ConvertMemPointToPosition("dmgZone_back");
372 m_side_1_1Pos = m_VFXComponent.ConvertMemPointToPosition("dmgZone_fender_1_1");
373 m_side_1_2Pos = m_VFXComponent.ConvertMemPointToPosition("dmgZone_fender_1_2");
374 m_side_2_1Pos = m_VFXComponent.ConvertMemPointToPosition("dmgZone_fender_2_1");
375 m_side_2_2Pos = m_VFXComponent.ConvertMemPointToPosition("dmgZone_fender_2_2");
376
377 m_VFXComponent.RegisterEffect(EVehicleVFXEffect.DUST_BEHIND, EffVehicleDust, new VehicleVFXDataParams(m_VFXComponent.ConvertMemPointToPosition("ptcDustPos")));
378 m_VFXComponent.RegisterEffect(EVehicleVFXEffect.ENGINE_SMOKE, EffEngineSmoke, new VehicleVFXDataParams(m_VFXComponent.ConvertMemPointToPosition("ptcEnginePos")));
379 m_VFXComponent.RegisterEffect(EVehicleVFXEffect.COOLANT_STEAM, EffCoolantSteam, new VehicleVFXDataParams(m_VFXComponent.ConvertMemPointToPosition("ptcCoolantPos")));
380 m_VFXComponent.RegisterEffect(EVehicleVFXEffect.EXHAUST_SMOKE, EffExhaustSmoke, new VehicleVFXDataParams(m_exhaustPtcPos, m_exhaustPtcDir));
381 m_VFXComponent.RegisterEffectGroup(EVehicleVFXEffectGroup.WHEEL_SMOKE, EffWheelSmoke, WheelCount(), new VehicleVFXDataParams(vector.Zero, "0 1 -1", 5.0));
382 m_VFXComponent.RegisterEffectGroup(EVehicleVFXEffectGroup.WHEEL_CONTACT, EffWheelContact, WheelCount(), new VehicleVFXDataParams(vector.Zero, vector.Up, 5.0));
383 }
EVehicleVFXEffect
Identifiers of individual vehicle VFX effects.
Определения EVehicleVFXTypes.c:3
proto native int WheelCount()
How many wheel can be attached to a motorbike (hubs only)
void VehicleVFXDataParams(vector position=vector.Zero, vector orientation=vector.Up, float cooldownSec=0.0)
Определения VehicleVFXComponent.c:88
vector m_side_2_2Pos
Определения CarScript.c:145
vector m_exhaustPtcDir
Particles.
Определения CarScript.c:137
vector m_side_1_1Pos
Определения CarScript.c:142
ref VehicleVFXComponent m_VFXComponent
Определения CarScript.c:189
vector m_side_1_2Pos
Определения CarScript.c:143
vector m_enginePos
Определения CarScript.c:139
vector m_enginePtcPos
Определения CarScript.c:2789
vector m_side_2_1Pos
Определения CarScript.c:144
vector m_frontPos
Определения CarScript.c:140
vector m_exhaustPtcPos
Определения CarScript.c:2788
static vector m_DrownEnginePos
Определения CarScript.c:119
vector m_backPos
Определения CarScript.c:141
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки vector::Direction(), GetGame(), m_backPos, m_DrownEnginePos, m_enginePos, m_enginePtcPos, m_exhaustPtcDir, m_exhaustPtcPos, m_frontPos, m_side_1_1Pos, m_side_1_2Pos, m_side_2_1Pos, m_side_2_2Pos, m_VFXComponent, vector::Up, VehicleVFXDataParams(), WheelCount() и vector::Zero.