We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91590b0 commit eb71b34Copy full SHA for eb71b34
1 file changed
entities/entities/lambda_npcmaker.lua
@@ -6,10 +6,10 @@ local math = math
6
local ents = ents
7
local player = player
8
local IsValid = IsValid
9
-local math_clamp = math.Clamp
10
11
-- Turn this off when we are sure it is all correct.
12
local WARN_ON_FRIENDLY_SCALING = true
+local SIMULATE_HIGH_PLAYERCOUNT = false
13
14
DEFINE_BASECLASS("lambda_entity")
15
ENT.Base = "lambda_entity"
@@ -184,9 +184,11 @@ function ENT:ShouldScale()
184
end
185
186
local function GetPlayerCount()
187
+ if SIMULATE_HIGH_PLAYERCOUNT then
188
+ return 35 -- Simulate
189
+ end
190
local actual = player.GetCount()
- --return actual
- return 35 -- Simulate
191
+ return actual
192
193
194
-- The officially recommended supported maximum player count for scaling.
0 commit comments