From dbd80a8742e3b947e4abe07c84bb24e4fe59e65f Mon Sep 17 00:00:00 2001 From: Steeveeo <steeveeo91@gmail.com> Date: Sat, 21 Jan 2017 10:55:09 -0800 Subject: [PATCH] - The fuck out with your lack of whitespace (code cleanup). Signed-off-by: Steeveeo <steeveeo91@gmail.com> --- entities/entities/sc_resource_pump_plug.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entities/entities/sc_resource_pump_plug.lua b/entities/entities/sc_resource_pump_plug.lua index 7298e333..79efb2fe 100644 --- a/entities/entities/sc_resource_pump_plug.lua +++ b/entities/entities/sc_resource_pump_plug.lua @@ -97,7 +97,7 @@ if SERVER then -- Gets the plug socket position offset function ENT:GetOffset() - return Vector(5,13,10.2) + return Vector(5, 13, 10.2) end -- What we want to connect to @@ -143,21 +143,21 @@ if SERVER then -- how to disconnect from the socket function ENT:DisconnectFromSocket() if self:IsConnected() then - self:GetConnectedSocket():EmitSound("physics/metal/metal_computer_impact_bullet"..math.random(1,3)..".wav", 500) + self:GetConnectedSocket():EmitSound("physics/metal/metal_computer_impact_bullet" .. math.random(1, 3) .. ".wav", 500) self:GetConnectedSocket().Plugged = false self:SetParent(nil) self:GetBase():Disconnect() if self:GetConnectedSocket() ~= self:GetBase() then --doesnt auto reconnect if disconnected from base pump, so you can actually use it :D - timer.Create("PumpPlugAutoHome"..self:EntIndex(),5,1,function() + timer.Create("PumpPlugAutoHome" .. self:EntIndex(), 5, 1, function() if IsValid(self) and not self:IsConnected() and IsValid(self:GetBase()) then self:ConnectToSocket(self:GetBase()) end end) end - self:EmitSound("physics/metal/metal_computer_impact_bullet"..math.random(1,3)..".wav", 500) + self:EmitSound("physics/metal/metal_computer_impact_bullet" .. math.random(1, 3) .. ".wav", 500) self.ConnectedSocket = nil self:SetConnected(false) self:AddConnectionDelay(2) @@ -178,7 +178,7 @@ if SERVER then if self:IsConnected() then if Distance >= 800 then -- We're about to break, start creeking like a broken chair. - self:EmitSound("ambient/misc/metal_str"..math.random(1,3)..".wav", 500) + self:EmitSound("ambient/misc/metal_str" .. math.random(1, 3) .. ".wav", 500) if Distance >= 1000 then local core = self:GetBase().SC_CoreEnt -- GitLab