sp/src/game/shared/hl2/weapon_css_base.cpp
//-----------------------------------------------------------------------------
// Purpose: Play finish reload anim and fill clip
// Input  :
// Output :
//-----------------------------------------------------------------------------
Play finish reload anim and fill clip
Input  :
Output .
Play finish reload anim and fill clip Input : Output .
void CBase_CSS_HL2_Shotgun::FinishReload( void )
{
	SetBodygroup(1,1);
	CBaseCombatCharacter *pOwner  = GetOwner();
	if ( pOwner == NULL )
		return;
	m_bInReload = false;
	if (PumpsInOtherAnims())
		m_bNeedPump = false;
	SendWeaponAnim( ACT_SHOTGUN_RELOAD_FINISH );
	pOwner->m_flNextAttack = gpGlobals->curtime;
	m_flNextPrimaryAttack = gpGlobals->curtime + SequenceDuration();
}
void CBase_CSS_HL2_Shotgun :: FinishReload ( void ) { SetBodygroup ( 1 , 1 ) ; CBaseCombatCharacter * pOwner = GetOwner ( ) ; if ( pOwner == NULL ) return ; m_bInReload = false ; if ( PumpsInOtherAnims ( ) ) m_bNeedPump = false ; SendWeaponAnim ( ACT_SHOTGUN_RELOAD_FINISH ) ; pOwner -> m_flNextAttack = gpGlobals -> curtime ; m_flNextPrimaryAttack = gpGlobals -> curtime + SequenceDuration ( ) ; }
Purpose: Play finish reload anim and fill clip
Input  :
Output :
Purpose : Play finish reload anim and fill clip Input : Output :
// Make shotgun shell invisible // Finish reload animation