How To Add Custom Weapons (SWEPS) To The TRAITOR/DETECTIVE Menu & Create Custom VTF Icons
In this video, i explain how to take a custom weapon (SWEP) and apply it to the Traitor Menu for TTT. I use an epic chainsaw swep as the example and show how to make a simple photoshop image into a vtf icon format.
My Channel: http://www.youtube.com/theslammer92
My Twitter: http://www.twitter.com/slammy92
Chainsaw SWEP:
http://steamcommunity.com/sharedfiles/filedetails/?id=112550250
VTFeditor:
https://developer.valvesoftware.com/wiki/VTFEdit
GmodConverter:
http://www.4shared.com/file/U6CfLOEv/gmadconv.html
Lua Code:
//TTT Convertion Code \\
SWEP.Base = "weapon_tttbase"
SWEP.Kind = WEAPON_EQUIP1
SWEP.CanBuy = { ROLE_TRAITOR }
SWEP.AutoSpawnable = false
SWEP.InLoadoutFor = nil
SWEP.AllowDrop = true
SWEP.IsSilent = false
SWEP.NoSights = false
if CLIENT then
-- Path to the icon material
SWEP.Icon = "VGUI/ttt/troll"
-- Text shown in the equip menu
SWEP.EquipMenuData = {
type = "Chainsaw",
desc = "Rip those Innocent's Appart!"
};
end
if SERVER then
resource.AddFile("materials/VGUI/ttt/troll.vmt")
end
//TTT Convertion Code \\
Other Videos By SlamJam
Other Statistics
Garry's Mod Statistics For SlamJam
At present, SlamJam has 207,843 views spread across 4 videos for Garry's Mod, and less than an hour worth of Garry's Mod videos were uploaded to his channel. This is less than 0.37% of the total video content that SlamJam has uploaded to YouTube.