

- #Trouble in terrorist town garrys mod code
- #Trouble in terrorist town garrys mod zip
- #Trouble in terrorist town garrys mod download
You can of course make an icon in any style you want if you so choose. Note: this outlines how you can create an icon in the same style as TTT’s icon.
#Trouble in terrorist town garrys mod code
This covers much of the code you’ll need for a simple gun. It will take some experimentation to find good values here, because they differ significantly for every gun. They determine how the gun is positioned when using iron sights. The IronSights vectors are actually from the default GMod CS:S weapons that the TTT weapons were originally based on, but I’ll discuss them here anyway.

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\.
#Trouble in terrorist town garrys mod 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.
#Trouble in terrorist town garrys mod download
We do this by following along with an example weapon that you can download in the list above. We will look at making a custom weapon for TTT, both the code side and the graphical side. AK47 weapon: an example scripted weapon.psd file for creating a menu icon in the style of the other TTT icons. Some example content and a guide to creating a custom weapon for TTT. Can I make my custom weapon cost 2 or 3 credits instead of 1?.
