• Combating Hackers
    13 replies, posted
Hey guys! I am apart of a fairly popular TTT server and I am seeking assistance. Now recently with the rise of hacking in this game we've been trying to combat it as best as we can, whether it be Snapper, or randomly spectating players. The problem I am having is with "Spectate Detectors" where they can see who is spectating them and disable their hacks. Now i'm definitely amateur at LUA i'm trying to figure out if there is a way to devoid the function they are using -GetObserverTarget- for example lets say I have a !ghost command, now this command would hide me from their "Spectate Detector" how would I go about doing this? Is it even possible to do this? If not what should I try doing? Thanks guys
You can easily fix this by disabling transmission state of dead people with alive people. (I'm pretty sure at least - it shouldn't update any networked variables that way) Entity:SetPreventTransmit Use this on player death and update it when they respawn.
Thanks buddy I appreciate it
Hmm, I really hope you can figure this out this would help out of a lot of people if it would be possible.
I don't think that function works on players, cause I have tried using that before for something else.
if you figure out a way to prevent pvs between players it will work.
According to the wiki page (and my understanding) it has to be: for _, ply in pairs(player.GetHumans()) do calling_ply:SetPreventTransmit(ply, true) end Not ply:SetPreventTransmit(ply, true) Because it doesn't make sense? And you don't need your player argument in the function, because you are ghosting caller and not target. BTW, please, let it be target_ply and not just ply, follow the default ULX code style (you also have an undefined variable target_ply on line 3)
I am fairly new to lua, and just did what made sense to me
update? and also if you could make it Serverguard compatible you would have a great little plugin.
So I made a working version, now I have another issue, when I !ghost someone if somebody is spectating this person at the time, it will say they are spectating them until I !unghost them is there a way to clear the data upon !ghost'ing them?
You could also use a GM:SetupPlayerVisibility hook with a GM:CalcView to make your own spectating system. It would probably have to be 3rd person though.
You should take a look into GitHub Falcos soectate. I don’t think there is anyway for someone to detect who you are spectating with that.
Hey, that's an implementation of what I'm talking about. Looks nice!
Sorry, you need to Log In to post a reply to this thread.