Fix func_noair not working.
This commit is contained in:
parent
d49bd320d8
commit
1ad5554c16
1 changed files with 2 additions and 2 deletions
|
@ -43,14 +43,14 @@ function ENT:Leave(ent)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ENT:Touch(ent)
|
function ENT:Touch(ent)
|
||||||
if ent:IsPlayer() and ent.NoAirBrush == self and not self.On then
|
if not self.On and ent:IsPlayer() and ent.NoAirBrush == self then
|
||||||
self:Leave(ent)
|
self:Leave(ent)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ENT:StartTouch(ent)
|
function ENT:StartTouch(ent)
|
||||||
if self.On and ent:IsPlayer() and ent:Alive() and ent:Team() == TEAM_HUMAN and not ent.NoAirBrush then
|
if self.On and ent:IsPlayer() and ent:Alive() and ent:Team() == TEAM_HUMAN and not ent.NoAirBrush then
|
||||||
ent.NoAirBrush = self
|
self:Enter(ent)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue