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

◆ SpawnBreathVaporEffect()

void ManBase::SpawnBreathVaporEffect ( )
inlineprotected

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

7107 {
7108 //Print("SpawnBreathVaporEffect:"+g_Game.GetTime());
7109 int boneIdx = GetBoneIndexByName("Head");
7110 if (boneIdx != -1)
7111 {
7112 Particle p;
7113 switch (m_BreathVapour)
7114 {
7115 case 1:
7116 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_LIGHT, "-0.03 0.15 0");
7117 break;
7118 case 2:
7119 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_MEDIUM, "-0.03 0.15 0");
7120 break;
7121 case 3:
7122 p = ParticleManager.GetInstance().PlayInWorld(ParticleList.BREATH_VAPOUR_HEAVY, "-0.03 0.15 0");
7123 break;
7124 default:
7125 break;
7126 }
7127
7128 if (p)
7129 AddChild(p, boneIdx);
7130 }
7131 }
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:177
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().