Garry's Mod

Garry's Mod

27 ratings
[TTT] Heartbeat Monitor
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Tags: Fun, Roleplay
File Size
Posted
26.193 KB
11 May, 2020 @ 10:58am
1 Change Note ( view )

Subscribe to download
[TTT] Heartbeat Monitor

In 2 collections by beans?
GMOD 4 big bois
201 items
beans?'s TTT addons
4 items
Description
Note: This addon only works with trouble in terrorist town (TTT).

Description
This item is purchasable by detectives from the buy menu. Upon your untimely death, it will send out an alert to all players notifying them of your passing. They'll receive a marker on their HUD pinpointing the location of your demise and the time since the event occurred, helping to stop the killer from making a quick exit.

ConVars
ttt_heartbeatmonitor_cleartime 90 (length of time that alerts last for before disappearing)
ttt_heartbeatmonitor_alertsize 19 (size of the alert on the player's HUD)

Acknowledgements
This was so much more work than I was expecting for my second addon and at the start a lot of it was copy and pasting. I drew on the perk idea and code from Zaratusa's Juggernaut Suit and Hermes Boots. I also drew a massive amount from the native TTT code for calling a detective to a body and the radar.

Check out my other addons.

If you have any comments, improvements or bugs that need fixed let me know!
(also please rate up if you like it <3)

2 Comments
fskin 7 Jul, 2021 @ 6:56am 
Same, it's broken.

[[TTT] Heartbeat Monitor] gamemodes/terrortown/entities/entities/ttt_heartbeat_monitor/cl_init.lua:62: attempt to call global 'IsOffScreen' (a nil value)
1. fn - gamemodes/terrortown/entities/entities/ttt_heartbeat_monitor/cl_init.lua:62
2. unknown - lua/ulib/shared/hook.lua:109
Captain Steely 29 Apr, 2021 @ 12:42pm 
Hey not sure if anyone else has had this issue, but the addon started causing scripting errors and hides everyone's HUD when the monitor goes off.