selects animation type and direction based on damage system data
heavy hit
anim type
direction
shock GetDamage
См. определение в файле ZombieBase.c строка 902
903 {
904 int invertHitDir = 0;
905
907 pHeavyHit = ((
g_Game.ConfigGetInt(
"cfgAmmo " + pAmmoType +
" hitAnimation") > 0) || m_HeavyHitOverride);
908 invertHitDir =
g_Game.ConfigGetInt(
"cfgAmmo " + pAmmoType +
" invertHitDir");
909
911 pAnimType = 0;
912
913 if ( !pHeavyHit )
914 {
915 if ( pComponent == "Torso" )
916 pAnimType = 1;
917 else if ( pComponent == "Head" )
918 pAnimType = 2;
919 }
920
922
925
926 return true;
927 }
float ComputeHitDirectionAngleEx(EntityAI pSource, int invertHitDir=0)
Перекрестные ссылки ComputeHitDirectionAngleEx() и g_Game.
Используется в EEHitBy().