mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-21 09:01:42 +00:00
Delay the lights sound 5 server frames.
This commit is contained in:
parent
e71c920cd5
commit
b13af2ca17
2 changed files with 22 additions and 2 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.74 2002/05/05 01:20:50 jbravo
|
||||||
|
// Delay the lights sound 5 server frames.
|
||||||
|
//
|
||||||
// Revision 1.73 2002/04/30 11:20:12 jbravo
|
// Revision 1.73 2002/04/30 11:20:12 jbravo
|
||||||
// Redid the teamcount cvars.
|
// Redid the teamcount cvars.
|
||||||
//
|
//
|
||||||
|
@ -669,6 +672,7 @@ typedef struct {
|
||||||
vec3_t team2spawn_origin;
|
vec3_t team2spawn_origin;
|
||||||
vec3_t team2spawn_angles;
|
vec3_t team2spawn_angles;
|
||||||
int fps;
|
int fps;
|
||||||
|
int lights_delay;
|
||||||
} level_locals_t;
|
} level_locals_t;
|
||||||
//
|
//
|
||||||
// rxn_game.c
|
// rxn_game.c
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.77 2002/05/05 01:20:50 jbravo
|
||||||
|
// Delay the lights sound 5 server frames.
|
||||||
|
//
|
||||||
// Revision 1.76 2002/05/04 16:19:02 jbravo
|
// Revision 1.76 2002/05/04 16:19:02 jbravo
|
||||||
// Fixing the stuff cmd to work on dedicated servers.
|
// Fixing the stuff cmd to work on dedicated servers.
|
||||||
//
|
//
|
||||||
|
@ -278,6 +281,14 @@ void CheckTeamRules()
|
||||||
|
|
||||||
level.fps = trap_Cvar_VariableIntegerValue("sv_fps");
|
level.fps = trap_Cvar_VariableIntegerValue("sv_fps");
|
||||||
|
|
||||||
|
if (level.lights_delay) {
|
||||||
|
level.lights_delay--;
|
||||||
|
if (level.lights_delay == 1) {
|
||||||
|
level.lights_delay = 0;
|
||||||
|
trap_SendServerCommand(-1, "lights");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (level.lights_camera_action) {
|
if (level.lights_camera_action) {
|
||||||
ContinueLCA();
|
ContinueLCA();
|
||||||
return;
|
return;
|
||||||
|
@ -294,6 +305,11 @@ void CheckTeamRules()
|
||||||
checked_tie = 1;
|
checked_tie = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (level.lights_delay == 1) {
|
||||||
|
level.lights_delay = 0;
|
||||||
|
trap_SendServerCommand(-1, "lights");
|
||||||
|
}
|
||||||
|
|
||||||
if (level.team_round_countdown == 1) {
|
if (level.team_round_countdown == 1) {
|
||||||
level.team_round_countdown = 0;
|
level.team_round_countdown = 0;
|
||||||
if (BothTeamsHavePlayers()) {
|
if (BothTeamsHavePlayers()) {
|
||||||
|
@ -406,7 +422,7 @@ void StartLCA()
|
||||||
level.lights_camera_action = (41*level.fps)/10;
|
level.lights_camera_action = (41*level.fps)/10;
|
||||||
G_LogPrintf ("LIGHTS...\n");
|
G_LogPrintf ("LIGHTS...\n");
|
||||||
SpawnPlayers();
|
SpawnPlayers();
|
||||||
// trap_SendServerCommand( -1, "lights");
|
level.lights_delay = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContinueLCA()
|
void ContinueLCA()
|
||||||
|
@ -735,7 +751,7 @@ void SpawnPlayers()
|
||||||
client->sess.spectatorState = SPECTATOR_NOT;
|
client->sess.spectatorState = SPECTATOR_NOT;
|
||||||
}
|
}
|
||||||
client->ps.stats[STAT_RQ3] &= ~RQ3_PLAYERSOLID;
|
client->ps.stats[STAT_RQ3] &= ~RQ3_PLAYERSOLID;
|
||||||
trap_SendServerCommand(player-g_entities, "lights");
|
// trap_SendServerCommand(player-g_entities, "lights");
|
||||||
ClientSpawn(player);
|
ClientSpawn(player);
|
||||||
ClientUserinfoChanged(clientNum);
|
ClientUserinfoChanged(clientNum);
|
||||||
client->sess.teamSpawn = qfalse;
|
client->sess.teamSpawn = qfalse;
|
||||||
|
|
Loading…
Reference in a new issue