Garry's Mod

Garry's Mod

TTT_DegrootKeep
 This topic has been pinned, so it's probably important
Riften  [developer] 2 Oct, 2022 @ 11:58am
Give Feedback Here!
Found a bug, or just have an issue with something in the map? Do you suspect something isn't working properly, or did you spot part of the map that you think doesn't look right or would be better if it were different?

Please give all negative feedback here, and I'll try to fix it/improve the map in time. As many problems in as much detail as possible is preferable.

If it's something fundamental to the map's identity, like the general layout not being to your fancy, feedback is still appreciated for future maps even if such changes can't be implemented for this map.
Last edited by Riften; 2 Oct, 2022 @ 11:32pm
< >
Showing 1-2 of 2 comments
Riften  [developer] 2 Oct, 2022 @ 6:01pm 
During a playtesting session with friends, the T trap that strips everybody to melee was not working properly (i.e. one could just swap back to a regular weapon during the time period where this is supposed to be restricted). This is in opposition to the fact that when testing it in singleplayer, it worked as intended.

How the trap works: Firstly it strips everyone of their weapons and then immediately gives them a crowbar, holster and magneto stick, then it sets a boolean to 'true' when it is pressed, and there is a hook added to the 'Think' function that runs a section of code so long as this boolean is true. The Think function is called by the game internally for every single gametick, so many times a second. While it is true, it increments a value until it reaches about 30, and when it is 30 (so as to not run the code every single tick but rather every 30 ticks to save processing), it goes through every entity in the server from 1 to the number of maximum players (because these entities are the players) and sets their active weapon to a crowbar if their active weapon is not already a crowbar, holster or magneto stick. This carries on until 25 seconds later, where the boolean is set to false and none of this happens anymore.

In private singleplayer playtesting this worked. If I picked up a sniper rifle after activating the Trap, I would be switched back to crowbar. In recent playtesting with many friends on a server, however, this was not the case.

I am aware of the issue but don't know what the cause is and thus don't know how to fix it just yet. If the trap similarly doesn't work for you please let me know; the server was having other issues and I want to confirm it wasn't an isolated incident.

After all, 3 credits just to temporarily strip people of their weapons for a fraction of a second is blatantly not worth it and is unintended behaviour.
Last edited by Riften; 2 Oct, 2022 @ 6:03pm
as dumb as this sounds a version with textures already packed in would be extremely helpful because most of the ttt players barely have cs source content installed
< >
Showing 1-2 of 2 comments
Per page: 1530 50