Garry's Mod

Garry's Mod

TTT 4 Buttons a5
10 Comments
rendann 13 Jul, 2022 @ 4:36pm 
hi duncan im duncan
wget  [author] 4 Jul, 2022 @ 11:28am 
bspzip i mean
wget  [author] 4 Jul, 2022 @ 6:09am 
as a note, if you want to check the lua code for this map, you have to use bspsrc to unpack it first since the bsp file is compressed
interpolmostwanted 4 Jul, 2022 @ 4:12am 
fair enough actually
wget  [author] 3 Jul, 2022 @ 9:27pm 
@mxusoleum
if you actually wanted to protect your server, you wouldn't disable the lua_run entity altogether

it would be wiser to just not use a workshop collection at all, just manually installing and downloading addons from the workshop and checking their code for anything malicious

messing with the lua_run entity isn't gonna help if you're still having your server automatically take updates from the workshop, it's just a useless measure by server owners that don't know what they're doing
interpolmostwanted 3 Jul, 2022 @ 3:08pm 
"because you're a coward"
Nothing cowardly in preventively protecting your server from malicious scripts
Malivil 15 May, 2022 @ 5:17am 
It works perfectly! Thanks so much for taking the time to talk to me and push out a fix. I really appreciate it =)
wget  [author] 14 May, 2022 @ 8:21pm 
should be fixed for Custom Roles now, thanks!
wget  [author] 14 May, 2022 @ 7:31pm 
@Malivil the map's script uses Player:IsActiveTraitor() to check if a player is a traitor or not (it works with ttt2)

i didn't use the ttt_logic_role entity because it ignores the caller entity's existence (since the renowned genius garry newman's massive bulging brain decided that ENTITY:TriggerOutput doesn't need to include the caller)

without being able to use the caller entity, i would need to have a separate ttt_logic_role for each button (yes i was too lazy to just make 4 of them)

idk why Player:IsActiveTraitor() wouldn't work for Custom Roles, but if it's not possible to fix on your end i guess i'll just use ttt_logic_role
Malivil 14 May, 2022 @ 2:23pm 
Hey, I'm one of the developers of Custom Roles for TTT and I noticed today while playing this map that the buttons only work for vanilla roles, not any of the custom ones that were added. I'm guessing you are executing a script when the button is pressed which is checking for the specific roles or something like that.

I imagine TTT2 would have the same problem, though I haven't tested.

Is it possible to change them to use the ttt_logic_role or ttt_traitor_check entities instead? Doing that would make our custom roles work with the buttons.

If it's not possible to use those entities, can I help adjust the script so it will work for our roles (and possibly TTT2 as well)?