From 397f8c6f86aa68eeef6a94cc33473c0ffd69372d Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 11 Apr 2015 21:17:39 +0200 Subject: Revert the removal of stamina and sprinting. --- src/game/g_cmds.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/g_cmds.c') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 74dea71..f3cada7 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -450,7 +450,7 @@ void Cmd_Give_f( gentity_t *ent ) if( trap_Argc( ) < 2 ) { ADMP( "usage: give [what]\n" ); - ADMP( "usage: valid choices are: all, health, funds [amount], " + ADMP( "usage: valid choices are: all, health, funds [amount], stamina, " "poison, gas, ammo\n" ); return; } @@ -487,6 +487,9 @@ void Cmd_Give_f( gentity_t *ent ) G_AddCreditToClient( ent->client, (short)credits, qtrue ); } + if( give_all || Q_stricmp( name, "stamina" ) == 0 ) + ent->client->ps.stats[ STAT_STAMINA ] = STAMINA_MAX; + if( Q_stricmp( name, "poison" ) == 0 ) { if( ent->client->pers.teamSelection == TEAM_HUMANS ) -- cgit