diff --git a/lua/entities/gmod_wire_expression2/core/ranger.lua b/lua/entities/gmod_wire_expression2/core/ranger.lua index fde4cb3210..4ae9d36d9f 100644 --- a/lua/entities/gmod_wire_expression2/core/ranger.lua +++ b/lua/entities/gmod_wire_expression2/core/ranger.lua @@ -306,7 +306,7 @@ end __e2setcost(20) -- temporary ---- Equivalent to rangerOffset(16384, :shootPos(), :eye()), but faster (causing less lag) +--- Equivalent to rangerOffset(32768, :shootPos(), :eye()), but faster (causing less lag) e2function ranger entity:eyeTrace() if not IsValid(this) then return nil end if not this:IsPlayer() then return nil end diff --git a/lua/entities/gmod_wire_gpu/cl_init.lua b/lua/entities/gmod_wire_gpu/cl_init.lua index caab596bbc..37bffbd1a5 100644 --- a/lua/entities/gmod_wire_gpu/cl_init.lua +++ b/lua/entities/gmod_wire_gpu/cl_init.lua @@ -337,8 +337,8 @@ function ENT:RenderMisc(pos, ang, resolution, aspect, monitor) local ply = LocalPlayer() local trace = ply:GetEyeTraceNoCursor() if (trace.Entity and trace.Entity:IsValid() and trace.Entity == self) then - local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*(-16384) - dist = math.max(dist, trace.Fraction*16384-self:BoundingRadius()) + local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*(-32768) + dist = math.max(dist, trace.Fraction*32768-self:BoundingRadius()) if (dist < 256) then local pos = WorldToLocal( trace.HitPos, Angle(), pos, ang ) diff --git a/lua/entities/gmod_wire_gpu/init.lua b/lua/entities/gmod_wire_gpu/init.lua index 2815f2ea47..d2d7c6b4f9 100644 --- a/lua/entities/gmod_wire_gpu/init.lua +++ b/lua/entities/gmod_wire_gpu/init.lua @@ -361,8 +361,8 @@ function ENT:Think() local trace = player:GetEyeTraceNoCursor() local ent = trace.Entity if ent:IsValid() then - local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*(-16384) - dist = math.max(dist, trace.Fraction*16384-ent:BoundingRadius()) + local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*(-32768) + dist = math.max(dist, trace.Fraction*32768-ent:BoundingRadius()) if dist < 64 and ent == self then if player:KeyDown(IN_ATTACK) or player:KeyDown(IN_USE) then diff --git a/lua/entities/gmod_wire_graphics_tablet.lua b/lua/entities/gmod_wire_graphics_tablet.lua index 42bbd59483..4aa8f908e5 100644 --- a/lua/entities/gmod_wire_graphics_tablet.lua +++ b/lua/entities/gmod_wire_graphics_tablet.lua @@ -48,8 +48,8 @@ if CLIENT then local trace = ply:GetEyeTraceNoCursor() local ent = trace.Entity if ent:IsValid() then - local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*-16384 - dist = math.max(dist, trace.Fraction*16384-ent:BoundingRadius()) + local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*-32768 + dist = math.max(dist, trace.Fraction*32768-ent:BoundingRadius()) if dist < self.workingDistance and ent == self.GPU.Entity then local cpos = WorldToLocal(trace.HitPos, Angle(), pos, ang) @@ -118,8 +118,8 @@ function ENT:Think() local trace = ply:GetEyeTraceNoCursor() local ent = trace.Entity if ent:IsValid() then - local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*-16384 - dist = math.max(dist, trace.Fraction*16384-ent:BoundingRadius()) + local dist = trace.Normal:Dot(trace.HitNormal)*trace.Fraction*-32768 + dist = math.max(dist, trace.Fraction*32768-ent:BoundingRadius()) if dist < 64 and ent == GPUEntity then if ply:KeyDown(IN_ATTACK) or ply:KeyDown(IN_USE) then diff --git a/lua/weapons/laserpointer/cl_init.lua b/lua/weapons/laserpointer/cl_init.lua index a3a28c720b..f3a788dd92 100644 --- a/lua/weapons/laserpointer/cl_init.lua +++ b/lua/weapons/laserpointer/cl_init.lua @@ -46,7 +46,7 @@ function SWEP:DrawWorldModel(flags) if IsValid(owner) then endpos = owner:GetEyeTrace().HitPos else - local tr = util.TraceLine({ start = startpos, endpos = startpos + att.Ang:Forward() * 16384, filter = self }) + local tr = util.TraceLine({ start = startpos, endpos = startpos + att.Ang:Forward() * 32768, filter = self }) endpos = tr.HitPos end diff --git a/lua/weapons/laserpointer/init.lua b/lua/weapons/laserpointer/init.lua index faa4b98d13..b5c3068481 100644 --- a/lua/weapons/laserpointer/init.lua +++ b/lua/weapons/laserpointer/init.lua @@ -21,7 +21,7 @@ function SWEP:Think() trace = owner:GetEyeTrace() else local att = self:GetAttachment(self:LookupAttachment("muzzle")) - trace = util.TraceLine({ start = att.Pos, endpos = att.Pos + att.Ang:Forward() * 16384, filter = self }) + trace = util.TraceLine({ start = att.Pos, endpos = att.Pos + att.Ang:Forward() * 32768, filter = self }) end local point = trace.HitPos diff --git a/lua/wire/client/e2descriptions.lua b/lua/wire/client/e2descriptions.lua index ddb4cab7b0..163f254b54 100644 --- a/lua/wire/client/e2descriptions.lua +++ b/lua/wire/client/e2descriptions.lua @@ -210,7 +210,7 @@ E2Helper.Descriptions["pos(e:)"] = "Gets the position of the entity" E2Helper.Descriptions["eye(e:)"] = "Gets a player's view direction or an entity's forward direction" E2Helper.Descriptions["eyeAngles(e:)"] = "Gets a player's view direction" E2Helper.Descriptions["eyeAnglesVehicle(e:)"] = "Gets a player's view direction, relative to any vehicle they sit in. This function is needed to reproduce the behavior of cam controller. This is different from Vehicle:toLocal(Ply:eyeAngles())." -E2Helper.Descriptions["eyeTrace(e:)"] = "Performs a quick trace from the player's eye. Equivalent to rangerOffset(16384, E:shootPos(), E:eye()), but faster. Does not respect filters or ranger flags" +E2Helper.Descriptions["eyeTrace(e:)"] = "Performs a quick trace from the player's eye. Equivalent to rangerOffset(32768, E:shootPos(), E:eye()), but faster. Does not respect filters or ranger flags" E2Helper.Descriptions["eyeTraceCursor(e:)"] = "Same as eyeTrace, except it also works when the player (for example) is holding down C" E2Helper.Descriptions["shootPos(e:)"] = "Returns a players shoot position" E2Helper.Descriptions["aimEntity(e:)"] = "Returns the entity that the entity is aiming at" diff --git a/lua/wire/stools/hydraulic.lua b/lua/wire/stools/hydraulic.lua index bc9ca3bd4f..a1706fa8e9 100644 --- a/lua/wire/stools/hydraulic.lua +++ b/lua/wire/stools/hydraulic.lua @@ -171,7 +171,7 @@ function TOOL:RightClick( trace ) local tr = {} tr.start = trace.HitPos - tr.endpos = tr.start + (trace.HitNormal * 16384) + tr.endpos = tr.start + (trace.HitNormal * 32768) tr.filter = {self:GetOwner()} if IsValid(trace.Entity) then tr.filter[2] = trace.Entity