Merge pull request #9928 from Biofreak1987/fix_nod05_airstrike_crash
Fix nod05 airstrike Lua crash and update map rules
This commit is contained in:
@@ -48,6 +48,11 @@ Players:
|
|||||||
OwnsWorld: True
|
OwnsWorld: True
|
||||||
NonCombatant: True
|
NonCombatant: True
|
||||||
Faction: gdi
|
Faction: gdi
|
||||||
|
PlayerReference@Civilians:
|
||||||
|
Name: Civilians
|
||||||
|
NonCombatant: True
|
||||||
|
Faction: gdi
|
||||||
|
Enemies: Nod
|
||||||
PlayerReference@Nod:
|
PlayerReference@Nod:
|
||||||
Name: Nod
|
Name: Nod
|
||||||
Playable: True
|
Playable: True
|
||||||
@@ -60,7 +65,7 @@ Players:
|
|||||||
LockSpawn: True
|
LockSpawn: True
|
||||||
LockTeam: True
|
LockTeam: True
|
||||||
Allies: Nod
|
Allies: Nod
|
||||||
Enemies: GDI
|
Enemies: GDI, Civilians
|
||||||
|
|
||||||
Actors:
|
Actors:
|
||||||
Actor0: sbag
|
Actor0: sbag
|
||||||
@@ -224,28 +229,28 @@ Actors:
|
|||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor65: v24
|
Actor65: v24
|
||||||
Location: 18,38
|
Location: 18,38
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor66: v32
|
Actor66: v32
|
||||||
Location: 19,41
|
Location: 19,41
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor67: v30
|
Actor67: v30
|
||||||
Location: 15,40
|
Location: 15,40
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor68: v29
|
Actor68: v29
|
||||||
Location: 17,40
|
Location: 17,40
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor69: v28
|
Actor69: v28
|
||||||
Location: 23,38
|
Location: 23,38
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor70: v27
|
Actor70: v27
|
||||||
Location: 23,36
|
Location: 23,36
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor71: v27
|
Actor71: v27
|
||||||
Location: 22,36
|
Location: 22,36
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor72: v26
|
Actor72: v26
|
||||||
Location: 16,37
|
Location: 16,37
|
||||||
Owner: Neutral
|
Owner: Civilians
|
||||||
Actor82: mtnk
|
Actor82: mtnk
|
||||||
Location: 21,21
|
Location: 21,21
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
@@ -429,6 +434,14 @@ Rules:
|
|||||||
Tooltip:
|
Tooltip:
|
||||||
GenericVisibility: Enemy
|
GenericVisibility: Enemy
|
||||||
ShowOwnerRow: false
|
ShowOwnerRow: false
|
||||||
|
^Wall:
|
||||||
|
Tooltip:
|
||||||
|
ShowOwnerRow: false
|
||||||
|
^Husk:
|
||||||
|
Tooltip:
|
||||||
|
GenericVisibility: Enemy, Ally, Neutral
|
||||||
|
GenericStancePrefix: false
|
||||||
|
ShowOwnerRow: false
|
||||||
NUK2:
|
NUK2:
|
||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
@@ -486,6 +499,8 @@ Rules:
|
|||||||
HARV:
|
HARV:
|
||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
|
Harvester:
|
||||||
|
SearchFromOrderRadius: 24
|
||||||
FTNK:
|
FTNK:
|
||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
@@ -495,9 +510,6 @@ Rules:
|
|||||||
ARTY:
|
ARTY:
|
||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
E3:
|
|
||||||
Buildable:
|
|
||||||
Prerequisites: ~disabled
|
|
||||||
MTNK:
|
MTNK:
|
||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
@@ -510,6 +522,13 @@ Rules:
|
|||||||
MSAM:
|
MSAM:
|
||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
|
SBAG:
|
||||||
|
Buildable:
|
||||||
|
Queue: Defence.GDI, Defence.Nod
|
||||||
|
HQ:
|
||||||
|
AirstrikePower:
|
||||||
|
Prerequisites: gdi
|
||||||
|
SquadSize: 1
|
||||||
A10:
|
A10:
|
||||||
Targetable:
|
Targetable:
|
||||||
|
|
||||||
|
|||||||
@@ -319,6 +319,11 @@ end
|
|||||||
searches = 0
|
searches = 0
|
||||||
getAirstrikeTarget = function()
|
getAirstrikeTarget = function()
|
||||||
local list = player.GetGroundAttackers()
|
local list = player.GetGroundAttackers()
|
||||||
|
|
||||||
|
if #list == 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local target = list[DateTime.GameTime % #list + 1].CenterPosition
|
local target = list[DateTime.GameTime % #list + 1].CenterPosition
|
||||||
|
|
||||||
local sams = Map.ActorsInCircle(target, WDist.New(8 * 1024), function(actor)
|
local sams = Map.ActorsInCircle(target, WDist.New(8 * 1024), function(actor)
|
||||||
|
|||||||
Reference in New Issue
Block a user