From 6c7152aada204bfdfa6e39cdfea5e10440e0ed36 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 25 Jun 2015 22:52:39 +0200 Subject: Bring back some Basilisk code as a base for Wraith. --- src/cgame/cg_tutorial.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/cgame/cg_tutorial.c') diff --git a/src/cgame/cg_tutorial.c b/src/cgame/cg_tutorial.c index 0819892..b44b2f1 100644 --- a/src/cgame/cg_tutorial.c +++ b/src/cgame/cg_tutorial.c @@ -256,6 +256,25 @@ static void CG_AlienLevel0Text( char *text, playerState_t *ps ) CG_KeyNameForCommand( "+movedown" ) ) ); } +/* +=============== +CG_AlienLevel1Text +=============== +*/ +static void CG_AlienLevel1Text( char *text, playerState_t *ps ) +{ + Q_strcat( text, MAX_TUTORIAL_TEXT, + "Touch humans to grab them\n" ); + + Q_strcat( text, MAX_TUTORIAL_TEXT, + va( "Press %s to swipe\n", + CG_KeyNameForCommand( "+attack" ) ) ); + + Q_strcat( text, MAX_TUTORIAL_TEXT, + va( "Press %s to walk on walls\n", + CG_KeyNameForCommand( "+movedown" ) ) ); +} + /* =============== CG_AlienLevel2Text @@ -631,6 +650,10 @@ const char *CG_TutorialText( void ) CG_AlienLevel0Text( text, ps ); break; + case PCL_ALIEN_LEVEL1: + CG_AlienLevel1Text( text, ps ); + break; + case PCL_ALIEN_LEVEL2: case PCL_ALIEN_LEVEL2_UPG: CG_AlienLevel2Text( text, ps ); -- cgit