• SpawnIcons?
    7 replies, posted
How would i add a spawn icon to my SWEP: it is a SWEP that goes into garrysmod/garrysmod/lua/weapon_pwnage_gun, not addons. inside that folder is the shared.lua file and thats it, i have seen various weapons that go in addons that have spawnicons so i know its possible, i also know the correct size is 256x256 and its format needs to be VMT/VTF
I believe you would put the material straight into shared. If your weapon was in : lua/entities/weapons/weapon_pwnage_gun the texture would go in : materials/entities/weapons/weapon_pwnage_gun At least I think. :smile:
[QUOTE=Crazy Quebec;18060510]I believe you would put the material straight into shared. If your weapon was in : lua/entities/weapons/weapon_pwnage_gun the texture would go in : materials/entities/weapons/weapon_pwnage_gun At least I think. :smile:[/QUOTE] is the lua/material folder inside garrysmod/garrysmod/ or inside my pwnage_gun folder?
There is no lua/materials folder, the materials folder is located at : garrysmod/garrysmod/materials. Of course it would be simpler to package your gun in an addon where both the lua and materials folder would be at the base of the addon.
[QUOTE=Crazy Quebec;18063555]There is no lua/materials folder, the materials folder is located at : garrysmod/garrysmod/materials. Of course it would be simpler to package your gun in an addon where both the lua and materials folder would be at the base of the addon.[/QUOTE] I have tried and its doesn't appear in the menu.
[url]http://www.facepunch.com/showthread.php?t=768724[/url]
[QUOTE=| Gravemind |;18064740][url]http://www.facepunch.com/showthread.php?t=768724[/url][/QUOTE] Is there anyway to put that into my addons folder instead of garrysmod/garrysmod/
[QUOTE=Adzter;18077968]Is there anyway to put that into my addons folder instead of garrysmod/garrysmod/[/QUOTE] Addons are put together just like the garrysmod/garrysmod folder, they just need an "info.txt" [url]http://www.facepunch.com/showthread.php?t=804131&highlight=addon+info[/url] so, your addons would have a lua folder, and a materials folder, and the info.txt then the lua folder would contain "lua/weapons/<weapon folder name>/shared.lua the materials folder would contain "materials/entites/weapons/<weaponfoldername>.vtf & .vtm
Sorry, you need to Log In to post a reply to this thread.