Hi, so I am trying to set up a pony DarkRP server.
All of the jobs will be using the same ppm model but there is one problem, when those models "hold" a weapon it just sit's in their face, I was wondering if someone could help me hide the weapon model in third person (if another player were to look at me) but not hide it in the viewmodel.
I also do know this is possible as Cinema does it but even after browsing through all its files I cannot figure it out.
One way you could fix this is by removing the worldmodel of each SWEPs by just changing the filepath to "". This might not be possible for all weapons, especially if you're using default hl2 weapons.
otherwise:
[lua]
if player:Alive() and player:GetActiveWeapon():IsValid() then
if player:GetActiveWeapon() ~= t.invis.wep then
if t.invis.wep and IsValid( t.invis.web ) then -- If changed weapon, set the old weapon to be visible.
t.invis.wep:SetRenderMode( RENDERMODE_NORMAL )
t.invis.wep:Fire( "alpha", 255, 0 )
t.invis.wep:SetMaterial( "" )
end
t.invis.wep = player:GetActiveWeapon()
ULib.invisible( player, true, t.invis.vis )
end
end
[/lua]
this is straight out of ULX Cloak, it's usually in a think hook but you could probably change it to a onweaponswitch hook (if that exists, I can't remember)
Well the simplest fix for this is to not have a PonyRP server. They're gay as shit.
Sorry, you need to Log In to post a reply to this thread.