|
|
@ -166,7 +166,7 @@ void CMinigun::PrimaryAttack() |
|
|
|
flags = 0; |
|
|
|
flags = 0; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usminigun, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); |
|
|
|
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usminigun, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); |
|
|
|
|
|
|
|
|
|
|
|
if (!m_iClip && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0) |
|
|
|
if (!m_iClip && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0) |
|
|
|
// HEV suit - indicate out of ammo condition
|
|
|
|
// HEV suit - indicate out of ammo condition
|
|
|
@ -240,7 +240,7 @@ void CMinigun::SecondaryAttack( void ) |
|
|
|
flags = 0; |
|
|
|
flags = 0; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usminigun, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); |
|
|
|
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usminigun, 0.0, g_vecZero, g_vecZero, vecDir.x, vecDir.y, 0, 0, 0, 0 ); |
|
|
|
|
|
|
|
|
|
|
|
if (!m_iClip && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0) |
|
|
|
if (!m_iClip && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0) |
|
|
|
// HEV suit - indicate out of ammo condition
|
|
|
|
// HEV suit - indicate out of ammo condition
|
|
|
@ -320,7 +320,7 @@ class CMinigunAmmoClip : public CBasePlayerAmmo |
|
|
|
return bResult; |
|
|
|
return bResult; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_minigun, CMinigunAmmoClip ); |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_minigun, CMinigunAmmoClip ) |
|
|
|
|
|
|
|
|
|
|
|
class CMinigunChainammo : public CBasePlayerAmmo |
|
|
|
class CMinigunChainammo : public CBasePlayerAmmo |
|
|
|
{ |
|
|
|
{ |
|
|
@ -345,23 +345,5 @@ class CMinigunChainammo : public CBasePlayerAmmo |
|
|
|
return bResult; |
|
|
|
return bResult; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_minigunbox, CMinigunChainammo ); |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_minigunbox, CMinigunChainammo ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|