From ae9e46c6909e6064a166df58d0190c5b66999368 Mon Sep 17 00:00:00 2001 From: Sabian Roberts <31491602+sabianroberts@users.noreply.github.com> Date: Thu, 3 Oct 2024 01:16:59 +0100 Subject: [PATCH] Add primary shotgun anim --- binary/dlls/shotgun.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binary/dlls/shotgun.cpp b/binary/dlls/shotgun.cpp index d06267b7..1fffc200 100644 --- a/binary/dlls/shotgun.cpp +++ b/binary/dlls/shotgun.cpp @@ -157,6 +157,9 @@ void CShotgun::PrimaryAttack() m_pPlayer->pev->effects = (int)(m_pPlayer->pev->effects) | EF_MUZZLEFLASH; + // player "shoot" animation + m_pPlayer->SetAnimation(PLAYER_ATTACK1); + Vector vecSrc = m_pPlayer->GetGunPosition( ); Vector vecAiming = m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES ); Vector vecDir = m_pPlayer->FireBulletsPlayer( 4, vecSrc, vecAiming, VECTOR_CONE_DM_SHOTGUN, 2048, BULLET_PLAYER_BUCKSHOT, 0, 0, m_pPlayer->pev, m_pPlayer->random_seed );