[TTT/2|Sandbox] Sandwich (Medkit)
Добавить в игру через Steam
Нажмите «Подписаться»
На странице Steam войдите в аккаунт, если потребуется.
Подписаться
О материале
«[TTT/2|Sandbox] Sandwich (Medkit)» — материал мастерской Garry’s Mod. Аддоны, карты, персонажи и инструменты для песочницы. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
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 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, 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!
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.