Garry's Mod

Garry's Mod

431 ratings
[TTT/Sandbox] Sandwich (Medkit)
 
Rate  
Favorite
Favorited
Unfavorite
Type: Weapon, Addon
Tags: Fun, Cartoon
File Size
Posted
Updated
0.743 MB
Mar 14, 2016 @ 9:31pm
May 19, 2016 @ 1:40pm
7 Change Notes ( view )

Subscribe to download
[TTT/Sandbox] Sandwich (Medkit)

Subscribed
Unsubscribe
In 2 collections by Zaratusa
Zaratusa's TTT Server Addons
69 items
TTT Weapon Pack
25 items
Description
Features
The sandwich is a simple Medkit for Traitors and Detectives (configurable via ConVars), it heals 25 life per use and can either be used on yourself or every other player. Primary attack to heal other player, secondary attack to heal yourself. The three-second rule applies, after you have dropped it on the gound, it will spoil and after some time it can even damage/kill you.

Type: Equip2
Ammo: None
Magazine: 4/4

Sandbox Category: Food

Working view and world model! Also includes an individual .vmt and .vtf weapon icon as well.

ConVars
- ttt_sandwich_detective (def: 1) - Should Detectives be able to buy the Sandwich?
- ttt_sandwich_traitor (def: 1) - Should Traitors be able to buy the Sandwich?

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 "sandwich_name" and "sandwich_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 Model and Sounds were taken from TF2. I agree to remove this item if Valve wishes to.

Thanks for reading, enjoy and have fun!
< >
18 Comments
DOSHDEX Feb 1 @ 10:09am 
BONK please
♫Joe Blaze♫ Dec 16, 2018 @ 1:14am 
Three second rule is BS. Food can stay good for a whole day.
TheReaper [moat.gg] Sep 13, 2018 @ 8:10pm 
what is the weapon code of the sandwich for the buy menu. trying to make a auto buy bind
DoomMaster10913 Mar 17, 2018 @ 2:07pm 
Heavy's sandvich!
dick palmer Jan 25, 2018 @ 6:59am 
can you somehow change the amount of the healing that you get?
_LenX_ Jan 26, 2017 @ 6:18am 
can you make a config for this sandwich to have like 10 uses or infinite in sandbox ?
Ken Kaneki Nov 8, 2016 @ 6:38am 
True true, a lil rusty have not done server stuff in half a year lol I forget easily and thanks!
Zaratusa  [author] Nov 8, 2016 @ 6:37am 
Another advice: When you use the workshop for your downloads as described in the "Server Infos" section you have nearly always max download speeds...
Ken Kaneki Nov 8, 2016 @ 6:35am 
Just wondering becuz I had a T and D addon of this and it causes a lot of shit on my old TTT server XD ty!!! this will also save DL time for my players even ik it small just tiny bit faster
Zaratusa  [author] Nov 8, 2016 @ 6:32am 
Sure you can enable it with the "ttt_sandwich_detective" and "ttt_sandwich_traitor" ConVars as stated in the ConVars section.