Hello I try to change weapon model after the animation end eg 1 sec. This is my code :P
void CSCARSIGHT::SecondaryAttack( void ) { //int iAnim; if ( m_fInZoom != 0 ) { //m_pPlayer->pev->fov = m_pPlayer->m_iFOV = 0; // 0 means reset to default fov m_fInZoom = 0; DefaultDeploy( "models/v_ak47.mdl", "models/p_ak47.mdl", AK47_SIGHTEND, "ak47"); } else if ( m_fInZoom != 1 ) { //m_pPlayer->pev->fov = m_pPlayer->m_iFOV = 1; m_fInZoom = 1; DefaultDeploy( "models/v_ak47.mdl", "models/p_ak47.mdl", AK47_SIGHTBEGIN, "ak47"); } //SendWeaponAnim( iAnim ); pev->nextthink = UTIL_WeaponTimeBase() + 0.1; m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 1.0; } sight model is v_sight.mdl and i don't know how to change base model to it after 1 sec thanks for replies Daku
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders