Garry's Mod

Garry's Mod

691 ratings
[TTT/2|Sandbox] Sandwich (Medkit)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Tags: Cartoon, Fun
File Size
Posted
Updated
2.226 MB
14 Mar, 2016 @ 9:31pm
5 Jul, 2020 @ 6:04pm
10 Change Notes ( view )

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

In 1 collection by Zaratusa
[TTT/2] Equipment Collection
22 items
Description
Features
The sandwich is a simple Medkit for Traitors and Detectives (configurable via ConVars), it heals 25 (configurable) 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 (configurable)

Sandbox Category: Food

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



ConVars
# Should Detectives be able to buy the Sandwich? ttt_sandwich_detective [0/1] (default: 1) # Should Traitors be able to buy the Sandwich? ttt_sandwich_traitor [0/1] (default: 1) # Amount of sandwiches you receive, when you buy a Sandwich. ttt_sandwich_bought [1..n] (default: 2) # Maximum amount of sandwiches you can carry. ttt_sandwich_max [1..n] (default: 5) # Can you buy the Sandwich only once per round? ttt_sandwich_limited_stock [0/1] (default: 1) # Amount of health being restored upon consumption. ttt_sandwich_heal_amount [1..n] (default: 25)

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: Workshop for Dedicated Servers[wiki.facepunch.com]
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!
32 Comments
MrDarthVR 13 Aug @ 7:15am 
ITS A CRIME TO CALL THAT THE SANDWICH AND NOT THE SANDVICH
pancake 11 Aug @ 3:21pm 
nom nom nom :3
Pacifist 11 May @ 11:11am 
[[TTT/2|Sandbox] Sandwich (Medkit)] lua/weapons/weapon_sandwich/shared.lua:52: bad argument #1 to 'SetDeploySpeed' (number expected, got nil)
1. SetDeploySpeed - [C]:-1
2. unknown - lua/weapons/weapon_sandwich/shared.lua:52
3. Give - [C]:-1
4. unknown - gamemodes/sandbox/gamemode/commands.lua:906
5. unknown - lua/includes/modules/concommand.lua:54
FoXikYtByHoww 14 Nov, 2023 @ 3:13am 
guy just uploaded scout
Flopthecat 5 Oct, 2023 @ 3:05pm 
sanvich isint filleh
Edwin<3 2 Jul, 2023 @ 4:16am 
I'm sorry for asking, but is this mod free?
022FFLINE 16 Dec, 2022 @ 7:06pm 
hmm idk subscribe to it to see if you need tf2!
Dingle Berry 13 Sep, 2022 @ 11:17am 
does it require tf2?
k65569404 28 Jul, 2021 @ 4:48pm 
good
:steamthumbsup:
Cêcedilha 24 Nov, 2020 @ 4:23pm 
when i type ttt_sandwich_heal_amount in console, its says Unknown command, what i do?