Remove the Lua scripted harvester delivery from the D2k shellmap and reorganize Carryall actor definitions
This commit is contained in:
@@ -111,7 +111,6 @@ Actors:
|
|||||||
AtreidesSpiceRefinery: refinery
|
AtreidesSpiceRefinery: refinery
|
||||||
Location: 57,58
|
Location: 57,58
|
||||||
Owner: Atreides
|
Owner: Atreides
|
||||||
FreeActor: false
|
|
||||||
|
|
||||||
Smudges:
|
Smudges:
|
||||||
|
|
||||||
@@ -127,14 +126,6 @@ Rules:
|
|||||||
Maximum: 1
|
Maximum: 1
|
||||||
LuaScript:
|
LuaScript:
|
||||||
Scripts: shellmap.lua
|
Scripts: shellmap.lua
|
||||||
carryall.scripted:
|
|
||||||
Helicopter:
|
|
||||||
LandWhenIdle: True
|
|
||||||
Cargo:
|
|
||||||
Types: Vehicle
|
|
||||||
WithCargo:
|
|
||||||
DisplayTypes: Vehicle
|
|
||||||
LocalOffset: 0,0,-256
|
|
||||||
rockettower:
|
rockettower:
|
||||||
Power:
|
Power:
|
||||||
Amount: 100
|
Amount: 100
|
||||||
|
|||||||
@@ -1,20 +1,3 @@
|
|||||||
InitializeHarvester = function(harvester)
|
|
||||||
harvester.FindResources()
|
|
||||||
Trigger.OnRemovedFromWorld(harvester, InsertHarvester)
|
|
||||||
end
|
|
||||||
|
|
||||||
InsertHarvester = function()
|
|
||||||
local harvesters = Reinforcements.ReinforceWithTransport(atreides, "carryall.scripted", { "harvester" },
|
|
||||||
{ Entry.Location, AtreidesSpiceRefinery.Location + CVec.New(2, 3) }, { Entry.Location })[2]
|
|
||||||
|
|
||||||
Utils.Do(harvesters, function(harvester)
|
|
||||||
Trigger.OnAddedToWorld(harvester, function() InitializeHarvester(harvester) end)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
WorldLoaded = function()
|
WorldLoaded = function()
|
||||||
atreides = Player.GetPlayer("Atreides")
|
|
||||||
|
|
||||||
InsertHarvester()
|
|
||||||
Media.PlayMusic("score")
|
Media.PlayMusic("score")
|
||||||
end
|
end
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
carryall.scripted:
|
carryall.reinforce:
|
||||||
Inherits: ^Helicopter
|
Inherits: ^Helicopter
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 1200
|
Cost: 1200
|
||||||
@@ -10,7 +10,7 @@ carryall.scripted:
|
|||||||
Armor:
|
Armor:
|
||||||
Type: Light
|
Type: Light
|
||||||
Helicopter:
|
Helicopter:
|
||||||
CruiseAltitude: 2048
|
CruiseAltitude: 2100
|
||||||
InitialFacing: 0
|
InitialFacing: 0
|
||||||
ROT: 4
|
ROT: 4
|
||||||
Speed: 160
|
Speed: 160
|
||||||
@@ -18,7 +18,7 @@ carryall.scripted:
|
|||||||
RepairBuildings: repair
|
RepairBuildings: repair
|
||||||
RearmBuildings:
|
RearmBuildings:
|
||||||
Repulsable: False
|
Repulsable: False
|
||||||
LandAltitude: 512
|
LandAltitude: 100
|
||||||
LandWhenIdle: False
|
LandWhenIdle: False
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
Image: carryall
|
Image: carryall
|
||||||
@@ -26,16 +26,17 @@ carryall.scripted:
|
|||||||
LeavesHusk:
|
LeavesHusk:
|
||||||
HuskActor: carryall.husk
|
HuskActor: carryall.husk
|
||||||
-Selectable:
|
-Selectable:
|
||||||
|
-TargetableAircraft:
|
||||||
|
Carryall:
|
||||||
|
Automatic: False
|
||||||
|
|
||||||
carryall:
|
carryall:
|
||||||
Inherits: carryall.scripted
|
Inherits: carryall.reinforce
|
||||||
Carryall:
|
Carryall:
|
||||||
|
Automatic: True
|
||||||
Buildable:
|
Buildable:
|
||||||
Queue: Aircraft
|
Queue: Aircraft
|
||||||
BuildPaletteOrder: 120
|
BuildPaletteOrder: 120
|
||||||
Helicopter:
|
|
||||||
CruiseAltitude: 2100
|
|
||||||
LandAltitude: 100
|
|
||||||
|
|
||||||
carryall.infantry:
|
carryall.infantry:
|
||||||
Inherits: ^Plane
|
Inherits: ^Plane
|
||||||
@@ -61,6 +62,7 @@ carryall.infantry:
|
|||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
Types: Infantry
|
Types: Infantry
|
||||||
-Selectable:
|
-Selectable:
|
||||||
|
-TargetableAircraft:
|
||||||
-GainsExperience:
|
-GainsExperience:
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Carryall
|
Name: Carryall
|
||||||
|
|||||||
Reference in New Issue
Block a user