Skip to content

Commit 8e9020c

Browse files
authored
Merge pull request #245 from Mr0maks/fix_random_in_ar2
Fix ViewPunch random for AR2
2 parents 8280197 + cbb119b commit 8e9020c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mp/src/game/shared/hl2mp/weapon_ar2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void CWeaponAR2::DelayedAttack( void )
208208

209209
// pOwner->SnapEyeAngles( angles );
210210

211-
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -8, -12 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
211+
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -12, -8 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
212212

213213
// Decrease ammo
214214
pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType );

sp/src/game/shared/hl2mp/weapon_ar2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void CWeaponAR2::DelayedAttack( void )
208208

209209
// pOwner->SnapEyeAngles( angles );
210210

211-
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -8, -12 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
211+
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -12, -8 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
212212

213213
// Decrease ammo
214214
pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType );

0 commit comments

Comments
 (0)