Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.