shell ejection bug fixed

This commit is contained in:
Bryce Hutchings 2002-04-07 02:10:42 +00:00
parent 79a3d2e914
commit 43cac4f361

View file

@ -5,6 +5,9 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.66 2002/04/07 02:10:42 niceass
// shell ejection bug fixed
//
// Revision 1.65 2002/04/06 21:43:59 makro // Revision 1.65 2002/04/06 21:43:59 makro
// New surfaceparm system // New surfaceparm system
// //
@ -1630,15 +1633,15 @@ void CG_AddPlayerWeapon( refEntity_t *parent, playerState_t *ps, centity_t *cent
shell = weapon->ejectBrassFunc( cent ); shell = weapon->ejectBrassFunc( cent );
if ( shell != NULL ) {
float speed = 1.0f;
int axis = 0;
if ( weaponNum == WP_M4 || weaponNum == WP_SSG3000) { if ( weaponNum == WP_M4 || weaponNum == WP_SSG3000) {
shell->refEntity.hModel = cgs.media.largeBrassModel; shell->refEntity.hModel = cgs.media.largeBrassModel;
shell->bounceFactor *= 0.75; shell->bounceFactor *= 0.75;
} }
if ( shell != NULL ) {
float speed = 1.0f;
int axis = 0;
if (ps) { if (ps) {
if ( weapon->item->giTag == WP_AKIMBO && !ps->stats[STAT_BURST] ) if ( weapon->item->giTag == WP_AKIMBO && !ps->stats[STAT_BURST] )
CG_PositionRotatedEntityOnTag( &shell->refEntity, &gun, gun.hModel, "tag_shell2"); CG_PositionRotatedEntityOnTag( &shell->refEntity, &gun, gun.hModel, "tag_shell2");