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

◆ SpawnBreathVaporEffect()

void ManBase::SpawnBreathVaporEffect ( )
inlineprotected

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

6552 {
6553 //Print("SpawnBreathVaporEffect:"+GetGame().GetTime());
6554 int boneIdx = GetBoneIndexByName("Head");
6555 if (boneIdx != -1)
6556 {
6557 Particle p;
6558 switch (m_BreathVapour)
6559 {
6560 case 1:
6561 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_LIGHT, "-0.03 0.15 0");
6562 break;
6563 case 2:
6564 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_MEDIUM, "-0.03 0.15 0");
6565 break;
6566 case 3:
6567 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_HEAVY, "-0.03 0.15 0");
6568 break;
6569 default:
6570 break;
6571 }
6572
6573 if (p)
6574 AddChild(p, boneIdx);
6575 }
6576 }
proto native int GetBoneIndexByName(string pBoneName)
returns bone index for a name (-1 if pBoneName doesn't exist)
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
int m_BreathVapour
Определения PlayerBase.c:131
static Particle PlayInWorld(int particle_id, vector global_pos)
Creates a particle emitter on the given position and activates it.
Определения Particle.c:174
proto native void AddChild(Widget child, bool immedUpdate=true)

Перекрестные ссылки AddChild(), ParticleList::BREATH_VAPOUR_HEAVY, ParticleList::BREATH_VAPOUR_LIGHT, ParticleList::BREATH_VAPOUR_MEDIUM, GetBoneIndexByName(), m_BreathVapour и ParticleManager().