|
|
@ -51,6 +51,7 @@ void CM249::Spawn() |
|
|
|
m_iDefaultAmmo = M249_DEFAULT_GIVE; |
|
|
|
m_iDefaultAmmo = M249_DEFAULT_GIVE; |
|
|
|
|
|
|
|
|
|
|
|
m_fInSpecialReload = 0; |
|
|
|
m_fInSpecialReload = 0; |
|
|
|
|
|
|
|
m_bAlternatingEject = false; |
|
|
|
|
|
|
|
|
|
|
|
FallInit();// get ready to fall down.
|
|
|
|
FallInit();// get ready to fall down.
|
|
|
|
} |
|
|
|
} |
|
|
@ -63,6 +64,7 @@ void CM249::Precache(void) |
|
|
|
PRECACHE_MODEL("models/p_saw.mdl"); |
|
|
|
PRECACHE_MODEL("models/p_saw.mdl"); |
|
|
|
|
|
|
|
|
|
|
|
m_iShell = PRECACHE_MODEL("models/saw_shell.mdl");// brass shellTE_MODEL
|
|
|
|
m_iShell = PRECACHE_MODEL("models/saw_shell.mdl");// brass shellTE_MODEL
|
|
|
|
|
|
|
|
m_iLink = PRECACHE_MODEL("models/saw_link.mdl"); |
|
|
|
|
|
|
|
|
|
|
|
PRECACHE_MODEL("models/w_saw_clip.mdl"); |
|
|
|
PRECACHE_MODEL("models/w_saw_clip.mdl"); |
|
|
|
PRECACHE_SOUND("items/9mmclip1.wav"); |
|
|
|
PRECACHE_SOUND("items/9mmclip1.wav"); |
|
|
@ -146,6 +148,7 @@ void CM249::PrimaryAttack() |
|
|
|
|
|
|
|
|
|
|
|
m_iClip--; |
|
|
|
m_iClip--; |
|
|
|
UpdateTape(); |
|
|
|
UpdateTape(); |
|
|
|
|
|
|
|
m_bAlternatingEject = !m_bAlternatingEject; |
|
|
|
m_pPlayer->pev->effects = (int)(m_pPlayer->pev->effects) | EF_MUZZLEFLASH; |
|
|
|
m_pPlayer->pev->effects = (int)(m_pPlayer->pev->effects) | EF_MUZZLEFLASH; |
|
|
|
|
|
|
|
|
|
|
|
// player "shoot" animation
|
|
|
|
// player "shoot" animation
|
|
|
@ -177,7 +180,7 @@ void CM249::PrimaryAttack() |
|
|
|
flags = 0; |
|
|
|
flags = 0; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
PLAYBACK_EVENT_FULL(flags, m_pPlayer->edict(), m_usM249, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, pev->body, 0, 0); |
|
|
|
PLAYBACK_EVENT_FULL(flags, m_pPlayer->edict(), m_usM249, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, vecDir.x, vecDir.y, 0, pev->body, m_bAlternatingEject ? 1 : 0, 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !CLIENT_DLL |
|
|
|
#if !CLIENT_DLL |
|
|
|