Skip to content

Commit

Permalink
Add primary shotgun anim
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Oct 3, 2024
1 parent 108a187 commit ae9e46c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binary/dlls/shotgun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit ae9e46c

Please sign in to comment.