Garry's Mod

Garry's Mod

评价数不足
[TTT2] Haunted [ROLE]
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
362.802 KB
2021 年 11 月 13 日 下午 10:44
7 月 30 日 下午 9:09
6 项改动说明 ( 查看 )

订阅以下载
[TTT2] Haunted [ROLE]

在 blackmagicfine 的 1 个合集中
TTT2 Mods For BMF's Server
96 件物品
描述
The first rule of being a Traitor is to not get caught. The second rule is to kill your witnesses as soon as possible, because no one gets the first rule right. The third rule is to have a good back-up plan, because everyone makes mistakes and leaves bloody messes. The fourth and most important rule is to carefully read over every single word on your contract with the Devil, because no traitor worth their salt comes up with a good back-up plan.

You have to use TTT2 in order to use this role. Additionally using ULX for TTT2 is recommended. Report bugs concerning this role here[github.com] and submit new role ideas here[github.com]. A list of all currently available roles can be found here.

Discord: https://discord.gg/Npcbb4W
Source: https://github.com/AaronMcKenney/ttt2-role_haunt




The Haunted is a traitor role. If they are killed, they will haunt their killer. Their killer will leave a trail of smoke, and if they are killed The Haunted shall come back to life. As this ability is quite powerful, the Haunted does not have access to a shop by default.



Convars are variables that are introduced to allow server owners to customize the gameplay without changing the code. There are always a handful of convars automatically created by TTT2, that define the spawn parameters of this role and are found in ULX. Additionally there might be some role specific convars, which have to be set in the server config file.

Normal Role Convars (also found in ULX):
# enable or disable this role ttt_haunted_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_haunted_pct [0.0..1.0] (default: 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_haunted_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_haunted_random [0..100] (default: 30) # the amount of players needed for this role to spawn ttt_haunted_min_players: [0..n] (default: 6)

Rolespecific Convars:
# Who should see announcements about hauntings? ttt2_haunted_declare_mode [0..2] (default: 2) # 0: Don't declare the Haunted's status. # 1: Declare the Haunted's status to every player. # 2: Declare the Haunted's status to only traitors # How much health should the Haunted revive with? ttt2_haunted_revive_health [0..n] (default: 50) # Should players leave a trail of smoke if they are currently being haunted? ttt2_haunted_smoke_mode [0/1] (default: 1) # Should the Haunted respawn at worldspawn or their body? ttt2_haunted_worldspawn [0/1] (default: 0)

--
Credits:
BlackMagicFine: creator of this role addon
Mineotopia: designer of the role thumbnail
KindPNG Haunted House Symbol[www.kindpng.com]: role icon created by modifying this image
Wasted: designer of the Spectre, which this role reuses a lot of code from
Haxray: came up with the idea for the Haunted
5 条留言
Buttercup 7 月 30 日 下午 11:28 
thanks! I appreciate the help :GDNormal::cupup:
blackmagicfine  [作者] 7 月 30 日 下午 9:15 
@Buttercup: Ok... it should be fixed now. Essentially, there's this parameter that the F1 Menu doesn't currently allow for the admin to modify called "preventFindCredits". I think many addon creators set this to true for non-shopping roles (the parameter predates custom shops I think?). I went ahead and set it to false as it only allows looting credits off corpses if the admin gives the role a shop.

I went ahead and asked the TTT2 Discord about potentially allowing this to be controlled via F1 Menu... but development is slow, so we'll see I guess.
Buttercup 7 月 30 日 下午 7:46 
Sorry if I didn't explain this correctly. I've already made a custom shop using the F1 menu. (I personally don't use the give credits for % of dead enemies just to keep credits simple and have all my traitors spawn with 0 at the start for balancing). all other custom roles (except for the wrath which I have also messaged the creator about) are able to loot credits off of dead bodies when they have a shop but the Haunted doesn't seem to be able to loot them by default. Here's a video of the issue https://youtu.be/KojSeUIgUMY
blackmagicfine  [作者] 7 月 29 日 下午 7:43 
@Buttercup: Hey sorry for the late response. All roles can be given a shop via the F1 Menu's "Edit Shops" section (available to admin). Then, under "Role Settings" you can alter Role Equipment Credits (namely, starting credits, and if they are awarded for % of players dead or killing Detectives). I believe that all shopping roles will loot credits off dead bodies, so I think you just need to set up the Haunted's shop and you should be good to go... though you may need to change maps for the changes to take effect.
Buttercup 7 月 10 日 上午 3:24 
Nice role! I know it says shop is disabled by default for being too powerful but I still want them to have a shop and am having trouble getting them to loot credits off of corpses even after making a custom shop. Do you think you could take a look at this?