selects animation type and direction based on damage system data
heavy hit
anim type
direction
shock GetDamage
См. определение в файле ZombieBase.c строка 890
891 {
892 int invertHitDir = 0;
893
895 pHeavyHit = ((
g_Game.ConfigGetInt(
"cfgAmmo " + pAmmoType +
" hitAnimation") > 0) || m_HeavyHitOverride);
896 invertHitDir =
g_Game.ConfigGetInt(
"cfgAmmo " + pAmmoType +
" invertHitDir");
897
899 pAnimType = 0;
900
901 if ( !pHeavyHit )
902 {
903 if ( pComponent == "Torso" )
904 pAnimType = 1;
905 else if ( pComponent == "Head" )
906 pAnimType = 2;
907 }
908
910
913
914 return true;
915 }
float ComputeHitDirectionAngleEx(EntityAI pSource, int invertHitDir=0)
Перекрестные ссылки ComputeHitDirectionAngleEx() и g_Game.
Используется в EEHitBy().