File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
lua/entities/ucs_mineable Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 31
31
function ENT :Show ()
32
32
self :SetSolid ( SOLID_VPHYSICS )
33
33
self :SetMoveType ( MOVETYPE_VPHYSICS )
34
- self :SetColor ( color_white )
35
34
self :SetNWBool ( " IsHidden" , false )
36
35
self :SetHealth ( self :GetMaxHealth () )
37
- self :DrawShadow ( true )
36
+ self :SetNoDraw ( false )
38
37
local phys = self :GetPhysicsObject ()
39
38
if phys :IsValid () then
40
39
phys :EnableMotion ( false )
44
43
45
44
function ENT :Hide ()
46
45
local tbl = self :GetData ()
47
- local color = self :GetColor ()
48
46
self :SetSolid ( SOLID_NONE )
49
47
self :SetMoveType ( MOVETYPE_NONE )
50
- self :SetColor ( ColorAlpha ( color , 0 ) )
51
48
self :SetNWBool ( " IsHidden" , true )
52
- self :DrawShadow ( false )
49
+ self :SetNoDraw ( true )
53
50
timer .Create ( " Hidden_" .. self :EntIndex (), tbl .Respawn or 300 , 1 , function ()
54
51
if IsValid ( self ) then self :Show () end
55
52
end )
You can’t perform that action at this time.
0 commit comments