From b26e835db568d6d8bbf524ac2eaa415385911717 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 29 May 2004 21:50:23 +0000 Subject: * Added code to report number of spawns remaining when spawning * Tweaked some font values --- src/game/bg_public.h | 1 + src/game/g_main.c | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src/game') diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 1021cdf6..17333648 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -67,6 +67,7 @@ //TA: extra stuff: #define CS_BUILDPOINTS 28 #define CS_STAGES 29 +#define CS_SPAWNS 30 #define CS_MODELS 33 #define CS_SOUNDS (CS_MODELS+MAX_MODELS) diff --git a/src/game/g_main.c b/src/game/g_main.c index 4b2aa39d..2a54b521 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -916,6 +916,10 @@ void G_CountSpawns( void ) if( ent->s.modelindex == BA_H_SPAWN && ent->health > 0 ) level.numHumanSpawns++; } + + //let the client know how many spawns there are + trap_SetConfigstring( CS_SPAWNS, va( "%d %d", + level.numAlienSpawns, level.numHumanSpawns ) ); } -- cgit