Merge pull request #9521 from pchote/produce-support

Implement actor-producing support powers
This commit is contained in:
Oliver Brakmann
2015-10-07 21:41:36 +02:00
16 changed files with 248 additions and 41 deletions

View File

@@ -113,7 +113,7 @@ fremen:
Buildable:
Queue: Infantry
BuildPaletteOrder: 100
Prerequisites: ~barracks.atreides, palace, ~techlevel.high
Prerequisites: ~disabled
Mobile:
Speed: 43
Health:
@@ -207,7 +207,7 @@ saboteur:
Buildable:
Queue: Infantry
BuildPaletteOrder: 100
Prerequisites: ~barracks.ordos, palace, ~techlevel.high
Prerequisites: ~disabled
Valued:
Cost: 800
Tooltip:

View File

@@ -782,6 +782,12 @@ palace:
ProvidesPrerequisite@nuke:
Prerequisite: palace.nuke
Factions: harkonnen
ProvidesPrerequisite@fremen:
Prerequisite: palace.fremen
Factions: atreides
ProvidesPrerequisite@saboteur:
Prerequisite: palace.saboteur
Factions: ordos
NukePower:
Cursor: nuke
Icon: deathhand
@@ -800,6 +806,39 @@ palace:
DisplayRadarPing: True
CameraActor: camera
ActivationSequence:
ProduceActorPower@fremen:
Description: Recruit Fremen
LongDesc: Elite sniper infantry unit \n Strong vs Infantry\n Weak vs Vehicles\n Special Ability: Invisibility
Icon: fremen
Prerequisites: ~techlevel.superweapons, ~palace.fremen
Actors: fremen, fremen
Type: Palace
ChargeTime: 60
ReadyAudio: Reinforce
BlockedAudio: NoRoom
OrderName: ProduceActorPower.Fremen
ProduceActorPower@saboteur:
Description: Recruit Saboteur
LongDesc: Sneaky infantry, armed with explosives \n Strong vs Buildings\n Weak vs Everything\n Special Ability: destroy buildings
Icon: saboteur
Prerequisites: ~techlevel.superweapons, ~palace.saboteur
Actors: saboteur
Type: Palace
ChargeTime: 40
ReadyAudio: Reinforce
BlockedAudio: NoRoom
OrderName: ProduceActorPower.Saboteur
Exit@1:
SpawnOffset: -704,768,0
ExitCell: -1,2
Exit@2:
SpawnOffset: -704,768,0
ExitCell: -1,3
Exit@3:
SpawnOffset: -704,768,0
ExitCell: 0,3
Production:
Produces: Palace
CanPowerDown:
DisabledOverlay:
RequiresPower:

View File

@@ -324,6 +324,12 @@ icon:
ornistrike: DATA.R8
Start: 4031
Offset: -30,-24
fremen: DATA.R8
Start: 4032
Offset: -30,-24
saboteur: DATA.R8
Start: 4034
Offset: -30,-24
deathhand: DATA.R8
Start: 4035
Offset: -30,-24

View File

@@ -287,3 +287,44 @@ APACHE:
RenderSprites:
Hovers:
HUNTER:
Inherits@1: ^GainsExperience
Inherits@2: ^ExistsInWorld
Valued:
Cost: 1000
Tooltip:
Name: Hunter-Seeker Droid
Health:
HP: 500
Armor:
Type: Light
DemoTruck:
Explodes:
Weapon: SuicideBomb
EmptyWeapon: SuicideBomb
Aircraft:
RearmBuildings:
RepairBuildings:
ROT: 16
Speed: 355
CruiseAltitude: 256
CanHover: True
Targetable:
TargetTypes: Ground, Vehicle
HiddenUnderFog:
Type: CenterPosition
BodyOrientation:
UseClassicPerspectiveFudge: False
RenderSprites:
Image: GGHUNT
WithFacingSpriteBody:
Hovers:
QuantizeFacingsFromSequence:
AutoSelectionSize:
DrawLineToTarget:
AppearsOnRadar:
UseLocation: yes
Selectable:
SelectionDecorations:
Palette: pips
ActorLostNotification:

View File

