Skip to content

Commit

Permalink
Fix constraintcore convars (#2892)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denneisk authored Nov 22, 2023
1 parent da9ef93 commit 6f2c24f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lua/entities/gmod_wire_expression2/core/custom/constraintcore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ local math_max = math.max
local table_insert = table.insert

local cvFlags = {FCVAR_ARCHIVE}
local maxWeld = CreateConVar( "wire_expression2_max_constraints_weld", "0", cvFlags, 0 )
local maxRope = CreateConVar( "wire_expression2_max_constraints_rope", "0", cvFlags, 0 )
local maxAxis = CreateConVar( "wire_expression2_max_constraints_axis", "0", cvFlags, 0 )
local maxTotal = CreateConVar( "wire_expression2_max_constraints_total", "0", cvFlags, 0 )
local maxSlider = CreateConVar( "wire_expression2_max_constraints_slider", "0", cvFlags, 0 )
local maxElastic = CreateConVar( "wire_expression2_max_constraints_elastic", "0", cvFlags, 0 )
local maxNocollide = CreateConVar( "wire_expression2_max_constraints_nocollide", "0", cvFlags, 0 )
local maxHydraulic = CreateConVar( "wire_expression2_max_constraints_hydraulic", "0", cvFlags, 0 )
local maxPerEntity = CreateConVar( "wire_expression2_max_consttraints_per_entity", "0", cvFlags, 0 )
local maxBallsocket = CreateConVar( "wire_expression2_max_constraints_ballsocket", "0", cvFlags, 0 )
local maxAdvBallsocket = CreateConVar( "wire_expression2_max_constraints_ballsocket_adv", "0", cvFlags, 0)
local maxWeld = CreateConVar( "wire_expression2_max_constraints_weld", "0", cvFlags, nil, 0)
local maxRope = CreateConVar( "wire_expression2_max_constraints_rope", "0", cvFlags, nil, 0)
local maxAxis = CreateConVar( "wire_expression2_max_constraints_axis", "0", cvFlags, nil, 0)
local maxTotal = CreateConVar( "wire_expression2_max_constraints_total", "0", cvFlags, nil, 0)
local maxSlider = CreateConVar( "wire_expression2_max_constraints_slider", "0", cvFlags, nil, 0)
local maxElastic = CreateConVar( "wire_expression2_max_constraints_elastic", "0", cvFlags, nil, 0)
local maxNocollide = CreateConVar( "wire_expression2_max_constraints_nocollide", "0", cvFlags, nil, 0)
local maxHydraulic = CreateConVar( "wire_expression2_max_constraints_hydraulic", "0", cvFlags, nil, 0)
local maxPerEntity = CreateConVar( "wire_expression2_max_consttraints_per_entity", "0", cvFlags, nil, 0)
local maxBallsocket = CreateConVar( "wire_expression2_max_constraints_ballsocket", "0", cvFlags, nil, 0)
local maxAdvBallsocket = CreateConVar( "wire_expression2_max_constraints_ballsocket_adv", "0", cvFlags, nil, 0)

local edictCutOff = CreateConVar( "wire_expression2_constraints_edict_cutoff", "0", cvFlags, "At what edict count will E2s be prevented from creating new rope-like constraints (0 turns the check off)", 0, 8192 )
local shouldCleanup = CreateConVar( "Wire_expression2_constraints_cleanup", "0", cvFlags, "Whether or not Constraint Core should remove all constraints made by an E2 when it's deleted", 0, 1 )
Expand Down

0 comments on commit 6f2c24f

Please sign in to comment.