diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-26 19:11:43 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:08 +0000 |
commit | 86509e9172baeb702ca8343120791fefdf663bfa (patch) | |
tree | d89f28ae5b172940b613e9a360f13759a4bf9d1b /src/cgame/cg_tutorial.c | |
parent | 54161abc42b98c89604eeea5bf960eb48407f6b8 (diff) |
* Tutorial text no longer prints how to use a buildable if you aren't near a usable buildable
* Tutorial text explains low-stamina states
Diffstat (limited to 'src/cgame/cg_tutorial.c')
-rw-r--r-- | src/cgame/cg_tutorial.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/cgame/cg_tutorial.c b/src/cgame/cg_tutorial.c index 38dd52f4..ef421ec6 100644 --- a/src/cgame/cg_tutorial.c +++ b/src/cgame/cg_tutorial.c @@ -524,16 +524,30 @@ static void CG_HumanText( char *text, playerState_t *ps ) BG_Upgrade( UP_MEDKIT )->humanName ) ); } - Q_strcat( text, MAX_TUTORIAL_TEXT, - va( "Press %s to use a structure\n", - CG_KeyNameForCommand( "+button7" ) ) ); + 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" ); + } + + if( cg.nearUsableBuildable ) + { + Q_strcat( text, MAX_TUTORIAL_TEXT, + va( "Press %s to use this structure\n", + CG_KeyNameForCommand( "+button7" ) ) ); + } Q_strcat( text, MAX_TUTORIAL_TEXT, va( "Press %s and any direction to sprint\n", CG_KeyNameForCommand( "+button8" ) ) ); Q_strcat( text, MAX_TUTORIAL_TEXT, - va( "Press %s and back, left-strafe, or right-strafe to dodge\n", + va( "Press %s and back or strafe to dodge\n", CG_KeyNameForCommand( "+button6" ) ) ); } |