How to apply a skin to a SWEP ViewModel and WorldModel
6 replies, posted
Not good with words, so here are some images.
[IMG]http://puu.sh/3pqI0.png[/IMG]
[IMG]http://puu.sh/3pqKA.png[/IMG]
[IMG]http://puu.sh/3pqKZ.png[/IMG]
I want to apply my golden Deagle skin to my plain deagle TTT SWEP. How would I go about doing so?
Look how it's done on this DarkRP weapon: [url]https://github.com/FPtje/DarkRP/blob/master/entities/weapons/stunstick/shared.lua[/url]
[QUOTE=ShadowRanger;41209266]Look how it's done on this DarkRP weapon: [url]https://github.com/FPtje/DarkRP/blob/master/entities/weapons/stunstick/shared.lua[/url][/QUOTE]
So SetMaterial will work for vtf or vmt?
[QUOTE=ankleteeth1;41209748]So SetMaterial will work for vtf or vmt?[/QUOTE]It would use both. Just have it as deagle_skin1 with no file extensions. So in this case SetMaterial("deagle_skin1") and if its in its own directory make sure you add that.
How can I apply it to the world model?
[QUOTE=ankleteeth1;41229502]How can I apply it to the world model?[/QUOTE]
Look at how it's done in linked weapon above.
Setting the weapons material in SWEP:Deploy like in the stunstick I linked you to will apply that material to both the view model and the world model.
Sorry, you need to Log In to post a reply to this thread.