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

◆ EvaluateDeathAnimation()

bool DayZInfected::EvaluateDeathAnimation ( EntityAI pSource,
string pComponent,
string pAmmoType,
out int pAnimType,
out float pAnimHitDir )
inlineprotected

anim type

direction

add some impulse if needed

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

371 {
373 bool doPhxImpulse = GetGame().ConfigGetInt("cfgAmmo " + pAmmoType + " doPhxImpulse") > 0;
374
376 pAnimType = doPhxImpulse;
377
379 pAnimHitDir = ComputeHitDirectionAngle(pSource);
380
382 if ( doPhxImpulse )
383 {
384 vector impulse = 80 * m_TransportHitVelocity;
385 impulse[1] = 80 * 1.5;
386 //Print("Impulse: " + impulse.ToString());
387
388 dBodyApplyImpulse(this, impulse);
389 }
390
391 return true;
392 }
proto native int ConfigGetInt(string path)
Get int value from config on path.
float ComputeHitDirectionAngle(EntityAI pSource)
Определения ZombieBase.c:917
proto native CGame GetGame()
proto void dBodyApplyImpulse(notnull IEntity body, vector impulse)
Applies impuls on a rigidbody (origin)

Перекрестные ссылки ComputeHitDirectionAngle(), CGame::ConfigGetInt(), dBodyApplyImpulse() и GetGame().

Используется в EvaluateDeathAnimationEx().