Garry's Mod

Garry's Mod

评价数不足
[TTT/2] Disguiser for Custom Playermodels
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐
文件大小
发表于
更新日期
7.476 KB
2021 年 9 月 16 日 下午 10:22
9 月 6 日 下午 6:57
18 项改动说明 ( 查看 )

订阅以下载
[TTT/2] Disguiser for Custom Playermodels

在 The Stig 的 1 个合集中
The Stig's TTT Mod List
307 件物品
描述
Makes the default TTT disguiser work with custom playermodels.

It now gives you a random player's model when you enable the disguise!


ttt_disguiser_disable_for_spy_role 1
Whether the Spy role from Custom Roles for TTT should be unable buy and use the disguiser

ttt_disguiser_purchase_message 1
Whether the 'Press numpad enter' message is shown on purchase
热门讨论 查看全部(1)
0
2024 年 8 月 15 日 上午 10:03
Name while i disguise
Masaki.K
7 条留言
Nikey 2024 年 6 月 16 日 上午 3:55 
Yes, now everything works as intended and thanks for the Convar addition:selike:
The Stig  [作者] 2024 年 6 月 16 日 上午 3:31 
@Nikey So the key bit of information I was missing was TTT2 also has a role called the Spy, https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1683708655 so that's why I couldn't reproduce the error with just TTT2 base installed.

So my check for if the Spy role existed was still triggering, and TTT2 borks anything to do with passive items, so it didn't like me trying to access the EquipmentItems table where passive items are normally stored. Should be fine now I'm explicitly checking for the Custom Roles version of the Spy role.

I also added ttt_disguiser_purchase_message 0 which should disable the purchase messages.
Nikey 2024 年 6 月 15 日 下午 5:35 
You can now buy the TTT2 - Passives again. But the Error at the beginning of the round persists.
Oh and can you add a convar, so the Text (After Purchase) of the Disguiser can be disabled?

[TTT2 (Base) - v0.13.2b]
[TTT2][WARNING] You are using an add-on that is trying to access an unsupported var ('26'). This will lead to errors!

1. __index - gamemodes/terrortown/gamemode/shared/sh_equip_items.lua:52
2. fn - lua/autorun/disguiser_custom_playermodels.lua:10
3. Run - lua/ulib/shared/hook.lua:109
4. RoundStateChange - gamemodes/terrortown/gamemode/client/cl_main.lua:521
5. func - gamemodes/terrortown/gamemode/client/cl_main.lua:621
6. unknown - lua/includes/extensions/net.lua:38
The Stig  [作者] 2024 年 6 月 15 日 上午 5:30 
@Nikey Not quite, looks like this only affects passive items made for TTT2, e.g. radar still works.

Have to check if the passed ID is a string or not because TTT2 adds new passive items, with strings for IDs instead of numbers... See if it's working for you now after the latest update.
Nikey 2024 年 6 月 10 日 上午 9:10 
While it does indeed work, it causes Issues with the TTT2 - Base, preventing you from buying any passive Traitoritem. It will give you the following Errormessage when, you try to buy a Passive Item (Like No Prop Damage) or when the Round starts. Woulb be nice if you could fix it. Eventhough the Addon is pretty old by now.

[TTT2][WARNING] You are using an add-on that is trying to access an unsupported var ('26'). This will lead to errors!

1. __index - gamemodes/terrortown/gamemode/shared/sh_equip_items.lua:52
2. fn - lua/autorun/disguiser_custom_playermodels.lua:10
3. Run - lua/ulib/shared/hook.lua:109
4. RoundStateChange - gamemodes/terrortown/gamemode/client/cl_main.lua:521
5. func - gamemodes/terrortown/gamemode/client/cl_main.lua:621
6. unknown - lua/includes/extensions/net.lua:38
The Stig  [作者] 2022 年 4 月 9 日 上午 2:18 
@Selbod Try running TTT without any mods at all, it should be available for traitors to buy.
Selbod 2022 年 4 月 8 日 下午 2:24 
Does this work with the advanced disguiser too? Because I cannot find a 'default' version...