Jump to content

Prevent cheating through GuiShapeNameHud


Duion

Recommended Posts

I have an issue with my game and there is a possible cheat based on the GuiShapeNameHud. The cheat goes as follows, for spectator mode I have a TargetHud that uses the GuiShapeNameHud class to display names above players, so they can more easily be spotted, the problem is, since it is just a GUI it is client side and can be enabled by a client through the console in regular game, giving him an advantage since other players are better visible with the name tags.


Torque3D has shape names enabled by default and if you do not want them you can just hide them, but through console commands etc people can bring hidden GUIs back.


Here is where I enable it for spectator HUD mode: https://github.com/Duion/Uebergame/blob/master/scripts/client/commands.cs#L112


So what would be the best way to solve that issue? Would it be enough to remove the TargetHud from the game, or could someone just copy the code back in and it will work, since it is based on the C++ code of the GuiShapeNameHud? Or would it be possible to move the command to server side, so that the server has to verify the HUD mode the client is in?

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...