From 21bfc981f897866abfbcad9e0bbd2c016fe1972e Mon Sep 17 00:00:00 2001 From: Darmagon3 <62033006+Darmagon3@users.noreply.github.com> Date: Tue, 12 May 2026 12:12:21 -0400 Subject: [PATCH] Update description for min vertex distance convar The mesh calculation uses this number as a squared distance, which is contradictory to the description. --- lua/entities/gmod_wire_customprop/shared.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/entities/gmod_wire_customprop/shared.lua b/lua/entities/gmod_wire_customprop/shared.lua index 9a20f66050..97a62c2be5 100644 --- a/lua/entities/gmod_wire_customprop/shared.lua +++ b/lua/entities/gmod_wire_customprop/shared.lua @@ -11,7 +11,7 @@ ENT.AdminSpawnable = false -- It seems to require more time exponentially to the vertices amount. -- The same amount of vertices in total, but broken into different convexes greatly reduces the performance hit. CreateConVar("wire_customprops_hullsize_max", 2048, {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "The max hull size of a custom prop") -CreateConVar("wire_customprops_minvertexdistance", 0.2, {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "The min distance between two vertices in a custom prop.") +CreateConVar("wire_customprops_minvertexdistance", 0.2, {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "The minimum squared distance between two vertices in a custom prop.") CreateConVar("wire_customprops_vertices_max", 64, {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "How many vertices custom props can have.", 4) CreateConVar("wire_customprops_convexes_max", 12, {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "How many convexes custom props can have.", 1) CreateConVar("wire_customprops_max", 16, {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "The maximum number of custom props a player can spawn. (0 to disable)", 0) @@ -101,4 +101,4 @@ return { local i, pos2 = readInt16(data, pos) return dequantizeFloat16(i, min, max), pos2 end, -} \ No newline at end of file +}