Garry's Mod

Garry's Mod

Not enough ratings
[TTT/2] Last Stand [FEATURE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Cartoon, Fun
Tags: misc
File Size
Posted
Updated
6.959 KB
7 Apr, 2018 @ 7:49pm
8 Nov, 2020 @ 1:03pm
4 Change Notes ( view )

Subscribe to download
[TTT/2] Last Stand [FEATURE]

In 1 collection by dhkatz
LAN Party
208 items
Description
NOTICE: This Addon only works for the "Trouble in Terrorist Town" and "TTT2" gamemodes.

Features

This is a passive feature for TTT. When an Innocent is last alive, they can wait out an amount of time (configurable) and have a chance (configurable) to become a Detective.

Compatibility
This addon should not have any compatibility issues with other addons.

ConVars
- ttt_laststand_enable (def: 1) - Is the Last Stand feature enabled?
- ttt_laststand_chance (def: 1.0) - Chance the last Innocent will become a Detective. (0.0 - 1.0)
- ttt_laststand_time (def: 60) - Time (seconds) the Innocent must wait before becoming a Detective.
- ttt_laststand_credits (def: 2) - Number of credits the Innocent will receive upon becoming a Detective.
- ttt_laststand_multiple (def: 0) - Can more than one Innocent be turned into a Detective per round? (Ex: If a new Detective revives somebody and then dies.)
- ttt_laststand_strict (def: 0) - Do Innocents become a Detective if they killed an Innocent last?

Server Info
Add it to your server by following this guide: http://wiki.garrysmod.com/page/Server/Workshop

You can add the following items to your translation file, to translate this addon:
  • "laststand_name"
  • "laststand_alert"
  • "laststand_block"
  • "laststand_update"
  • "laststand_survived"
  • "laststand_cancel"

Thanks for reading, enjoy and have fun!

Source
The whole source code can be found on GitHub[github.com], feel free to contribute.
8 Comments
dhkatz  [author] 22 Mar, 2023 @ 4:20pm 
Thank you for the kind words. If you would like any changes or configuration options added to this mod let me know :)
TITAN 22 Mar, 2023 @ 4:04pm 
dude your addons are fire finally found someone who makes stuff for detectives and innocents to challenge those OP traitor addons! Great work. :steamthumbsup:
dhkatz  [author] 8 Nov, 2020 @ 10:31am 
The source code is now available on GitHub under the MIT license. https://github.com/gmod-workshop/ttt-laststand
dhkatz  [author] 7 Nov, 2020 @ 8:02pm 
Added better support for TTT2. A status icon now shows for the last alive innocent to show how long they have to wait before becoming a detective.

I also added the settings to the TTT2 ULX addons menu for easy configuring.
fskin 10 Apr, 2018 @ 7:43am 
Yeee this is mainly just a nitpick because I'm playing in sessions with 6-8 players mostly where it's fun to deceive the inno 'til the end.

I think even being able to customize the time 'til the detective transformation in relation to the amount of traitors would be cool.
dhkatz  [author] 9 Apr, 2018 @ 6:16pm 
@Skatcat I feel like if 2 Traitors are left against 1 Innocent, they're already just going to slaughter the Innocent in most cases. So I don't really see that as an issue in most cases.

However in the interest in making this better for everyone, what do you suggest that I do to combat the issue?

From what I can tell you want an option so you make it activate when there is only 1 Traitor and 1 Innocent. Have an option for 1v1s only?
fskin 9 Apr, 2018 @ 7:17am 
Cool idea!

Nitpick:

Could you make it configurable in regards to the amount of traitors left? Because let's say there's 1 inno and 2 traitors left but the last inno doesn't know there's 2 traitors, if he turns into a detective, he knows that only traitors are left.
Coolsurf6 7 Apr, 2018 @ 9:52pm 
This actually seems like a good idea!

Lets hope it gets added!