Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Hunch [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
376.741 KB
19 May, 2022 @ 4:38am
1 Change Note ( view )

Subscribe to download
[TTT2] Hunch [ROLE]

Description
A detective with a powerful ability.

You have to use TTT2 in order to use this role.

TTT2 Discord: https://discord.gg/Npcbb4W
Source: Coming soon.




The Hunch is a Detective role that sees the deaths of other players. Once a player dies, their vision is taken over and they see the dead body, but their vision is unclear and can be hard to visualise. If too many players die at once, the Hunch can take damage.

This role is the Clairvoyency item by Doctor, but expanded to be a full role.
It's recommended to uninstall the Clairvoyency item if you have it already from a gameplay standpoint. There should be no code conflicts having both installed.



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_hunch_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_hunch_pct [0.0..1.0] (default: 1.0) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_hunch_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_hunch_random [0..100] (default: 50) # the amount of players needed for this role to spawn ttt_hunch_min_players: [0..n] (default: 8)

Rolespecific Convars:
# Duration of Vision ttt_hunch_vision_duration [1..10] (default: 3) # Minimum Distance of death from Hunch to Trigger Vision ttt_hunch_vision_distance_minimum [1..5000] (default: 500) # Maximum Distance from body to camera in Vision ttt_hunch_vision_camera_distance [1..2000] (default: 150) # Chance an outline spawns around body ttt_hunch_vision_chance [0..1] (default: 0.25) # Duration of the outline ttt_hunch_outline_chance_duration [0..1] (default: 0.25)

--
Credits:
Jayden: Programming
Flebsy: Idea, Design, Icon Design
Doctor: Original 'Clairvoyancy' mod we expanded upon