From cbb119b0ad6ccaddb0fef21c9d76fc639ceea6ac Mon Sep 17 00:00:00 2001 From: Mr0maks Date: Fri, 25 Aug 2023 22:50:18 +0500 Subject: [PATCH] Fix ViewPunch random for AR2 --- mp/src/game/shared/hl2mp/weapon_ar2.cpp | 2 +- sp/src/game/shared/hl2mp/weapon_ar2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mp/src/game/shared/hl2mp/weapon_ar2.cpp b/mp/src/game/shared/hl2mp/weapon_ar2.cpp index 5086db1bca..faa5b14cf0 100644 --- a/mp/src/game/shared/hl2mp/weapon_ar2.cpp +++ b/mp/src/game/shared/hl2mp/weapon_ar2.cpp @@ -208,7 +208,7 @@ void CWeaponAR2::DelayedAttack( void ) // pOwner->SnapEyeAngles( angles ); - pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -8, -12 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) ); + pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -12, -8 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) ); // Decrease ammo pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType ); diff --git a/sp/src/game/shared/hl2mp/weapon_ar2.cpp b/sp/src/game/shared/hl2mp/weapon_ar2.cpp index 5086db1bca..faa5b14cf0 100644 --- a/sp/src/game/shared/hl2mp/weapon_ar2.cpp +++ b/sp/src/game/shared/hl2mp/weapon_ar2.cpp @@ -208,7 +208,7 @@ void CWeaponAR2::DelayedAttack( void ) // pOwner->SnapEyeAngles( angles ); - pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -8, -12 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) ); + pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -12, -8 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) ); // Decrease ammo pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType );