Fixed Flashlight punching

This commit is contained in:
Grant Bagwell 2020-12-30 21:47:30 +01:00
parent 2d8e321f13
commit 03d171694a

View file

@ -2582,8 +2582,7 @@ void idWeapon::PresentWeapon( bool showViewModel, int hand ) {
weapon_t currentWeapon = WEAPON_NONE;
currentWeapon = IdentifyWeapon();
//if ( isPlayerFlashlight || hand != vr_weaponHand.GetInteger())
if (isPlayerFlashlight)
if ( isPlayerFlashlight || (hand != vr_weaponHand.GetInteger() && owner->hands[hand].idealWeapon != owner->weapon_pda))
{
viewWeaponOrigin = playerViewOrigin;
viewWeaponAxis = playerViewAxis;