Garry's Mod

Garry's Mod

27 arvostelua
[TTT] Heartbeat Monitor
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Tags: Fun, Roleplay
Tiedostokoko
Julkaistu
26.193 KB
11.5.2020 klo 10.58
1 muutos ( näytä )

Tilaa ladataksesi
[TTT] Heartbeat Monitor

2 kokoelmassa, tekijä beans?
GMOD 4 big bois
201 luomusta
beans?'s TTT addons
4 luomusta
Kuvaus
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 kommenttia
fskin 7.7.2021 klo 6.56 
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.4.2021 klo 12.42 
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.