Raised This Month: $32 Target: $400
 8% 

[v2.5.2, March 19] Trouble in Terrorist Town mod


Post New Thread Reply   
 
Thread Tools Display Modes
rlz
Junior Member
Join Date: Nov 2016
Location: Slovakia
Old 11-30-2016 , 08:39   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #581

No I didn't, I uploaded it on server like it was in the package. :/
rlz is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 12-01-2016 , 09:40   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #582

Either round_terminator.amxx or timer_controller.amxx is not working properly. Which would mean either you have changed plugins file or haven't installed orpheu correctly.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 12-02-2016 , 15:33   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #583

Dead detective can talk to alive detective (is this a bug? how can i fix this?)

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <engine>
#include <ttt>

new g_iSpecialTalking[33][PLAYER_CLASS], g_pMsgTeamInfo;

public 
plugin_init()
{
    
register_plugin("[TTT] Voice"TTT_VERSIONTTT_AUTHOR);

    
RegisterHamPlayer(Ham_Killed"Ham_Killed_post"1);
    
register_forward(FM_Voice_SetClientListening"Forward_SetClientListening_pre"0);

    
register_clcmd("+specialvoice""cmd_voiceon");
    
register_clcmd("-specialvoice""cmd_voiceoff");

    
g_pMsgTeamInfo get_user_msgid("TeamInfo");
}

public 
ttt_gamemode(gamemode)
{
    if(
gamemode == GAME_PREPARING || gamemode == GAME_RESTARTING)
    {
        new 
numid;
        static 
players[32];
        
get_players(playersnum);
        for(--
numnum >= 0num--)
        {
            
id players[num];
            
g_iSpecialTalking[id][PC_TRAITOR] = false;
            
g_iSpecialTalking[id][PC_DETECTIVE] = false;
        }
    }
}

public 
Ham_Killed_post(victimkillershouldgib)
{
    if(
ttt_return_check(victim))
        return;

    
g_iSpecialTalking[victim][PC_TRAITOR] = false;
    
g_iSpecialTalking[victim][PC_DETECTIVE] = false;
}

public 
Forward_SetClientListening_pre(receiversenderbool:listen)
{
    if(!
is_user_connected(receiver) || !is_user_connected(sender) || sender == receiver)
        return 
FMRES_SUPERCEDE;

    if(
get_speak(sender) == SPEAK_MUTED)
    {
        
engfunc(EngFunc_SetClientListeningreceiversenderfalse);
        return 
FMRES_SUPERCEDE;
    }

    new 
restate ttt_get_playerstate(receiver), sestate ttt_get_playerstate(sender);
    switch(
is_user_alive(sender))
    {
        case 
1// ALIVE
        
{
            if(
is_user_alive(receiver))
            {
                if(
g_iSpecialTalking[sender][sestate])
                {
                    if(
sestate == restate)
                        
listen true;
                    else 
listen false;
                }
                else 
listen true;
            }
            else 
listen true;
        }
        case 
0// NOT ALIVE
        
{
            if(
is_user_alive(receiver))
                
listen false;
            else 
listen true;
        }
    }
    
    
engfunc(EngFunc_SetClientListeningreceiversenderlisten);
    return 
FMRES_SUPERCEDE;
}

public 
cmd_voiceon(id)
{
    new 
getstate ttt_get_playerstate(id);
    if(
getstate == PC_TRAITOR || getstate == PC_DETECTIVE)
    {
        
client_cmd(id"+voicerecord");
        
g_iSpecialTalking[id][getstate] = true;
        
voice_check(id0getstate);
    }

    return 
PLUGIN_HANDLED;
}

public 
cmd_voiceoff(id)
{
    new 
getstate ttt_get_playerstate(id);
    if(
getstate == PC_TRAITOR || getstate == PC_DETECTIVE)
    {
        
client_cmd(id"-voicerecord");
        
g_iSpecialTalking[id][getstate] = false;
        
voice_check(id1getstate);
    }

    return 
PLUGIN_HANDLED;
}

stock voice_check(idtypegetstate)
{
    new 
numi;
    static 
players[32];
    
get_players(playersnum);
    for(--
numnum >= 0num--)
    {
        
players[num];
        
//if(id == i) continue;
        
if(getstate == ttt_get_playerstate(i))
        {
            
message_begin(MSG_ONE_UNRELIABLEg_pMsgTeamInfo_i);
            
write_byte(id);
            if(!
type)
                
write_string("SPECTATOR");
            else 
write_string("CT");
            
message_end();
        }
    }

Rivotril is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 12-03-2016 , 06:00   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #584

It is not possible, see
PHP Code:
Forward_SetClientListening_pre -> switch(is_user_alive(sender)) -> case 0// NOT ALIVE 
Which means that when sender is not alive, the code below will be executed. And code in that "case 0" checks if reciever is alive or not. That is the part that determines if you can talk to alive while beeing dead.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 12-06-2016 , 09:38   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #585

server crash, console message
Code:
PM  Got a NaN velocity 0
PM  Got a NaN velocity 1
PM  Got a NaN velocity 0
PM  Got a NaN velocity 1
PM  Got a NaN velocity 0
PM  Got a NaN velocity 1
PM  Got a NaN velocity 0
PM  Got a NaN velocity 1
PM  Got a NaN velocity 0
PM  Got a NaN velocity 1
Rivotril is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 01-13-2017 , 21:05   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #586

Do you guys have a map pack for this?
__________________
Like my clean plugins and work?
Baws is offline
ID12345
Member
Join Date: May 2009
Location: Infront of the computer
Old 01-18-2017 , 05:39   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #587

Is there a way to disable the mod?
ID12345 is offline
Send a message via MSN to ID12345 Send a message via Yahoo to ID12345
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 01-18-2017 , 07:37   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #588

What do you mean by disable?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 03-06-2017 , 01:38   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #589

how do i change the roundtime? mp_roundtime doesn't affect.
Rivotril is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 03-06-2017 , 07:32   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #590

Try setting mp_roundtime before map change.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode