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

◆ SpawnBreathVaporEffect()

void ManBase::SpawnBreathVaporEffect ( )
inlineprotected

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

6560 {
6561 //Print("SpawnBreathVaporEffect:"+GetGame().GetTime());
6562 int boneIdx = GetBoneIndexByName("Head");
6563 if (boneIdx != -1)
6564 {
6565 Particle p;
6566 switch (m_BreathVapour)
6567 {
6568 case 1:
6569 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_LIGHT, "-0.03 0.15 0");
6570 break;
6571 case 2:
6572 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_MEDIUM, "-0.03 0.15 0");
6573 break;
6574 case 3:
6575 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_HEAVY, "-0.03 0.15 0");
6576 break;
6577 default:
6578 break;
6579 }
6580
6581 if (p)
6582 AddChild(p, boneIdx);
6583 }
6584 }
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().