mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-27 14:32:15 +00:00
fix to kicking in CTB
This commit is contained in:
parent
cc072dd9fa
commit
f93f32f027
1 changed files with 11 additions and 2 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.75 2002/07/09 05:41:23 niceass
|
||||
// fix to kicking in CTB
|
||||
//
|
||||
// Revision 1.74 2002/07/04 00:59:25 blaze
|
||||
// moved the kick counter for stats to a more accurate spot.
|
||||
//
|
||||
|
@ -245,11 +248,17 @@ qboolean JumpKick(gentity_t * ent)
|
|||
kickSuccess = qtrue;
|
||||
|
||||
// JBravo: no kicking teammates while rounds are going
|
||||
if (g_gametype.integer == GT_TEAMPLAY) {
|
||||
if (g_gametype.integer >= GT_TEAM) {
|
||||
//Makro - client check here
|
||||
if (traceEnt->client != NULL && ent->client != NULL) {
|
||||
// TP
|
||||
if (ent->client->sess.sessionTeam == traceEnt->client->sess.sessionTeam &&
|
||||
level.team_round_going) {
|
||||
level.team_round_going && g_gametype.integer == GT_TEAMPLAY) {
|
||||
return qfalse;
|
||||
}
|
||||
// CTF
|
||||
if (ent->client->sess.sessionTeam == traceEnt->client->sess.sessionTeam &&
|
||||
g_gametype.integer == GT_CTF) {
|
||||
return qfalse;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue