Garry's Mod

Garry's Mod

评价数不足
TTT Randomat 2.0 - It's Duncan! Event
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 卡通, 快乐
文件大小
发表于
更新日期
5.132 KB
2020 年 2 月 25 日 上午 4:12
2020 年 5 月 30 日 上午 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
2020 年 5 月 29 日 下午 12:16
Upcoming revamp of the mod
Legendahkiin
23 条留言
Legendahkiin  [作者] 2021 年 1 月 28 日 上午 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 2021 年 1 月 27 日 下午 6: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 2020 年 10 月 9 日 下午 1:40 
Your addon dosnt download a local GMA file. But thank you I found a different method to get the files
Legendahkiin  [作者] 2020 年 10 月 9 日 下午 1: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 2020 年 10 月 9 日 上午 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  [作者] 2020 年 8 月 5 日 上午 4:45 
@Malivil Nice, hopefully the Yogs start using it then lol
Malivil 2020 年 8 月 4 日 下午 1: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  [作者] 2020 年 8 月 4 日 下午 1: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 2020 年 8 月 4 日 上午 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 2020 年 5 月 30 日 下午 2:22 
cool thx