Garry's Mod

Garry's Mod

Build/PvP Menu
Eli 25 Jun, 2017 @ 5:44pm
"Builders don't have god" glitch
When I began using the addon on my server I noticed that every once in a while there would be an instance where a player somehow miraculously had noclip and could take damage (implying that they were a PvPer with nocliping ability) which shouldn't be possible.

Examining the problem more closely however I noticed that these players couldn't deal damage to other players. I then realized that they are actually builders that don't have god mode enabled rather than PvPers who have noclip.

I also noticed another trend, this rare instance would only happen when a player switched to build while dead. Or when a player first spawns and is spawned killed before they can choose the build mode option. This lead to the death of a lot of players who thought they were in build mode and had god enabled (and a lot of players complaining).

So it seemed that for some reason the game couldn't give god mode to the player while dead. So I did an experiment and while I was dead I used the command !god and then respawned to find that I in fact did not have god mode despite ULX mod claiming I did.

I also tested the mod on a server without ULX to see if it was a problem with ULX not giving users god while they are dead. As it turns out it didn't make a difference. By default in Garry's Mod users cannot be given god while dead.

-----------

So basically to combat this there will have to be something added into the code to only enable god while the user is alive both on the initial spawn fail safe that defaults the user to builder if they bypass the menu, and when the user executes the commands !build
Last edited by Eli; 25 Jun, 2017 @ 5:45pm