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

◆ SpawnBreathVaporEffect()

void ManBase::SpawnBreathVaporEffect ( )
inlineprotected

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

6786 {
6787 //Print("SpawnBreathVaporEffect:"+g_Game.GetTime());
6788 int boneIdx = GetBoneIndexByName("Head");
6789 if (boneIdx != -1)
6790 {
6791 Particle p;
6792 switch (m_BreathVapour)
6793 {
6794 case 1:
6795 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_LIGHT, "-0.03 0.15 0");
6796 break;
6797 case 2:
6798 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_MEDIUM, "-0.03 0.15 0");
6799 break;
6800 case 3:
6801 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_HEAVY, "-0.03 0.15 0");
6802 break;
6803 default:
6804 break;
6805 }
6806
6807 if (p)
6808 AddChild(p, boneIdx);
6809 }
6810 }
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:178
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().