View Single Post
Old 07-30-2006, 09:57 PM   #83
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
This code in G_SayTo doesn't really work and it is kinda pointless to disable chat, it would make more sense to write something better that disables the voice chat instead.

Code:
if (g_gametype.integer == GT_SIEGE &&
		ent->client && (ent->client->tempSpectate >= level.time || ent->client->sess.sessionTeam == TEAM_SPECTATOR) &&
		other->client->sess.sessionTeam != TEAM_SPECTATOR &&
		other->client->tempSpectate < level.time)
	{ //siege temp spectators should not communicate to ingame players
		return;
	}
if you still use the base method of voice_cmd add this in Cmd_VoiceCommand_f:

Code:
	if ( g_gametype.integer == GT_SIEGE && 
			ent->client->tempSpectate >= level.time ) {
		return;
	}
otherwise add it to G_Voice.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,