
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. 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\. 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. We will look at making a custom weapon for TTT, both the code side and the graphical side.
