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/cgame/cg_tutorial.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/cgame/cg_tutorial.c') diff --git a/src/cgame/cg_tutorial.c b/src/cgame/cg_tutorial.c index d2f01b3..d36ecac 100644 --- a/src/cgame/cg_tutorial.c +++ b/src/cgame/cg_tutorial.c @@ -514,6 +514,17 @@ static void CG_HumanText( char *text, playerState_t *ps ) BG_Upgrade( UP_MEDKIT )->humanName ) ); } + if( ps->stats[ STAT_STAMINA ] <= STAMINA_BLACKOUT_LEVEL ) + { + Q_strcat( text, MAX_TUTORIAL_TEXT, + "You are blacking out. Stop sprinting to recover stamina\n" ); + } + else if( ps->stats[ STAT_STAMINA ] <= STAMINA_SLOW_LEVEL ) + { + Q_strcat( text, MAX_TUTORIAL_TEXT, + "Your stamina is low. Stop sprinting to recover\n" ); + } + switch( cg.nearUsableBuildable ) { case BA_H_ARMOURY: -- cgit