mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 07:11:36 +00:00
Adding limchasecam.
This commit is contained in:
parent
4109f03f9e
commit
04eaf92504
3 changed files with 19 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.40 2002/01/31 02:25:31 jbravo
|
||||
// Adding limchasecam.
|
||||
//
|
||||
// Revision 1.39 2002/01/11 20:20:58 jbravo
|
||||
// Adding TP to main branch
|
||||
//
|
||||
|
@ -870,6 +873,7 @@ Cmd_FollowCycle_f
|
|||
void Cmd_FollowCycle_f( gentity_t *ent, int dir ) {
|
||||
int clientnum;
|
||||
int original;
|
||||
int chasemode;
|
||||
|
||||
// if they are playing a tournement game, count as a loss
|
||||
if ( (g_gametype.integer == GT_TOURNAMENT )
|
||||
|
@ -886,6 +890,7 @@ void Cmd_FollowCycle_f( gentity_t *ent, int dir ) {
|
|||
G_Error( "Cmd_FollowCycle_f: bad dir %i", dir );
|
||||
}
|
||||
|
||||
chasemode = trap_Cvar_VariableIntegerValue( "g_RQ3_limchasecam" );
|
||||
clientnum = ent->client->sess.spectatorClient;
|
||||
original = clientnum;
|
||||
do {
|
||||
|
@ -907,6 +912,11 @@ void Cmd_FollowCycle_f( gentity_t *ent, int dir ) {
|
|||
continue;
|
||||
}
|
||||
|
||||
// JBravo: limchasecam
|
||||
if ( chasemode > 0 && ent->client->sess.savedTeam != level.clients[ clientnum ].sess.sessionTeam ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// this is good, we can use it
|
||||
ent->client->sess.spectatorClient = clientnum;
|
||||
ent->client->sess.spectatorState = SPECTATOR_FOLLOW;
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.37 2002/01/31 02:25:31 jbravo
|
||||
// Adding limchasecam.
|
||||
//
|
||||
// Revision 1.36 2002/01/24 14:20:53 jbravo
|
||||
// Adding func_explosive and a few new surfaceparms
|
||||
//
|
||||
|
@ -1044,6 +1047,7 @@ extern vmCvar_t g_RQ3_messageProtect; // Elder: 0 disable, non-zero enable
|
|||
extern vmCvar_t g_RQ3_roundlimit; // JBravo: No. of rounds pr. map
|
||||
extern vmCvar_t g_RQ3_roundtimelimit; // JBravo: Time pr. round
|
||||
extern vmCvar_t g_RQ3_tgren; // JBravo: no. of team grenades
|
||||
extern vmCvar_t g_RQ3_limchasecam; // JBravo: 0 = no chasecam limit, 1 = limited to same team.
|
||||
extern vmCvar_t RQ3_lca; // JBravo: cvar to signal cgame that LCA is in progress
|
||||
|
||||
void trap_Printf( const char *fmt );
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.18 2002/01/31 02:25:31 jbravo
|
||||
// Adding limchasecam.
|
||||
//
|
||||
// Revision 1.17 2002/01/14 01:20:45 niceass
|
||||
// No more default 800 gravity on items
|
||||
// Thrown knife+Glass fix - NiceAss
|
||||
|
@ -103,6 +106,7 @@ vmCvar_t g_RQ3_messageProtect;
|
|||
vmCvar_t g_RQ3_roundlimit;
|
||||
vmCvar_t g_RQ3_roundtimelimit;
|
||||
vmCvar_t g_RQ3_tgren;
|
||||
vmCvar_t g_RQ3_limchasecam;
|
||||
vmCvar_t RQ3_lca;
|
||||
#ifdef MISSIONPACK
|
||||
vmCvar_t g_obeliskHealth;
|
||||
|
@ -219,6 +223,7 @@ static cvarTable_t gameCvarTable[] = {
|
|||
{ &g_RQ3_roundlimit, "g_RQ3_roundlimit", "0", 0, 0, qtrue},
|
||||
{ &g_RQ3_roundtimelimit, "g_RQ3_roundtimelimit", "2", 0, 0, qtrue},
|
||||
{ &g_RQ3_tgren, "g_RQ3_tgren", "0", 0, 0, qtrue},
|
||||
{ &g_RQ3_limchasecam, "g_RQ3_limchasecam", "0", 0, 0, qtrue},
|
||||
{ &RQ3_lca, "RQ3_lca", "0", CVAR_SYSTEMINFO, 0, qfalse}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue