SolvedChange ur viewmodels material.

Posts 1–5 of 5 · Page 1 of 1
Change ur viewmodels material.
Basically im wondering how in falcos scripts he changed the view model's material. (I.E making ur gun wireframe or any other material)

I just need to see "how its done"[/FONT]




If u want to see what im talking about heres a attatchment

85f674d2a556908ba26406336752f9ca.png282 KB · 20 downloads
why don't you look at it yourself, is it that hard? or even search for 1 second on gmod wiki?
Code:
local wireframeMat = Material("models/wireframe");

GAMEMODE:AddHook("PreDrawViewModel", "", function()
    if(!gBool("Visuals", "Wireframe Viewmodel")) then return; end
    render.MaterialOverride(wireframeMat);
    render.SetColorModulation(0, 0, 0);
end);

GAMEMODE:AddHook("PreDrawPlayerHands", "", function()
    if(!gBool("Visuals", "Wireframe Viewmodel")) then return; end
    render.MaterialOverride(wireframeMat);
    render.SetColorModulation(0, 0, 0);
end);
http://www.mpgh.net/forum/showthread.php?t=1034470

change material
Seems this has been solved.

/Closed and marked solved.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us