mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Исправление исправления
This commit is contained in:
@@ -395,18 +395,13 @@ function ENT:CheckContact(pos,dir,id,cpos)
|
|||||||
sound.Play("udochka_connect.wav",traceEnt:GetPos())
|
sound.Play("udochka_connect.wav",traceEnt:GetPos())
|
||||||
self.Connectors[id] = traceEnt
|
self.Connectors[id] = traceEnt
|
||||||
DropEntityIfHeld(traceEnt)
|
DropEntityIfHeld(traceEnt)
|
||||||
--[[timer.Simple(0,function()
|
|
||||||
if not IsValid(traceEnt) or not traceEnt:IsPlayerHolding() then return end
|
|
||||||
traceEnt:ForcePlayerDrop()
|
|
||||||
if traceEnt.LastPickup and traceEnt.LastPickup:IsPlayer() then
|
|
||||||
traceEnt.LastPickup:DropObject()
|
|
||||||
end
|
end
|
||||||
end)]]
|
|
||||||
end
|
end
|
||||||
if (traceEnt.CoupledWith == nil) then
|
return false
|
||||||
|
elseif self.Connectors[id] == traceEnt then
|
||||||
|
if traceEnt.Coupled == nil then
|
||||||
self.Connectors[id] = nil
|
self.Connectors[id] = nil
|
||||||
end
|
end
|
||||||
end
|
|
||||||
return false
|
return false
|
||||||
elseif traceEnt:GetClass() == "player" and self.Voltage > 40 then
|
elseif traceEnt:GetClass() == "player" and self.Voltage > 40 then
|
||||||
local pPos = traceEnt:GetPos()
|
local pPos = traceEnt:GetPos()
|
||||||
|
|||||||
Reference in New Issue
Block a user