From 409e6051a48221cb2a02c182dc0d5e64f2eeb40f Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 4 Jun 2006 22:17:32 +0000 Subject: * Added target_hurt * Various other map entity fixes/enhancements * Hovel exploit fixed * Fixed tesla trail disappearing at edge of range * Default player name now inherited from OS * Fixed spelling of Veda's surname :x --- src/cgame/cg_ents.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index 1c7d6a05..02972a51 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -251,6 +251,7 @@ static void CG_EntityEffects( centity_t *cent ) if( CG_IsTrailSystemValid( ¢->muzzleTS ) ) { + //FIXME hack to prevent tesla trails reaching too far if( cent->currentState.eType == ET_BUILDABLE ) { vec3_t front, back; @@ -258,7 +259,7 @@ static void CG_EntityEffects( centity_t *cent ) CG_AttachmentPoint( ¢->muzzleTS->frontAttachment, front ); CG_AttachmentPoint( ¢->muzzleTS->backAttachment, back ); - if( Distance( front, back ) > TESLAGEN_RANGE ) + if( Distance( front, back ) > ( TESLAGEN_RANGE * M_ROOT3 ) ) CG_DestroyTrailSystem( ¢->muzzleTS ); } -- cgit