From 75294e8dbe695ac8856ea7f22dd793c680a9d7d2 Mon Sep 17 00:00:00 2001 From: Bryce Hutchings Date: Mon, 17 Jun 2002 03:53:31 +0000 Subject: [PATCH] m4 muzzle flash is smaller --- reaction/cgame/cg_weapons.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/reaction/cgame/cg_weapons.c b/reaction/cgame/cg_weapons.c index 4eadcda3..573f8eb4 100644 --- a/reaction/cgame/cg_weapons.c +++ b/reaction/cgame/cg_weapons.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.83 2002/06/17 03:53:31 niceass +// m4 muzzle flash is smaller +// // Revision 1.82 2002/06/16 20:06:13 jbravo // Reindented all the source files with "indent -kr -ut -i8 -l120 -lc120 -sob -bad -bap" // @@ -1762,6 +1765,10 @@ void CG_AddPlayerWeapon(refEntity_t * parent, playerState_t * ps, centity_t * ce if (cg_RQ3_flash.integer) { if (ps) { + float scale = 2.0f; + + if (ps->weapon == WP_M4) scale = 1.5f; + // Elder: draw flash based on first-person view if (ps->weapon == WP_AKIMBO) { // choose tag for akimbos @@ -1773,9 +1780,9 @@ void CG_AddPlayerWeapon(refEntity_t * parent, playerState_t * ps, centity_t * ce CG_PositionRotatedEntityOnTag(&flash, &gun, weapon->firstModel, "tag_flash"); // Make flash larger to compensate for depth hack - VectorScale(flash.axis[0], 2.0f, flash.axis[0]); - VectorScale(flash.axis[1], 2.0f, flash.axis[1]); - VectorScale(flash.axis[2], 2.0f, flash.axis[2]); + VectorScale(flash.axis[0], scale, flash.axis[0]); + VectorScale(flash.axis[1], scale, flash.axis[1]); + VectorScale(flash.axis[2], scale, flash.axis[2]); flash.nonNormalizedAxes = qtrue; } else { //Elder: draw flash based on 3rd-person view