no more shell ejection on LCA, I hope

This commit is contained in:
Bryce Hutchings 2002-07-08 04:41:12 +00:00
parent 0ef2a4ef70
commit 864756cd91

View file

@ -5,6 +5,9 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.89 2002/07/08 04:41:12 niceass
// no more shell ejection on LCA, I hope
//
// Revision 1.88 2002/06/29 21:57:18 niceass // Revision 1.88 2002/06/29 21:57:18 niceass
// shotgun fixes // shotgun fixes
// //
@ -1677,6 +1680,10 @@ void CG_AddPlayerWeapon(refEntity_t * parent, playerState_t * ps, centity_t * ce
CG_AddWeaponWithPowerups(&laser, cent->currentState.powerups); CG_AddWeaponWithPowerups(&laser, cent->currentState.powerups);
} }
// NiceAss: fix for brass ejecting on LCA
if (cg.lca)
cent->ejectBrassTime = 0;
// NiceAss: Tag locations used for shell ejection // NiceAss: Tag locations used for shell ejection
// The handcannon hacks have ruined my beautiful code =( // The handcannon hacks have ruined my beautiful code =(
if (cg.time > cent->ejectBrassTime && cent->ejectBrassTime && weapon->ejectBrassFunc && if (cg.time > cent->ejectBrassTime && cent->ejectBrassTime && weapon->ejectBrassFunc &&