ZacharyHinds / ttt2mg-randomat

2 stars 4 forks source link

Redesign Shut Up!-Minigame #18

Open Pythagorion opened 2 years ago

Pythagorion commented 2 years ago

I've changed the minigame's logic to a TTT2-Hook that's more performant than a Think hook combined with a ConCommand. It's not tested yet, but should work as I used this hook like this in another script as well. I didn't know that this hook exists until Tim released the hook TTT2 API docu two weeks ago.

You could also run this hook on the client, too. This would result in the voice chat UI element not being drawn on the client side in the first place. But I haven't done that for now. As long as the hook only runs on the server, at least the voice chat is killed.

More details about the hook, you can find here: https://api-docs.ttt2.neoxult.de/hook/GM/shared/GM:TTT2CanUseVoiceChat