Replace deprecated API usage.

This commit is contained in:
Paul Chote
2020-06-10 22:14:52 +01:00
committed by reaperrr
parent 27602a4a97
commit e5a1a8a706
36 changed files with 61 additions and 61 deletions

View File

@@ -115,8 +115,8 @@ end
SendParabombs = function()
local proxy = Actor.Create("powerproxy.parabombs", false, { Owner = soviets })
proxy.SendAirstrikeFrom(BadgerEntryPoint2.Location, ParabombPoint1.Location)
proxy.SendAirstrikeFrom(BadgerEntryPoint2.Location + CVec.New(0, 3), ParabombPoint2.Location)
proxy.TargetAirstrike(ParabombPoint1.CenterPosition, (BadgerEntryPoint2.CenterPosition - ParabombPoint1.CenterPosition).Facing)
proxy.TargetAirstrike(ParabombPoint2.CenterPosition, (Map.CenterOfCell(BadgerEntryPoint2.Location + CVec.New(0, 3)) - ParabombPoint2.CenterPosition).Facing)
proxy.Destroy()
end
@@ -126,7 +126,7 @@ SendParatroopers = function()
local target = Map.CenterOfCell(para.drop)
local dir = target - Map.CenterOfCell(para.entry)
local aircraft = proxy.ActivateParatroopers(target, dir.Facing)
local aircraft = proxy.TargetParatroopers(target, dir.Facing)
Utils.Do(aircraft, function(a)
Trigger.OnPassengerExited(a, function(t, p)
IdleHunt(p)