Skip to content

Commit

Permalink
Cabal 01: Fix Mercenary production visual due to engine change
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob committed Oct 1, 2023
1 parent df3e80c commit eb7b70c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mods/sp/maps/cabal-01/mission.lua
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ WorldLoaded = function()

--- fake produce property:
local production_facing = Angle.New(640)
local production_woffset = WVec.New(256, 256, 0)
local production_woffset = WVec.New(0, 768, 0)
local production_coffset = CVec.New(2,1)
local rallypoint1_offset = CVec.New(4,1)
local rallypoint2_offset = CVec.New(4,4)
Expand Down Expand Up @@ -943,7 +943,8 @@ WorldLoaded = function()
end
local unit = Actor.Create(name, true, { Owner = LocalPlayer,Facing = production_facing, Location = producer.Location + production_coffset, CenterPosition = producer.CenterPosition + production_woffset })
if unit ~= nil then
unit.Patrol({producer.Location + rallypoint1_offset, producer.Location + rallypoint2_offset}, false)
unit.MoveIntoWorld(producer.Location + rallypoint1_offset)
unit.Move(producer.Location + rallypoint2_offset)
end
end)
end)
Expand Down

0 comments on commit eb7b70c

Please sign in to comment.