![how to play ttt in gmod 2019 how to play ttt in gmod 2019](https://cdn.smartlydressedgames.com/original/3X/2/5/2559fd4b8fc039e1cd22e795895ac60aebf284e1.jpeg)
WEAPON_MELEE: only for the crowbar players get by default.WEAPON_ROLE: special equipment that is default equipment for a role, like the DNA Scanner.WEAPON_EQUIP2: same as above, secondary equipment slot.WEAPON_EQUIP1: special equipment, typically bought with credits and Traitor/Detective-only.WEAPON_HEAVY: rifles, shotguns, machineguns.WEAPON_PISTOL: small arms like the pistol and the deagle.
![how to play ttt in gmod 2019 how to play ttt in gmod 2019](https://i.redd.it/p7isibzym5f31.png)
Mappers can use a weapon checker entity to detect specific types (Kinds) of weapons. For example, the special equipment types ( WEAPON_EQUIP1, EQUIP2, and ROLE) will not auto-pickup if players walk over them (they must press +use). You can’t carry two weapons of the same “Kind”, and certain other behavior also depends on this type. It’s the category or class the weapon belongs to. The first important line is:Įvery TTT weapon must have a Kind specified. At the top is some bog standard SWEP stuff I’ll skip past. Let’s look at the a file in the folder you have extracted. If you now start a TTT game, you can use the console command give weapon_ttt_ak47 to get the gun and give it a go. Extract it into \garrysmod\gamemodes\terrortown\entities\weapons\.
#How to play ttt in gmod 2019 zip
zip will contain a weapon_ttt_ak47 folder. Preparationĭownload the AK47 weapon linked above. If not, you may still be able to follow along, but at your own risk. Use the tutorials and information at the Gmod wiki to fill in the gaps.įrom this point on, I will assume that you are familiar with Lua and that you are somewhat familiar with Gmod SWEPs. I will explain standard Gmod SWEP (i.e., scripted weapon) concepts when convenient, but I’m not going to be able to tell you everything there is to know, and I especially can’t teach you Lua here. We do this by following along with an example weapon that you can download in the list above.
#How to play ttt in gmod 2019 code
We will look at making a custom weapon for TTT, both the code side and the graphical side.