summaryrefslogtreecommitdiff
path: root/src/game/g_local.h
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2014-10-15 21:16:06 +0300
committerMikko Tiusanen <ams@daug.net>2014-10-15 21:16:06 +0300
commit8268afc55026f70cd21a7941e1228cfd9adeb0a8 (patch)
tree2439ce84a6ae39f40cf0a460db87036597a2d969 /src/game/g_local.h
parentcb6e022bb7aadf56d4f7ebc136f652fc18fbc44e (diff)
Added automatic levels functionality based on total score earned of each player.
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r--src/game/g_local.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h
index 5ee2623..2163df4 100644
--- a/src/game/g_local.h
+++ b/src/game/g_local.h
@@ -353,6 +353,9 @@ typedef struct
addr_t ip;
char voice[ MAX_VOICE_NAME_LEN ];
qboolean useUnlagged;
+
+ // team change tracking
+ team_t newTeam;
// keep track of other players' info for tinfo
char cinfo[ MAX_CLIENTS ][ 16 ];
} clientPersistant_t;
@@ -760,6 +763,7 @@ void G_Say( gentity_t *ent, saymode_t mode, const char *chatText );
void G_DecolorString( char *in, char *out, int len );
void G_UnEscapeString( char *in, char *out, int len );
void G_SanitiseString( char *in, char *out, int len );
+void Cmd_MyScore_f( gentity_t *ent );
void Cmd_PrivateMessage_f( gentity_t *ent );
void Cmd_ListMaps_f( gentity_t *ent );
void Cmd_ListEmoticons_f( gentity_t *ent );
@@ -1288,6 +1292,8 @@ extern vmCvar_t g_ConstantRewardFactor;
extern vmCvar_t g_TeamRewardFactor;
extern vmCvar_t g_PlayerRewardFactor;
extern vmCvar_t g_ForceRandomTeams;
+extern vmCvar_t g_AutoLevelMinTeamSize;
+extern vmCvar_t g_RageQuitScorePenalty;
void trap_Print( const char *fmt );
void trap_Error( const char *fmt );