Removed some unsused code from g_cmds.c

Backed it up to old_code/g_cmds.c
This commit is contained in:
Walter Julius Hennecke 2012-03-19 12:11:23 +01:00
parent caaa5786b1
commit a75fc81ac4
4 changed files with 1165 additions and 1700 deletions

View file

@ -52,34 +52,7 @@ void TryUse( gentity_t *ent )
target = &g_entities[trace.entityNum];
//Check for a use command
if ( target && target->client )
{//if a bot, make it follow me, if a teammate, give stuff
if ( target->client->sess.sessionTeam == sess->sessionTeam )
{//on my team
// gitem_t *regen = BG_FindItemForPowerup( PW_LASER );
// gitem_t *invis = BG_FindItemForPowerup( PW_INVIS );
//switch( sess->sessionClass )
//{
//case PC_MEDIC://medic gives regen
// break;
//case PC_TECH://tech gives invisibility
// break;
//}
//switch( target->client->sess.sessionClass )
//{
//case PC_TECH://using tech gives you full ammo
// G_Sound(ent, G_SoundIndex("sound/player/suitenergy.wav") );
// for ( i = 0 ; i < MAX_WEAPONS ; i++ )
// {
// ent->client->ps.ammo[i] = Max_Ammo[i];
// }
// return;
// break;
//}
}
}
else if ( target && target->use && Q_stricmp("func_usable", target->classname) == 0 )
if ( target && target->use && Q_stricmp("func_usable", target->classname) == 0 )
{//usable brush
if ( target->team && atoi( target->team ) != 0 )
{//usable has a team

File diff suppressed because it is too large Load diff

1160
old_code/g_cmds.c Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.