Skip to content

Commit

Permalink
Scav spawning tweak (beyond-all-reason#3142)
Browse files Browse the repository at this point in the history
Raptor Burrow and Scav Beacon spawning tweak to help with small startboxes.
  • Loading branch information
Damgam authored Jun 10, 2024
1 parent 77e9e05 commit 69c4549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion luarules/gadgets/raptor_spawner_defense.lua
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ if gadgetHandler:IsSyncedCode() then
local spread = config.burrowSize*1.5
local spawnPosX, spawnPosY, spawnPosZ

if config.useScum and config.burrowSpawnType ~= "alwaysbox" and GetGameSeconds() > config.gracePeriod then -- Attempt #1, find position in creep/scum (skipped if creep is disabled or alwaysbox is enabled)
if config.useScum then -- Attempt #1, find position in creep/scum (skipped if creep is disabled or alwaysbox is enabled)
for _ = 1,100 do
spawnPosX = mRandom(spread, MAPSIZEX - spread)
spawnPosZ = mRandom(spread, MAPSIZEZ - spread)
Expand Down
2 changes: 1 addition & 1 deletion luarules/gadgets/scav_spawner_defense.lua
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ if gadgetHandler:IsSyncedCode() then
local spawnPosX, spawnPosY, spawnPosZ

if config.burrowSpawnType ~= "avoid" then
if config.useScum and config.burrowSpawnType ~= "alwaysbox" and GetGameSeconds() > config.gracePeriod then -- Attempt #1, find position in creep/scum (skipped if creep is disabled or alwaysbox is enabled)
if config.useScum then -- Attempt #1, find position in creep/scum (skipped if creep is disabled or alwaysbox is enabled)
for _ = 1,1000 do
spawnPosX = mRandom(spread, MAPSIZEX - spread)
spawnPosZ = mRandom(spread, MAPSIZEZ - spread)
Expand Down

0 comments on commit 69c4549

Please sign in to comment.