@@ -375,6 +375,18 @@ GAPLUG:
InsufficientPowerSound:
DisplayRadarPing: True
CameraActor: camera
ProduceActorPower:
UpgradeTypes: plug.hunterseeker
UpgradeMinEnabledLevel: 1
Description: Hunter Seeker
LongDesc: Releases a drone that will acquire and destroy an enemy target.
Icon: hunterseeker
Actors: hunter
Type: HunterSeeker
ChargeTime: 720
Production:
Produces: HunterSeeker
Exit@1:
SupportPowerChargeBar:
Power:
Amount: -150
@@ -382,22 +394,36 @@ GAPLUG:
UpgradeTypes: plug.ioncannon
UpgradeMinEnabledLevel: 1
Amount: -100
Power@hunterseeker:
UpgradeTypes: plug.hunterseeker
UpgradeMinEnabledLevel: 1
Amount: -50
Pluggable@pluga:
Offset: 0,2
Upgrades:
plug.ioncannon: plug.ioncannon, plug.ioncannona
plug.hunterseeker: plug.hunterseeker, plug.hunterseekera
WithIdleOverlay@ioncannona:
UpgradeTypes: plug.ioncannona
UpgradeMinEnabledLevel: 1
Sequence: idle-ioncannona
WithIdleOverlay@hunterseekera:
UpgradeTypes: plug.hunterseekera
UpgradeMinEnabledLevel: 1
Sequence: idle-hunterseekera
Pluggable@plugb:
Offset: 1,2
Upgrades:
plug.ioncannon: plug.ioncannon, plug.ioncannonb
plug.hunterseeker: plug.hunterseeker, plug.hunterseekerb
WithIdleOverlay@ioncannonb:
UpgradeTypes: plug.ioncannonb
UpgradeMinEnabledLevel: 1
Sequence: idle-ioncannonb
WithIdleOverlay@hunterseekerb:
UpgradeTypes: plug.hunterseekerb
UpgradeMinEnabledLevel: 1
Sequence: idle-hunterseekerb
ProvidesPrerequisite@buildingname:
SelectionDecorations:
VisualBounds: 115,104,0,-24

View File

@@ -189,6 +189,22 @@ GAPOWRUP:
Power:
Amount: 50
GAPLUG2:
Inherits: ^BuildingPlug
Valued:
Cost: 1000
Tooltip:
Name: Seeker Control
Description: Enables use of the hunter-seeker droid.
Buildable:
Queue: Defense
BuildPaletteOrder: 1000
Prerequisites: gaplug, gatech, gaweap, ~structures.gdi
Plug:
Type: plug.hunterseeker
Power:
Amount: -50
GAPLUG3:
Inherits: ^BuildingPlug
Valued:

View File

@@ -311,6 +311,16 @@ NATMPL:
Amount: -200
WithIdleOverlay@LIGHTS:
Sequence: idle-lights
ProduceActorPower:
Description: Hunter Seeker
LongDesc: Releases a drone that will acquire and destroy an enemy target.
Icon: hunterseeker
Actors: hunter
Type: HunterSeeker
ChargeTime: 720
Production:
Produces: HunterSeeker
Exit@1:
NASTLH:
Inherits: ^Building

View File

@@ -148,27 +148,3 @@ LPST:
UpgradeMinEnabledLevel: 1
Range: 18
RenderDetectionCircle:
GGHUNT:
Inherits: ^Vehicle
Valued:
Cost: 1000
Tooltip:
Name: Hunter-Seeker Droid
Mobile:
ROT: 16
Speed: 355
Health:
HP: 500
Armor:
Type: Light
RevealsShroud:
Range: 7c0
WithFacingSpriteBody:
DemoTruck:
Voice: Attack
Explodes:
Weapon: SuicideBomb
EmptyWeapon: SuicideBomb
AutoSelectionSize:

View File

@@ -334,6 +334,7 @@ largecraters:
icon:
clustermissile: mltiicon
ioncannon: ioncicon
hunterseeker: detnicon
clustermissile:
up: null # TODO

View File

@@ -1234,6 +1234,15 @@ gaplug:
Length: 15
Reverses: true
Tick: 120
idle-hunterseekera: gaplug_e
Length: 15
Tick: 120
Reverses: true
Offset: -12, -42
idle-hunterseekerb: gaplug_e
Length: 15
Reverses: true
Tick: 120
make: gtplugmk
Length: 17
ShadowStart: 17
@@ -1241,5 +1250,8 @@ gaplug:
Offset: 0, 0
UseTilesetCode: false
gaplug2:
icon: rad2icon
gaplug3:
icon: rad3icon