actionquake / aq2-tng

Action Quake 2: The Next Generation (including CVS history from SF.net)
http://aq2-tng.sourceforge.net/
5 stars 6 forks source link

matchmode spectator message initial #122

Open mikota opened 1 year ago

mikota commented 1 year ago

Enables server owners to set matchmode message for spectators image

darkshade9 commented 10 months ago

I see what the issue is @mikota, BothTeamsHavePlayers() prototype is not exposed outside of a_team.c, you need to add

qboolean BothTeamsHavePlayers();

in g_local.h, somewhere like line 1403, see how this looks?

//
// g_misc.c
//
void ThrowHead (edict_t * self, char *gibname, int damage, int type);
void ThrowClientHead (edict_t * self, int damage);
void ThrowGib (edict_t * self, char *gibname, int damage, int type);
void BecomeExplosion1 (edict_t * self);
void SP_misc_teleporter_dest(edict_t* ent);

Maybe add a new entry like

//
// a_team.c
//
qboolean BothTeamsHavePlayers();