Garry's Mod

Garry's Mod

48 ratings
[TTT] Lucky Horseshoe (Passive Perk)
 
Rate  
Favorite
Favorited
Unfavorite
Type: Weapon, Addon
Tags: Fun, Comic
File Size
Posted
Updated
0.020 MB
Mar 22, 2016 @ 10:22am
Jul 9, 2017 @ 2:14pm
8 Change Notes ( view )

Subscribe to download
[TTT] Lucky Horseshoe (Passive Perk)

Subscribed
Unsubscribe
In 2 collections by Zaratusa
Zaratusa's TTT Server Addons
69 items
TTT Weapon Pack
25 items
Description
NOTICE: This Addon only works for the "Trouble in Terrorist Town"-Gamemode.

Features
The Lucky Horseshoe is a passive item for Traitors and Detectives (configurable via ConVars), which decreases the taken fall damage by 90% and the remaining damage is limited to a maximum of 35 damage. 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.

Damage Examples
Without horseshoe: You take 100 damage, so you are dead.
With horseshoe: You take 90% less, so it's 10 damage.

Without horseshoe: You take 400 damage, so you are definetly dead.
With horsehoe: You take 90% less, that's 40 damage, but because it's limited, you take 35 damage.

ConVars
- ttt_luckyhorseshoe_detective (def: 1) - Should Detectives be able to buy the Lucky Horseshoe?
- ttt_luckyhorseshoe_detective_loadout (def: 0) - Should Detectives have it in their Loadout?
- ttt_luckyhorseshoe_traitor (def: 1) - Should Traitors be able to buy the Lucky Horseshoe?
- ttt_luckyhorseshoe_traitor_loadout (def: 0) - Should Traitors have it in their Loadout?

Note: You have to restart your map/server after changing one of these values to take effect.

Server Infos
Add it to your server by following this guide: http://wiki.garrysmod.com/page/Server/Workshop
You can add "lucky_horseshoe_name" and "lucky_horseshoe_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.

Thanks for reading, enjoy and have fun!
< >
2 Comments
Yeeten Cowboy Mode Nov 22, 2016 @ 1:12pm 
Thats good, gonna add it to my collection if the other owner agrees :)
Zaratusa  [author] Nov 22, 2016 @ 10:14am 
Changed the description and added damage examples!