Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
ErikMav94
Member
Join Date: Jan 2012
Location: ARG
Old 11-14-2014 , 17:29   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #241

when the dead body is identified, the sprite "g_iCallSprite" does not show more

ttt_dna_system

PHP Code:
public client_PostThink(id)
{
    if(!
is_user_alive(id) || ttt_get_special_state(id) != DETECTIVE || g_fWaitTime[id] + 0.1 get_gametime())
        return;

    
g_fWaitTime[id] = get_gametime();
    static 
iFloat:origin[3];
    for(
1<= g_Max_Playersi++)
    {
        if(
ttt_get_bodydata(iBODY_CALLD) == && is_valid_ent(ttt_get_bodydata(iBODY_ENTID)))  //  example: && !ttt_get_playerdata(deadbody, PD_IDENTIFIED)
        
{
            
entity_get_vector(ttt_get_bodydata(iBODY_ENTID), EV_VEC_originorigin);
            
create_icon_origin(idoriging_iCallSprite35);
        }
    }

    if(!
g_iTracing[id])
        return;

    
create_icon_origin(idg_fTracingOrigin[id], g_iTraceSprite35);

I do not know if it's good as is the example
ErikMav94 is offline
Send a message via Skype™ to ErikMav94
KaranMohadkar
Senior Member
Join Date: Oct 2012
Location: Reality !
Old 11-15-2014 , 11:54   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #242

Quote:
Originally Posted by GuskiS View Post
I'm making it more like real TTT, not changing fundemental things.
Your example is quite wrong because 1) detective can will be chosen if there are atleast 8 players(default), 2) if you change that cvar, then you would need 4 credits, which quite a lot, 3) round won't go that long.
your mod your choice + i am not a coder so i can make something like this for myself !
all i can do is just post suggestions/request ...
__________________
KaranMohadkar is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 11-15-2014 , 19:57   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #243

Quote:
Originally Posted by ErikMav94 View Post
when the dead body is identified, the sprite "g_iCallSprite" does not show more

ttt_dna_system

PHP Code:
public client_PostThink(id)
{
    if(!
is_user_alive(id) || ttt_get_special_state(id) != DETECTIVE || g_fWaitTime[id] + 0.1 get_gametime())
        return;

    
g_fWaitTime[id] = get_gametime();
    static 
iFloat:origin[3];
    for(
1<= g_Max_Playersi++)
    {
        if(
ttt_get_bodydata(iBODY_CALLD) == && is_valid_ent(ttt_get_bodydata(iBODY_ENTID)))  //  example: && !ttt_get_playerdata(deadbody, PD_IDENTIFIED)
        
{
            
entity_get_vector(ttt_get_bodydata(iBODY_ENTID), EV_VEC_originorigin);
            
create_icon_origin(idoriging_iCallSprite35);
        }
    }

    if(!
g_iTracing[id])
        return;

    
create_icon_origin(idg_fTracingOrigin[id], g_iTraceSprite35);

I do not know if it's good as is the example
I don't understand what you ment by that code :/

Quote:
Originally Posted by KaranMohadkar View Post
your mod your choice + i am not a coder so i can make something like this for myself !
all i can do is just post suggestions/request ...
Yea, thanks for your suggestions I made some, but this will remain as it is
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
bsparty
Member
Join Date: Sep 2014
Location: India
Old 11-17-2014 , 12:36   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #244

Nice idea it will really change the aspect of the game
Quote:
Originally Posted by KaranMohadkar View Post
add this feature its quite fun
if a traitor gets hit with it .. he gets message now you are glowing and after 6/custom sec you have stopped glowing ...

it may happen no one sees traitors name and he escapes/hide ..... and then can come out and have fun and kill ..

if the innocnets keeps glowing like that and there are only 4 players ( 1 detective , 2 innocent glowing , its obviously the other guy so ... for this this feature is must )

----

if any i other i remember i will let you know !
bsparty is offline
ErikMav94
Member
Join Date: Jan 2012
Location: ARG
Old 11-18-2014 , 01:15   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #245

this sprite I mean

IMAGE

if the body was identified, the sprite is removed
ErikMav94 is offline
Send a message via Skype™ to ErikMav94
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 11-18-2014 , 04:52   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #246

Oh yea, after looking at that code carefully, I understood what you meant. I have fixed it in my next release, but if you want it badly right now then:
Open ttt_dead_body.sma, search for:
Quote:
public used_use(id, ent)
after:
Quote:
ttt_set_playerdata(bodyowner, PD_IDENTIFIED, true);
ttt_set_playerdata(bodyowner, PD_SCOREBOARD, true);
add:
Quote:
g_iBodyInfo[bodyowner][BODY_CALLD] = false;
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 11-18-2014 at 04:53.
GuskiS is offline
KaranMohadkar
Senior Member
Join Date: Oct 2012
Location: Reality !
Old 11-18-2014 , 15:06   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #247

1.8.2 stable release plz
__________________
KaranMohadkar is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 11-18-2014 , 16:42   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #248

Having crashes with body detection. (I think that is because of it).
When I will(hopefully I will) figure out, I'm gonna rework a bit logging system, then release.
So basicly, what is left for me to do is:
*)Fix that bug.
*)Rework/improve logging.
*)Test knife and HP station.

While finding/fixing that bug, I will improve that logging. It takes time to test in full server, it happens randomly so takes more time :/

Sorry for that wait time. It has been more than month since last update :/
When this update comes out, there won't be much new things, but a lot of fixes, readded 1.8.2 support, your suggested things and other.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
ErikMav94
Member
Join Date: Jan 2012
Location: ARG
Old 11-19-2014 , 13:54   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #249

with the command "vote" can know who is traitor

"You can only vote for players on your team"

is easy to block, it's just a suggestion if you want to add to the mod
ErikMav94 is offline
Send a message via Skype™ to ErikMav94
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 11-19-2014 , 16:44   Re: [v2.4.2, October 1] Trouble in Terrorist Town mod
Reply With Quote #250

Sweet, thanks, will add it
__________________
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 03:14.


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