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 = ((
GetGame().
ConfigGetInt(
"cfgAmmo " + pAmmoType +
" hitAnimation") > 0) || m_HeavyHitOverride);
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 }
proto native int ConfigGetInt(string path)
Get int value from config on path.
float ComputeHitDirectionAngleEx(EntityAI pSource, int invertHitDir=0)
proto native CGame GetGame()
Перекрестные ссылки ComputeHitDirectionAngleEx(), CGame::ConfigGetInt() и GetGame().
Используется в EEHitBy().