summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-25 22:52:39 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-25 22:52:39 +0200
commit6c7152aada204bfdfa6e39cdfea5e10440e0ed36 (patch)
tree1d2c8e17b47abc796de1f0e045abf3fb043d07df /src/cgame
parent1b13c257a9759f0a40c79f0acd3a07bc079df120 (diff)
Bring back some Basilisk code as a base for Wraith.
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_event.c6
-rw-r--r--src/cgame/cg_tutorial.c23
2 files changed, 29 insertions, 0 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index 7e20cc5..436e819 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -361,6 +361,12 @@ static void CG_Obituary( entityState_t *ent )
case MOD_LEVEL0_BITE:
message = "^5was bitten by^7";
break;
+ case MOD_LEVEL1_CLAW:
+ message = "^5was swiped by^7";
+ Com_sprintf( className, 64, "^5's %s",
+ BG_ClassConfig( PCL_ALIEN_LEVEL1 )->humanName );
+ message2 = className;
+ break;
case MOD_LEVEL2_CLAW:
case MOD_LEVEL2_CLAW_UPG:
message = "^5was clawed by^7";
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
@@ -258,6 +258,25 @@ static void CG_AlienLevel0Text( char *text, playerState_t *ps )
/*
===============
+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 );