605 {
608 int forcedWeaponMode = -1;
610 bool forcedDummy = false;
611
614 if (targetPlayer)
615 {
616 vector targetPos = targetPlayer.GetPosition();
618
619
621
624 {
625 if (weaponMode > 0)
626 {
627 forcedWeaponMode = --weaponMode;
628 }
629 else
630 forcedDummy = true;
631 }
632 }
633
635 }
ref DayZPlayerImplementMeleeCombat m_MeleeCombat
void EvaluateHit_Common(InventoryItem weapon, Object target, bool forcedDummy=false, int forcedWeaponMode=-1)
const float PVP_MAX_BLOCKABLE_ANGLE
static proto float AngleFromPosition(vector origin, vector originDir, vector target)
Angle that a target is from the direction of an origin.
static const float RAD2DEG
static proto float AbsFloat(float f)
Returns absolute value.