summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_misc.c20
-rw-r--r--src/game/bg_public.h5
-rw-r--r--src/game/g_active.c4
3 files changed, 17 insertions, 12 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c
index c38015a9..fde42787 100644
--- a/src/game/bg_misc.c
+++ b/src/game/bg_misc.c
@@ -1188,7 +1188,7 @@ classAttributes_t bg_classList[ ] =
"lucy", //char *modelname;
1.0f, //float modelScale;
"default", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_builder_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -15, -15, -20 }, //vec3_t mins;
{ 15, 15, 20 }, //vec3_t maxs;
@@ -1218,7 +1218,7 @@ classAttributes_t bg_classList[ ] =
"lucy", //char *modelname;
1.0f, //float modelScale;
"angel", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_builder_hud", //char *hudname;
( 1 << S2 )|( 1 << S3 ), //int stages
{ -20, -20, -20 }, //vec3_t mins;
{ 20, 20, 20 }, //vec3_t maxs;
@@ -1248,7 +1248,7 @@ classAttributes_t bg_classList[ ] =
"jumper", //char *modelname;
0.2f, //float modelScale;
"default", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -15, -15, -6 }, //vec3_t mins;
{ 15, 15, 6 }, //vec3_t maxs;
@@ -1278,7 +1278,7 @@ classAttributes_t bg_classList[ ] =
"prowl", //char *modelname;
0.75f, //float modelScale;
"default", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -24, -24, -16 }, //vec3_t mins;
{ 24, 24, 16 }, //vec3_t maxs;
@@ -1308,7 +1308,7 @@ classAttributes_t bg_classList[ ] =
"prowl", //char *modelname;
0.75f, //float modelScale;
"default", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -24, -24, -16 }, //vec3_t mins;
{ 24, 24, 16 }, //vec3_t maxs;
@@ -1338,7 +1338,7 @@ classAttributes_t bg_classList[ ] =
"spitter", //char *modelname;
0.6f, //float modelScale;
"default", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -18, -18, -18 }, //vec3_t mins;
{ 18, 18, 18 }, //vec3_t maxs;
@@ -1369,7 +1369,7 @@ classAttributes_t bg_classList[ ] =
"spitter", //char *modelname;
0.7f, //float modelScale;
"blue", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -20, -20, -20 }, //vec3_t mins;
{ 20, 20, 20 }, //vec3_t maxs;
@@ -1400,7 +1400,7 @@ classAttributes_t bg_classList[ ] =
"tarantula", //char *modelname;
0.75f, //float modelScale;
"default", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -22, -22, -22 }, //vec3_t mins;
{ 22, 22, 22 }, //vec3_t maxs;
@@ -1430,7 +1430,7 @@ classAttributes_t bg_classList[ ] =
"tarantula", //char *modelname;
0.9f, //float modelScale;
"red", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -24, -24, -24 }, //vec3_t mins;
{ 24, 24, 24 }, //vec3_t maxs;
@@ -1460,7 +1460,7 @@ classAttributes_t bg_classList[ ] =
"bug", //char *modelname;
1.2f, //float modelScale;
"default", //char *skinname;
- "alien_hud", //char *hudname;
+ "alien_general_hud", //char *hudname;
( 1 << S1 )|( 1 << S2 )|( 1 << S3 ), //int stages
{ -30, -30, -29 }, //vec3_t mins;
{ 30, 30, 29 }, //vec3_t maxs;
diff --git a/src/game/bg_public.h b/src/game/bg_public.h
index a61f9ef7..62ab7fab 100644
--- a/src/game/bg_public.h
+++ b/src/game/bg_public.h
@@ -206,7 +206,8 @@ typedef enum
STAT_STAMINA, //TA: stamina (human only)
STAT_STATE, //TA: client states e.g. wall climbing
STAT_MISC, //TA: for uh...misc stuff
- STAT_BUILDABLE //TA: which ghost model to display for building
+ STAT_BUILDABLE, //TA: which ghost model to display for building
+ STAT_BOOSTTIME //TA: time left for boost (alien only)
} statIndex_t;
#define SCA_WALLCLIMBER 0x00000001
@@ -237,6 +238,8 @@ typedef enum
#define MAX_STAMINA 1000
+#define BOOST_TIME 20000
+
// player_state->persistant[] indexes
// these fields are the only part of player_state that isn't
// cleared on respawn
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 43c6fa16..ecae1f6c 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -869,8 +869,10 @@ void ClientThink_real( gentity_t *ent )
client->lastLockTime + DRAGOON_SLOWBLOB_TIME < level.time )
client->ps.stats[ STAT_STATE ] &= ~SS_SLOWLOCKED;
+ client->ps.stats[ STAT_BOOSTTIME ] = level.time - client->lastBoostedTime;
+
if( client->ps.stats[ STAT_STATE ] & SS_BOOSTED &&
- client->lastBoostedTime + 20000 < level.time )
+ client->lastBoostedTime + BOOST_TIME < level.time )
client->ps.stats[ STAT_STATE ] &= ~SS_BOOSTED;
if( client->ps.stats[ STAT_STATE ] & SS_POISONCLOUDED &&