• How do I make a spawn-icon to my SENT?
    21 replies, posted
How do I make a spawn-icon to my SENT?
You mean, how to add your SENT to the spawnmenu? or make a spawn icon on a VGUI Panel and make it so when you click it the SENT spawns?
[QUOTE=HeavyMtl123;22341545]You mean, how to add your SENT to the spawnmenu? or make a spawn icon on a VGUI Panel and make it so when you click it the SENT spawns?[/QUOTE] My bet is that he just wants to make a spawn icon for the spawn menu. To answer the question [i]at hand[/i], You can do this in a few ways, BUT i'm going to go with the simplest way to [b]Create & Edit[/b] both needed .vmf and .vmt files. Get a picture of your choice into MS paint or photo shop, Scale the picture and the canvas to 256 x 256. Save this picture as a JPEG, in a place you can easly find, with a name you will remember. Start up Garrysmod, Click Options>Multiplayer; Upload your picture as a spray. Exit Garrysmod. Navigate to your garrysmod/garrysmod/materials/(VGUI?)/ Look in that folder for <whatever you named your picture as>.VMF There should also be a.VMT with the same file name, [b]DONT USE THIS ONE.[/b] There should be another file in that folder, enter that on and look for <Your picture name>.VMT ------------------- [highlight]Ill finish this latter[/highlight]
[QUOTE=Nova Prospekt;22345486]My bet is that he just wants to make a spawn icon for the spawn menu. To answer the question [I]at hand[/I], You can do this in a few ways, BUT i'm going to go with the simplest way to [B]Create & Edit[/B] both needed .vmf and .vmt files. Get a picture of your choice into MS paint or photo shop, Scale the picture and the canvas to 256 x 256. Save this picture as a JPEG, in a place you can easly find, with a name you will remember. Start up Garrysmod, Click Options>Multiplayer; Upload your picture as a spray. Exit Garrysmod. Navigate to your garrysmod/garrysmod/materials/(VGUI?)/ Look in that folder for <whatever you named your picture as>.VMF There should also be a.VMT with the same file name, [B]DONT USE THIS ONE.[/B] There should be another file in that folder, enter that on and look for <Your picture name>.VMT ------------------- [highlight]Ill finish this latter[/highlight][/QUOTE] Why don't you finish it now, instead of being an idiot and cutting off at the important bit?
Lol...
-snip-
[QUOTE=HeavyMtl123;22347957]Why don't you finish it now, instead of being an idiot and cutting off at the important bit?[/QUOTE] he could be busy so why dont you allow him to do what he needs to do and then finish it instead of calling him a idiot for no reason.
[QUOTE=Thereddragon;22348653]he could be busy so why dont you allow him to do what he needs to do and then finish it instead of calling him a idiot for no reason.[/QUOTE] If he was busy he shouldn't have posted it. He could have just saved it in a text file, finished it later and then posted it. [editline]06:50PM[/editline] A post like that isn't much use unless it is finished.
yeah your right but what if he never thought about doing that?
[QUOTE=Thereddragon;22348720]yeah your right but what if he never thought about doing that?[/QUOTE] Then he should have just not posted and rewritten it later. [editline]06:52PM[/editline] Anyway, lets not get too far off-topic.
[QUOTE=Nova Prospekt;22345486]My bet is that he just wants to make a spawn icon for the spawn menu. To answer the question [i]at hand[/i], You can do this in a few ways, BUT i'm going to go with the simplest way to [b]Create & Edit[/b] both needed .vmf and .vmt files. Get a picture of your choice into MS paint or photo shop, Scale the picture and the canvas to 256 x 256. Save this picture as a JPEG, in a place you can easly find, with a name you will remember. Start up Garrysmod, Click Options>Multiplayer; Upload your picture as a spray. Exit Garrysmod. Navigate to your garrysmod/garrysmod/materials/(VGUI?)/ Look in that folder for <whatever you named your picture as>.VMF There should also be a.VMT with the same file name, [b]DONT USE THIS ONE.[/b] There should be another file in that folder, enter that on and look for <Your picture name>.VMT ------------------- [highlight]Ill finish this latter[/highlight][/QUOTE] I don't know much about sents but you don't seem to know much about materials. There's a VMT and a VTF file (not VMF). VTF contains the texture itself and VMT code how the VTF is rendered. The engine never uses VTF files directly.
So, how do I create my spawn icon???
WTF!? :awesome: [highlight](User was banned for this post ("Why reply?" - SteveUK))[/highlight]
Oh, comon, you guys know how, cant ya just help me out?
There is a thread somewhere, I forgot the name of it, but it explained how to add stuff to the spawn menu. I'll see if I can find it
[QUOTE=HeavyMtl123;22367995]There is a thread somewhere, I forgot the name of it, but it explained how to add stuff to the spawn menu. I'll see if I can find it[/QUOTE] You have no idea what you're talking about faggot, shut up.
I wasn't talking to you, now stop flaming, and only post if you have something valuable to add to this discussion.
-snip-
Sorry, for dumb question (rating:Dumb(expected, 100%)), but what does you mean with -snip-?? Ive seen it before.
Jesus Christ, I had to GTF off the public computer I was using. Let me reiterate and FINISH; [quote] To answer the question at hand, You can do this in a few ways, BUT I'm going to go with the simplest way to Create & Edit both needed .VTF and .VMT files. Get a picture of your choice into MS paint or photo shop, Scale the picture and the canvas to 256 x 256. Save this picture as a JPEG, in a place you can easly find, with the name of the folder the entity is in.(EX. base_entity) Start up Garrysmod, Click Options>Multiplayer; Upload your picture as a spray. Exit Garrysmod. Navigate to your garrysmod/garrysmod/materials/VGUI/ Look in that folder for <whatever you named your picture as>.VTF There should also be a.VMT with the same file name, DON'T USE THIS ONE. There should be another file in that folder, enter that on and look for <Your picture name>.VMT [/quote] Copy both of these files. If your making an addon; Create/navigate to these files [i](garrysmod/garrysmod/addons/[/i]<addon folder>/materials/VGUI/entities/ Other wise, go to the Materials folder and look for/create the "VGUI/entities" folder Now that your IN this file directory, [highlight]Paste in the files[/highlight] These one last [b]ESSENTIAL[/b] step, (The file names should already match the name of the folder that your entity is in) Open the .VMT file with Notepad. (Double click on the file, select program from a list of defaults, Scroll around to find "NotePad") Immidately you will see this value (As far as I remember) [code] VertexLitGeneric { "$basetexture" "VGUI\<picture name>" } [/code] Change the "$basetexture" directory to "VGUI/entities/<picture name>" :v: Remember to Exclude materials/ and the .VTF extension. Save the file, then X out of notepad. +----------------------------------------------------------------------------------------------------------------------------------------------------------+ Now, Start (or restart) Garrysmod, Check the spawn Icon. - If it shutters black, but you can kind of see the picture, you grabbed the wrong .VMT file - If the icon is black and purple, there's something wrong with how the .VMT or .VTF are named or listed - If there's nothing new, restart garrysmod - If there's still nothing new, I fucked up some where. :emo:
Ok, thanks i`ll try it out. [editline]02:19PM[/editline] Rating informative.
I think it's better to use UnlitGeneric, instead of VertexLitGeneric
Sorry, you need to Log In to post a reply to this thread.