Garry's Mod

Garry's Mod

46 ratings
[TTT/2] Martyrdom [ITEM]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Tags: Cartoon, Fun
File Size
Posted
Updated
387.168 KB
8 Mar, 2018 @ 3:33pm
8 Nov, 2020 @ 1:32pm
3 Change Notes ( view )

Subscribe to download
[TTT/2] Martyrdom [ITEM]

Description
NOTICE: This Addon only works for the "Trouble in Terrorist Town" and "TTT2" gamemodes.

Features
This equipment is available for both the Traitors and Detectives in the Equipment menu. When somebody dies, the players who bought the Martyrdom perk will drop a live grenade on their body.


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_martyrdom_detective (def: 1) - Should Detectives be able to buy the Martyrdom Perk?
- ttt_martyrdom_traitor (def: 1) - Should Traitors be able to buy the Martyrdom Perk?
- ttt_martyrdom_detective_loadout (def: 0) - Should Detectives have the Martyrdom Perk in their loadout?
- ttt_martyrdom_traitor_loadout (def: 0) - Should Traitors have the Martyrdom Perk in their loadout?

Server Info
Add it to your server by following this guide: http://wiki.garrysmod.com/page/Server/Workshop
You can add "martyrdom_perk_name" and "martyrdom_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 Exho (but modified extensively!). I agree to remove this item if the Author or Valve wishes to.

Thanks for reading, enjoy and have fun!
3 Comments
Voxel | Julia 15 Sep, 2024 @ 1:07pm 
Could you update the icon? Passive stuff usually has a red background
dhkatz  [author] 8 Nov, 2020 @ 12:16pm 
The source code is also now available on GitHub under the MIT license.

https://github.com/gmod-workshop/ttt-martyrdom
dhkatz  [author] 8 Nov, 2020 @ 12:15pm 
This addon has been updated to support TTT2. The longstanding bug with the clairvoyancy addon has also been fixed.

I've tested on both TTT and TTT2 and seems to be fully working. Thanks and have fun!