Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/entities/gmod_door_exterior/modules/sh_interior.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- Adds an interior


CreateConVar("doors_interior_tries", 10000, {FCVAR_ARCHIVE, FCVAR_REPLICATED, FCVAR_NOTIFY}, "Doors - How many tries to find a valid interior placement")

if SERVER then
function ENT:FindPosition(e)
Expand All @@ -16,7 +16,7 @@ if SERVER then
td.maxs=e.maxs or e:OBBMaxs()
td.mask=MASK_PLAYERSOLID
local max=16384
local tries=10000
local tries=GetConVar("doors_interior_tries"):GetInt()
local targetframetime=1/30
local nowhere
local highest
Expand Down