diff options
author | Tim Angus <tim@ngus.net> | 2002-01-09 15:19:20 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-01-09 15:19:20 +0000 |
commit | 3e4618de385abe5747751c36690c96e9f36c6480 (patch) | |
tree | 8263de0c68aa4927b2d742a5a2d51d6e8fc106df /src/cgame/cg_ents.c | |
parent | ab77b5a66d9261cf338dbcb9b551b629375a4f25 (diff) |
A bunch of stuff
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r-- | src/cgame/cg_ents.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index a7e95e1c..8cc0fe1b 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -289,20 +289,21 @@ static void CG_Missile( centity_t *cent ) break; case WP_FLAMER: - fraction = ( ( cg.time - s1->pos.trTime ) / FIREBALL_LIFETIME ); - - if( fraction > 1.0f ) - fraction = 1.0f; + { + fraction = ( ( cg.time - s1->pos.trTime ) / FIREBALL_LIFETIME ); - ent.reType = RT_SPRITE; - ent.radius = fraction * 32; - ent.shaderTime = s1->pos.trTime / 1000.0f; - ent.rotation = 0; - - index = (int)( fraction * 31 ); - ent.customShader = cgs.media.flameShader[ index ]; - trap_R_AddRefEntityToScene( &ent ); - return; + if( fraction > 1.0f ) + fraction = 1.0f; + + ent.reType = RT_SPRITE; + ent.radius = fraction * 32; + ent.rotation = s1->generic1; + + index = (int)( fraction * 31 ); + ent.customShader = cgs.media.flameShader[ index ]; + trap_R_AddRefEntityToScene( &ent ); + return; + } break; default: @@ -910,7 +911,7 @@ void CG_AddPacketEntities( void ) { cgIP.numAlienClients = 0; cgIP.numHumanClients = 0; - for ( num = 0 ; num < cg.snap->numEntities ; num++ ) + for( num = 0 ; num < cg.snap->numEntities ; num++ ) { cent = &cg_entities[ cg.snap->entities[ num ].number ]; @@ -953,7 +954,8 @@ void CG_AddPacketEntities( void ) { //Com_Printf( "%d %d\n", cgIP.numAlienClients, cgIP.numHumanClients ); // add each entity sent over by the server - for ( num = 0 ; num < cg.snap->numEntities ; num++ ) { + for( num = 0; num < cg.snap->numEntities; num++ ) + { cent = &cg_entities[ cg.snap->entities[ num ].number ]; CG_AddCEntity( cent ); } |