Prevent cheating through GuiShapeNameHud

There are no stupid questions, just stupid answers.
2 posts Page 1 of 1
Posts: 1277
Joined: Sun Feb 08, 2015 1:51 am
  by Duion » Wed Sep 19, 2018 12:43 am
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: ... ds.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?
Posts: 226
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Fri Dec 07, 2018 9:17 pm
You should no only be able to make sure is server side only, but add a super-user check to it if you want to maintain access to it as a server admin thing. The only issue "simply" becomes an issue of protecting the superuser access ability.
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests