Skip to content
Permalink
Browse files

scavengers turned off by default

  • Loading branch information
Damgam committed Jan 25, 2020
1 parent d86ed23 commit 840f7558837a6acb188c47c31cdeadf3b9607f4f
Showing with 7 additions and 1 deletion.
  1. +6 −0 LuaRules/Gadgets/gaia_scavenger_spawner.lua
  2. +1 −1 ModOptions.lua
@@ -503,6 +503,12 @@ function gadget:GameFrame(n)
local z = math.random(z-100,z+100)
local y = Spring.GetGroundHeight(x,z)
Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"})
else
local x,y,z = Spring.GetUnitPosition(scav)
local x = math.random(x-500,x+500)
local z = math.random(z-500,z+500)
local y = Spring.GetGroundHeight(x,z)
Spring.GiveOrderToUnit(scav, CMD.MOVE,{x,y,z}, {"shift"})
end
else
local nearest = Spring.GetUnitNearestEnemy(scav, 200000, false)
@@ -285,7 +285,7 @@ local options= {
desc = 'This multiplier will be applied on the amount of civilians a map will end up with',
type = 'number',
section= 'gameplayoptions',
def = 1,
def = 0,
min = 0,
max = 5,
step = 0.1,

0 comments on commit 840f755

Please sign in to comment.
You can’t perform that action at this time.