Garry's Mod
Μη επαρκής αριθμός βαθμολογιών
TTT Randomat 2.0 - It's Duncan! Event
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Cartoon, Fun
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
5.132 KB
25 Φεβ 2020, 4:12
30 Μαϊ 2020, 8:37
5 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
TTT Randomat 2.0 - It's Duncan! Event

ΠΕΡΙΓΡΑΦΗ
Randomat Addon that changes everyone's model to Duncan's
(see linked Workshop model)

When activated, the Randomat:
1. Selects a random player
2. Loops through every player
3. Checks if they're alive and not in spectator
4. Sets their viewmodel height (if it's different from normal viewmodel heights)
5. Changes their model to the selected player's model
6. Sets everyone to be disguised (thus removing their names) making everything more confusing!
(hovering over people does not show their names because of the TTT disguise tool)

Note: Traitors can still see disguised people's names, because that's how the disguiser works as a traitor.

Any feedback is welcome.

Configuration / ConVars
You can set if people's names should be disguised with
randomat_duncanevent_disguise 0/1
(0 = no disguise, 1 = disguise)

I haven't worked this into the Randomat 2.0 ULX menu (since I'm not entirely sure how), so if you want to disable it you can disable it with:

ttt_randomat_duncanevent 0/1
(0 = off, 1 = on)


How to trigger?
Currently it can NOT be manually triggered, but it gets triggered by the Randomat weapon (the one detectives buy) and the auto-randomat.
But if you want to enable it, you can just disable all other Randomat events and re-enable the Duncan Event in console (ttt_randomat_duncanevent 1)
and then trigger a randomat.

There's a mod for allowing support with the ULX menu, I'll get around to using it.

Models not changing?
It might be an issue with the Enhanced Player Model Selector.
I've tried to fix it as much as I can, but if models still aren't changing then it might be an issue with a convar. Open your console and check if
cl_playermodel_selector_force
is set to 0.
If it's not, models can't be changed. Setting it to 0 allows scripts to set models, but certain gamemodes might reset your model everytime a new round starts. I've tried to avoid this by setting the value back to 1 when the event ends, so that the gamemodes won't be allowed to reset models.

Disguised player names after the round is over?
This really shouldn't happen, as TTT resets the disguise state by itself.
In the off case that it is still happening, I'd honestly suggest removing the addon until I fix it lol.

While this should set everyone to not be disguised anymore, if that doesn't work, either try restarting the server or restarting the round (ttt_roundrestart). If people are experiencing problems with this (disguise state not resetting) then I might add a function to reset it (just to be safe).

Incompitabilities
Currently the disguise function does not work with Custom Roles for TTT. I'm looking into fixing it.
Δημοφιλείς συζητήσεις ΠΡΟΒΟΛΗ ΟΛΩΝ (1)
0
29 Μαϊ 2020, 12:16
Upcoming revamp of the mod
Legendahkiin
23 σχόλια
Legendahkiin  [Δημιουργός] 28 Ιαν 2021, 1:45 
@The Stig sure, feel free! I'm not really doing much modding nowadays, so feel free to modify it however you want.
The Stig 27 Ιαν 2021, 18:32 
@Legendahkiin Hey, is it OK if I include a modified version of your randomat in my randomat mod? Of course I'll give you credit.
Boz 9 Οκτ 2020, 13:40 
Your addon dosnt download a local GMA file. But thank you I found a different method to get the files
Legendahkiin  [Δημιουργός] 9 Οκτ 2020, 13:07 
@Bozy.dev I believe you can use a gma extractor pretty easily and it gives you the gma file for free modification, here's a steam guide:

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=431638110
Boz 9 Οκτ 2020, 9:39 
Hello, is there a possibility that this code could be shared in a local gma file? I am trying to make a edited version of this for a ttt server
Legendahkiin  [Δημιουργός] 5 Αυγ 2020, 4:45 
@Malivil Nice, hopefully the Yogs start using it then lol
Malivil 4 Αυγ 2020, 13:18 
It's my own version based on Noxx's.

I changed a bunch of things, added a few things, and fixed a bunch of things. I have a page of changes on my GitHub linked from my version's workshop page.
Legendahkiin  [Δημιουργός] 4 Αυγ 2020, 13:09 
@Malivil Is your version the official one or a separate one? Just wondering. Otherwise, nice work! Would be really cool to have this actually function as intended on all servers.
Malivil 4 Αυγ 2020, 11:22 
btw Legendahkiin, the reason why the disguise doesn't work in Custom Roles for TTT is something is missing in Noxx's implementation.

My version fixes it so disguise works again.
River Troll Hag 30 Μαϊ 2020, 14:22 
cool thx