Let’s assume you named it icon_myserver_ak47.vtf. Put the VTF in \garrysmod\materials\VGUI\ttt\. (Eight Bit Alpha will be automatically checked due to the format).Uncheck/disable mipmaps and thumbnail generation.Whichever method you use, it should have the following VTF settings: For example, you could import the TGA into VTFEdit and then save as VTF (like an old-school modder). An alternative is to save as TGA (32 bit, alpha channels enabled), and then use another method of converting that into a VTF. You will need a VTF plugin for your editor for this (google around). Now choose File => Save As, and select VTF as the file type. Resize it appropriately, and copy or replicate the shadow effect (in Photoshop, you can copy and paste the layer style of the example_shading layer in its right click menu). Cut and paste it into the template image on a new layer. With the background gone/transparent, you can now easily just rectangle-select the weapon. Open the screenshot in the image editor and use the magic wand to select the white background and delete it. To get it on a fully white background, freeze it in the air at eye height before screenshotting it with the camera weapon. Load up Gmod sandbox with gm_construct, and screenshot your weapon model in the white room. It has the shadow effect on it that all TTT weapons have. The topmost layer should already be set invisible and called “example_shading”. Just grab the icon template PSD (link in the downloads section above) and open it in Photoshop or something compatible. The actual image creation is too easy to cover in depth here. 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.
#How to install addons for gmod ttt 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.
#How to install addons for gmod ttt 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?.