diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 42273bc0..3cfee5c0 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2324,72 +2324,6 @@ void Cmd_Test_f( gentity_t *ent ) ent->client->lastPoisonClient = ent; } -/* -================= -Cmd_Evolve_Debug_f -================= -*/ -void Cmd_Evolve_Debug_f( gentity_t *ent ) -{ -#define USE_OBJECT_RANGE 64 - - int entityList[ MAX_GENTITIES ]; - vec3_t range = { USE_OBJECT_RANGE, USE_OBJECT_RANGE, USE_OBJECT_RANGE }; - vec3_t mins, maxs; - int i, num; - int j; - qboolean upgrade = qfalse; - gclient_t *client = ent->client; - trace_t trace; - gentity_t *traceEnt; - vec3_t point, view; - - //TA: look for object infront of player - AngleVectors( client->ps.viewangles, view, NULL, NULL ); - VectorMA( client->ps.origin, USE_OBJECT_RANGE, view, point ); - trap_Trace( &trace, client->ps.origin, NULL, NULL, point, ent->s.number, MASK_SHOT ); - - traceEnt = &g_entities[ trace.entityNum ]; - - if( traceEnt && traceEnt->biteam == client->ps.stats[ STAT_PTEAM ] && traceEnt->use ) - trap_SendServerCommand( ent - g_entities, - va( "print \"Trying to use entity \"%s\"\n\"", traceEnt->classname ) ); - else - { - //no entity in front of player - do a small area search - - VectorAdd( client->ps.origin, range, maxs ); - VectorSubtract( client->ps.origin, range, mins ); - - num = trap_EntitiesInBox( mins, maxs, entityList, MAX_GENTITIES ); - for( i = 0; i < num; i++ ) - { - traceEnt = &g_entities[ entityList[ i ] ]; - - if( traceEnt && traceEnt->biteam == client->ps.stats[ STAT_PTEAM ] && traceEnt->use ) - { - trap_SendServerCommand( ent - g_entities, - va( "print \"Trying to use entity \"%s\"\n\"", traceEnt->classname ) ); - break; - } - } - - if( i == num && client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) - { - for( j = PCL_NONE + 1; j < PCL_NUM_CLASSES; j++ ) - { - if( BG_ClassCanEvolveFromTo( client->ps.stats[ STAT_PCLASS ], j, - client->ps.persistant[ PERS_CREDIT ], 0 ) >= 0 && - BG_FindStagesForClass( j, g_alienStage.integer ) ) - { - upgrade = qtrue; - break; - } - } - } - } -} - /* ================= @@ -2501,8 +2435,6 @@ void ClientCommand( int clientNum ) Cmd_PTRCRestore_f( ent ); else if( Q_stricmp( cmd, "test" ) == 0 ) Cmd_Test_f( ent ); - else if( Q_stricmp( cmd, "evolvebug" ) == 0 ) - Cmd_Evolve_Debug_f( ent ); else trap_SendServerCommand( clientNum, va( "print \"unknown cmd %s\n\"", cmd ) ); } |