mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-04 00:52:33 +00:00
Merge branch 'metrostroi-repo:dev' into dev
This commit is contained in:
@@ -354,7 +354,7 @@ if SERVER then
|
|||||||
if not pcall(require,"turbostroi") then
|
if not pcall(require,"turbostroi") then
|
||||||
if system.IsWindows() then
|
if system.IsWindows() then
|
||||||
ErrorNoHalt("======================================================\nMetrostroi: Turbostroi library can't be loaded because of missing libraries!\nCheck, that you have Microsoft visual c++ 2010 and 2017 redistributable(x86) installed\nYou can download it from:\n")
|
ErrorNoHalt("======================================================\nMetrostroi: Turbostroi library can't be loaded because of missing libraries!\nCheck, that you have Microsoft visual c++ 2010 and 2017 redistributable(x86) installed\nYou can download it from:\n")
|
||||||
MsgC(Color(255,0,0),"https://www.microsoft.com/en-us/download/details.aspx?id=5555\nhttps://aka.ms/vs/15/release/vc_redist.x86.exe\n")
|
MsgC(Color(255,0,0),"https://www.microsoft.com/en-us/download/details.aspx?id=26999 (2010 x86)\nhttps://aka.ms/vs/15/release/vc_redist.x86.exe (2017 x86)\n")
|
||||||
ErrorNoHalt("======================================================\n")
|
ErrorNoHalt("======================================================\n")
|
||||||
else
|
else
|
||||||
ErrorNoHalt("Metrostroi: Turbostroi library can't be loaded!\n")
|
ErrorNoHalt("Metrostroi: Turbostroi library can't be loaded!\n")
|
||||||
@@ -366,7 +366,7 @@ if SERVER then
|
|||||||
if not pcall(require,"turbostroi") then
|
if not pcall(require,"turbostroi") then
|
||||||
if system.IsWindows() then
|
if system.IsWindows() then
|
||||||
ErrorNoHalt("======================================================\nMetrostroi: Turbostroi library can't be loaded because of missing libraries!\nCheck, that you have Microsoft visual c++ 2010 and 2017 redistributable(x64) installed\nYou can download it from:\n")
|
ErrorNoHalt("======================================================\nMetrostroi: Turbostroi library can't be loaded because of missing libraries!\nCheck, that you have Microsoft visual c++ 2010 and 2017 redistributable(x64) installed\nYou can download it from:\n")
|
||||||
MsgC(Color(255,0,0),"https://www.microsoft.com/en-us/download/details.aspx?id=5555\nhttps://aka.ms/vs/15/release/vc_redist.x64.exe\n")
|
MsgC(Color(255,0,0),"https://www.microsoft.com/en-us/download/details.aspx?id=26999 (2010 x64)\nhttps://aka.ms/vs/15/release/vc_redist.x64.exe (2017 x64)\n")
|
||||||
ErrorNoHalt("======================================================\n")
|
ErrorNoHalt("======================================================\n")
|
||||||
else
|
else
|
||||||
ErrorNoHalt("Metrostroi: Turbostroi library can't be loaded!\n")
|
ErrorNoHalt("Metrostroi: Turbostroi library can't be loaded!\n")
|
||||||
@@ -378,7 +378,7 @@ if SERVER then
|
|||||||
ErrorNoHalt("======================================================\nMetrostroi: Turbostroi DLL not found.\nYou can found turbostroi for Windows at \n")
|
ErrorNoHalt("======================================================\nMetrostroi: Turbostroi DLL not found.\nYou can found turbostroi for Windows at \n")
|
||||||
MsgC(Color(255,0,0),"https://metrostroi.net/turbostroi\n")
|
MsgC(Color(255,0,0),"https://metrostroi.net/turbostroi\n")
|
||||||
ErrorNoHalt("Just place this .dll to garrysmod/lua/bin folder.\nIf bin folder doesn't exists - create it.\nDon't forget to install Microsoft visual c++ 2010 and 2017 redistributable(x86)\nYou can download it from:\n")
|
ErrorNoHalt("Just place this .dll to garrysmod/lua/bin folder.\nIf bin folder doesn't exists - create it.\nDon't forget to install Microsoft visual c++ 2010 and 2017 redistributable(x86)\nYou can download it from:\n")
|
||||||
MsgC(Color(255,0,0),"https://www.microsoft.com/en-us/download/details.aspx?id=5555\nhttps://aka.ms/vs/15/release/vc_redist.x86.exe\n")
|
MsgC(Color(255,0,0),"https://www.microsoft.com/en-us/download/details.aspx?id=26999 (2010 x86)\nhttps://aka.ms/vs/15/release/vc_redist.x86.exe (2017 x86)\n")
|
||||||
ErrorNoHalt("======================================================\n")
|
ErrorNoHalt("======================================================\n")
|
||||||
else
|
else
|
||||||
ErrorNoHalt("Metrostroi: Turbostroi DLL not found.\n")
|
ErrorNoHalt("Metrostroi: Turbostroi DLL not found.\n")
|
||||||
|
|||||||
@@ -22,13 +22,15 @@ local function removeWeldBetweenEnts(ent1,ent2)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function ENT:Use(ply)
|
function ENT:Use(ply)
|
||||||
if self.Coupled then
|
if IsValid(self.Coupled) then
|
||||||
sound.Play("buttons/lever8.wav",self:GetPos())
|
sound.Play("buttons/lever8.wav",self:GetPos())
|
||||||
removeWeldBetweenEnts(self,self.Coupled)
|
removeWeldBetweenEnts(self,self.Coupled)
|
||||||
removeWeldBetweenEnts(self.Coupled,self)
|
removeWeldBetweenEnts(self.Coupled,self)
|
||||||
|
|
||||||
|
self.Coupled.Connectors[self.ConnectorID] = nil
|
||||||
self.Timer = CurTime()+2
|
self.Timer = CurTime()+2
|
||||||
end
|
end
|
||||||
|
self.ConnectorID = nil
|
||||||
self.Coupled = nil
|
self.Coupled = nil
|
||||||
if ( self:IsPlayerHolding() ) then return end
|
if ( self:IsPlayerHolding() ) then return end
|
||||||
if ply.PickupObject then ply:PickupObject( self ) end
|
if ply.PickupObject then ply:PickupObject( self ) end
|
||||||
|
|||||||
@@ -392,16 +392,10 @@ function ENT:CheckContact(pos,dir,id,cpos)
|
|||||||
traceEnt:SetPos(self:LocalToWorld(cpos))
|
traceEnt:SetPos(self:LocalToWorld(cpos))
|
||||||
traceEnt:SetAngles(self:GetAngles())
|
traceEnt:SetAngles(self:GetAngles())
|
||||||
traceEnt.Coupled = self
|
traceEnt.Coupled = self
|
||||||
|
traceEnt.ConnectorID = id
|
||||||
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
|
end
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -571,7 +571,7 @@ Metrostroi.StationConfigurations = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
pto = {
|
pto = {
|
||||||
pto = {"пто","ПТО"},
|
names = {"пто","ПТО"},
|
||||||
positions = {
|
positions = {
|
||||||
{Vector(-4539,5624,-4597),Angle(0,0,0)},
|
{Vector(-4539,5624,-4597),Angle(0,0,0)},
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user