Garry's Mod

Garry's Mod

70 个评价
[TTT/2] Clairvoyancy [ITEM]
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
70.950 KB
2017 年 6 月 5 日 上午 12:06
2020 年 11 月 8 日 下午 12:02
15 项改动说明 ( 查看 )

订阅以下载
[TTT/2] Clairvoyancy [ITEM]

在 dhkatz 的 2 个合集中
LAN Party
208 件物品
[TTT] Chromozone T/D Items
50 件物品
描述
NOTICE: This Addon only works for the "Trouble in Terrorist Town" and "TTT2" gamemodes.

Features
This equipment is available for the Detective in the Equipment menu. When somebody dies, the detectives who brought the Clairvoyant Powers (and are far enough away) will receive a vision of the dead body for 2 seconds (configurable via ConVars) and afterwards they have a 50% chance (configurable via ConVars) of the body being highlighted for them.

Be careful though! This power comes at a cost. You cannot control when your visions happen, so if someone dies somewhere when you're in danger, well you're in for the ride. Too many people dying at once will cause a sensory overload and hurt you as well! (Configurable via ConVars)

Detectives killing people will NOT trigger the perk.

After you've bought the item in the shop, an icon shows up on the left hand side of your screen to indicate, that the perk is active.

Includes an individual .vmt and .vtf shop icon.

Compatibility
This addon is compatible with all the other perk addons by people such as Gamefreak and Zaratusa

ConVars
- ttt_clairvoyant_loadout (def: 0) - Should Detectives have Clairvoyant Vision in their loadout?
- ttt_clairvoyant_duration (def: 2) - The duration for the clairvoyant vision in seconds.
- ttt_clairvoyant_distance (def: 1800) - The minimum distance from the body to trigger the vision. This is to prevent visions during combat!
- ttt_clairvoyant_camera_distance (def: 150) - The distance from the dead body and the camera when having a vision.
- ttt_clairvoyant_outline_chance (def: 0.25) - Chance to see an outline of the body (0 - 1).
- ttt_clairvoyant_outline_duration (def: 20) - Time a highlighted body will be visible (in seconds).
- ttt_clairvoyant_overwhelm (def: 1) - Enable/disable the overwhelm feature.
- ttt_clairoyant_overwhelm_threshold (def: 2) - Set the minimum threshold for triggering the overwhelm.

Note: After changing these values you may have to restart your map/server. Setting 'ttt_clairvoyant_outline_chance' to 0 will disable outlining and 1 will always highlight.

Server Infos
Add it to your server by following this guide: http://wiki.garrysmod.com/page/Server/Workshop
You can add "clairvoyant_perk_name" and "clairvoyant_perk_desc" to your translation file, to translate this addon.

Source
The whole source code can be found on GitHub[github.com], feel free to contribute. The original addon was taken from here (but modified extensively!). I agree to remove this item if the Author or Valve wishes to.

Thanks for reading, enjoy and have fun!
热门讨论 查看全部(2)
8
2020 年 11 月 9 日 上午 12:39
Bug Report
dhkatz
1
2018 年 1 月 14 日 下午 7:34
Suggestions
dhkatz
26 条留言
Voxel | Julia 6 月 21 日 下午 1:01 
can you give the item a red background in the traitor shop (that usually indicates passive items that dont take up an inventory slot, which this is, if i remember correctly)
dhkatz  [作者] 2023 年 11 月 5 日 上午 1:14 
No, this is not compatible with DarkRP. I don't ever plan to add compatibility with non-TTT gamemodes. Too much work for this one.
Zealot Xenon Zero 54 "zxz54" 2022 年 5 月 5 日 下午 12:10 
А есть такой же для DarkRP ?
Malivil 2020 年 11 月 8 日 上午 10:31 
Great, thanks =)
dhkatz  [作者] 2020 年 11 月 8 日 上午 10:24 
The github link has also been updated.
dhkatz  [作者] 2020 年 11 月 8 日 上午 10:18 
The bug should be fixed now, thank you
Malivil 2020 年 11 月 8 日 上午 5:24 
This is erroring on non-TTT2 since the last update.

Also the GitHub link in the description is broken.

[[TTT/2] Clairvoyancy [ITEM]] gamemodes/terrortown/entities/entities/ttt_clairvoyancy_perk.lua:37: attempt to index a nil value
1. unknown - gamemodes/terrortown/entities/entities/ttt_clairvoyancy_perk.lua:37
dhkatz  [作者] 2020 年 11 月 7 日 下午 5:28 
Add a helpful timer to the TTT2 HUD icon to let you know how long you will see the outline of a corpse.

Added convars to allow the enabling/disabling of overwhelming and setting the overwhelm threshold. (Overwhelming is the feature where you take damage if too many people die within a short span.)
dhkatz  [作者] 2020 年 11 月 7 日 下午 4:37 
Added support for TTT2, including ULX menu support for easily configuring the addon.

Fixed a very longstanding bug regarding the outline timer.

If you encounter any new bugs let me know.
Marid 2020 年 8 月 25 日 上午 7:43 
This would be amazing as a Detective variant role