View Single Post
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 01-18-2011 , 23:03   Re: [ANY] Dead All Talk
Reply With Quote #3

Fixed.. this is the code I had to change in the gag.sp file within the scripting/basecomm/ directory:

PHP Code:
PerformMute(clienttarget)
{
        
g_Muted[target] = true;
        if (
GetConVarInt(g_Cvar_Deadtalk) == 1)
        {
                
// set overrides so the client cannot talk to anyone
                
for (new Pidx 1Pidx <= MaxClientsPidx++)
                {
                        if ((
Pidx != target) && IsClientInGame(Pidx))
                        {
                                
SetListenOverride(PidxtargetListen_No);
                                
//g_ChangedListener[Pidx][target] = Bool:true;
                        
}
                }
        }
        else
        {
                
SetClientListeningFlags(clientVOICE_MUTED);
        }
        
LogAction(clienttarget"\"%L\" muted \"%L\""clienttarget);
}

PerformUnMute(clienttarget)
{
        
g_Muted[target] = false;
        if (
GetConVarInt(g_Cvar_Deadtalk) == && IsPlayerAlive(target))
        {
                
//SetClientListeningFlags(target, VOICE_LISTENALL);
                
SetClientListeningFlags(targetVOICE_NORMAL);
                new 
clientTeam GetClientTeam(target);
                for (new 
idx 1idx <= MaxClientsidx++)
                {
                        if ((
idx != target) && IsClientInGame(idx) &&
(
GetClientTeam(idx) != clientTeam))
                        {
                                
SetListenOverride(idxtargetListen_Yes);
                                
//g_ChangedListener[idx][client] = Bool:true;
                        
}
                }
        }
        
// if they're dead then wait till next round to unmute them
        
else if (GetConVarInt(g_Cvar_Deadtalk) == && !IsPlayerAlive(target))
        {
                
SetClientListeningFlags(targetVOICE_TEAM);
        }
        else
        {
                
SetClientListeningFlags(targetVOICE_NORMAL);
        }

        
LogAction(clienttarget"\"%L\" unmuted \"%L\""clienttarget);

databomb is offline