Skip to content

Commit

Permalink
stop offsetting MP5 projectiles
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Dec 12, 2023
1 parent 0492b33 commit 9ca8993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion binary/dlls/mp5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ void CMP5::PrimaryAttack()
// player "shoot" animation
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );

Vector vecOffset = Vector(0, -0.08, 0);
Vector vecSrc = m_pPlayer->GetGunPosition( );
Vector vecAiming = m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES );
Vector vecDir;
Expand All @@ -196,7 +197,7 @@ void CMP5::PrimaryAttack()
flags = 0;
#endif

PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usMP5, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 );
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usMP5, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y -= 0.08, 0, 0, 0, 0 );

if (!m_iClip && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0)
// HEV suit - indicate out of ammo condition
Expand Down

0 comments on commit 9ca8993

Please sign in to comment.