Skip to content

Commit

Permalink
Fix ViewPunch random for singleplayer AR2
Browse files Browse the repository at this point in the history
  • Loading branch information
Blixibon committed Oct 25, 2023
1 parent 8e9020c commit c406a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp/src/game/server/hl2/weapon_ar2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ void CWeaponAR2::DelayedAttack( void )

pOwner->SnapEyeAngles( angles );

pOwner->ViewPunch( QAngle( random->RandomInt( -8, -12 ), random->RandomInt( 1, 2 ), 0 ) );
pOwner->ViewPunch( QAngle( random->RandomInt( -12, -8 ), random->RandomInt( 1, 2 ), 0 ) );

// Decrease ammo
pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType );
Expand Down

0 comments on commit c406a67

Please sign in to comment.