diff options
author | Tim Angus <tim@ngus.net> | 2006-12-29 14:09:05 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-12-29 14:09:05 +0000 |
commit | 210115d7ef5f8be82036458359bdf9f00c2bfb67 (patch) | |
tree | 1b3cb8474288e4eb1d47bbaca53ea94fae0c87ad | |
parent | e9f4d372bf660b7811acabbcd0697cd6e1e61170 (diff) |
* Clean up serverinfo
-rw-r--r-- | src/cgame/cg_local.h | 14 | ||||
-rw-r--r-- | src/cgame/cg_players.c | 6 | ||||
-rw-r--r-- | src/cgame/cg_servercmds.c | 2 | ||||
-rw-r--r-- | src/client/cl_main.c | 2 |
4 files changed, 9 insertions, 15 deletions
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index f32941a8..2f61e4a4 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -86,9 +86,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define DEFAULT_TEAM_MODEL "sarge" #define DEFAULT_TEAM_HEAD "sarge" -#define DEFAULT_REDTEAM_NAME "Stroggs" -#define DEFAULT_BLUETEAM_NAME "Pagans" - typedef enum { FOOTSTEP_NORMAL, @@ -594,6 +591,12 @@ typedef struct lightFlareStatus_s qboolean status; //flare is visble? } lightFlareStatus_t; +typedef struct buildableStatus_s +{ + int lastTime; // Last time status was visible + qboolean visible; // Status is visble? +} buildableStatus_t; + //================================================= // centity_t have a direct corespondence with gentity_t in the game, but @@ -638,6 +641,7 @@ typedef struct centity_s buildableAnimNumber_t buildableAnim; //persistant anim number buildableAnimNumber_t oldBuildableAnim; //to detect when new anims are set particleSystem_t *buildablePS; + buildableStatus_t buildableStatus; float lastBuildableHealthScale; int lastBuildableDamageSoundTime; @@ -736,8 +740,6 @@ typedef struct char skinName[ MAX_QPATH ]; char headModelName[ MAX_QPATH ]; char headSkinName[ MAX_QPATH ]; - char redTeam[ MAX_TEAMNAME ]; - char blueTeam[ MAX_TEAMNAME ]; qboolean newAnims; // true if using the new mission pack animations qboolean fixedlegs; // true if legs yaw is always the same as torso yaw @@ -1574,6 +1576,7 @@ void CG_GetColorForHealth( int health, int armor, vec4_t hcolor ); void CG_DrawRect( float x, float y, float width, float height, float size, const float *color ); void CG_DrawSides(float x, float y, float w, float h, float size); void CG_DrawTopBottom(float x, float y, float w, float h, float size); +qboolean CG_WorldToScreen( vec3_t point, float *x, float *y ); // @@ -1626,6 +1629,7 @@ qboolean CG_AtHighestClass( void ); // void CG_GhostBuildable( buildable_t buildable ); void CG_Buildable( centity_t *cent ); +void CG_DrawBuildableStatus( void ); void CG_InitBuildables( void ); void CG_HumanBuildableExplosion( vec3_t origin, vec3_t dir ); void CG_AlienBuildableExplosion( vec3_t origin, vec3_t dir ); diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c index 0298958b..b594330e 100644 --- a/src/cgame/cg_players.c +++ b/src/cgame/cg_players.c @@ -814,12 +814,6 @@ void CG_NewClientInfo( int clientNum ) v = Info_ValueForKey( configstring, "tl" ); newInfo.teamLeader = atoi( v ); - v = Info_ValueForKey( configstring, "g_redteam" ); - Q_strncpyz( newInfo.redTeam, v, MAX_TEAMNAME ); - - v = Info_ValueForKey( configstring, "g_blueteam" ); - Q_strncpyz( newInfo.blueTeam, v, MAX_TEAMNAME ); - // model v = Info_ValueForKey( configstring, "model" ); Q_strncpyz( newInfo.modelName, v, sizeof( newInfo.modelName ) ); diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index b0fcc89b..bb0daabb 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -113,8 +113,6 @@ void CG_ParseServerinfo( void ) char *mapname; info = CG_ConfigString( CS_SERVERINFO ); - cgs.dmflags = atoi( Info_ValueForKey( info, "dmflags" ) ); - cgs.teamflags = atoi( Info_ValueForKey( info, "teamflags" ) ); cgs.timelimit = atoi( Info_ValueForKey( info, "timelimit" ) ); cgs.maxclients = atoi( Info_ValueForKey( info, "sv_maxclients" ) ); mapname = Info_ValueForKey( info, "mapname" ); diff --git a/src/client/cl_main.c b/src/client/cl_main.c index aefbab8c..f68a44a5 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -2561,8 +2561,6 @@ void CL_Init( void ) { Cvar_Get ("headmodel", "sarge", CVAR_USERINFO | CVAR_ARCHIVE ); Cvar_Get ("team_model", "james", CVAR_USERINFO | CVAR_ARCHIVE ); Cvar_Get ("team_headmodel", "*james", CVAR_USERINFO | CVAR_ARCHIVE ); - Cvar_Get ("g_redTeam", "Stroggs", CVAR_SERVERINFO | CVAR_ARCHIVE); - Cvar_Get ("g_blueTeam", "Pagans", CVAR_SERVERINFO | CVAR_ARCHIVE); Cvar_Get ("color1", "4", CVAR_USERINFO | CVAR_ARCHIVE ); Cvar_Get ("color2", "5", CVAR_USERINFO | CVAR_ARCHIVE ); Cvar_Get ("handicap", "100", CVAR_USERINFO | CVAR_ARCHIVE ); |