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

◆ EvaluateDamageHitAnimation()

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

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; //Used to flip the heavy hit animation direction
905
907 pHeavyHit = ((g_Game.ConfigGetInt("cfgAmmo " + pAmmoType + " hitAnimation") > 0) || m_HeavyHitOverride);
908 invertHitDir = g_Game.ConfigGetInt("cfgAmmo " + pAmmoType + " invertHitDir");
909
911 pAnimType = 0; // belly
912
913 if ( !pHeavyHit )
914 {
915 if ( pComponent == "Torso" ) // body
916 pAnimType = 1;
917 else if ( pComponent == "Head" ) // head
918 pAnimType = 2;
919 }
920
922 //pAnimHitDir = ComputeHitDirectionAngle(pSource);
923 pAnimHitDir = ComputeHitDirectionAngleEx(pSource, invertHitDir);
925 //m_ShockDamage = g_Game.ConfigGetFloat( "CfgAmmo " + pAmmoType + " DamageApplied " + "Shock " + "damage");
926 return true;
927 }
DayZGame g_Game
Определения DayZGame.c:4074
float ComputeHitDirectionAngleEx(EntityAI pSource, int invertHitDir=0)
Определения ZombieBase.c:950

Перекрестные ссылки ComputeHitDirectionAngleEx() и g_Game.

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