forked from TeamUlysses/ulib
Fix typo in invis code.
Fixes weapons staying hidden after switching and uncloaking. Closes #417. Thanks TheRealAyCe!
This commit is contained in:
parent
b0da4e8e4f
commit
583d4c2652
@ -265,7 +265,7 @@ local function doInvis()
|
||||
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.
|
||||
if t.invis.wep and IsValid( t.invis.wep ) 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( "" )
|
||||
|
Loading…
Reference in New Issue
Block a user