mirror of
https://github.com/UberGames/RPG-X2.git
synced 2025-02-14 23:51:41 +00:00
Removed some unsused code from g_cmds.c
Backed it up to old_code/g_cmds.c
This commit is contained in:
parent
caaa5786b1
commit
a75fc81ac4
4 changed files with 1165 additions and 1700 deletions
|
@ -52,34 +52,7 @@ void TryUse( gentity_t *ent )
|
||||||
target = &g_entities[trace.entityNum];
|
target = &g_entities[trace.entityNum];
|
||||||
|
|
||||||
//Check for a use command
|
//Check for a use command
|
||||||
if ( target && target->client )
|
if ( target && target->use && Q_stricmp("func_usable", target->classname) == 0 )
|
||||||
{//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 )
|
|
||||||
{//usable brush
|
{//usable brush
|
||||||
if ( target->team && atoi( target->team ) != 0 )
|
if ( target->team && atoi( target->team ) != 0 )
|
||||||
{//usable has a team
|
{//usable has a team
|
||||||
|
|
1676
game/g_cmds.c
1676
game/g_cmds.c
File diff suppressed because it is too large
Load diff
1160
old_code/g_cmds.c
Normal file
1160
old_code/g_cmds.c
Normal file
File diff suppressed because it is too large
Load diff
BIN
stefgame.suo
BIN
stefgame.suo
Binary file not shown.
Loading…
Reference in a new issue