Introduce a Targetable trait; Subs can attack bridges; May introduce subtle bugs due to previous stupid assumption that !selectable == !attackable.

This commit is contained in:
Paul Chote
2010-07-28 22:57:14 +12:00
parent f9f6720437
commit 7a4fa93ce9
15 changed files with 91 additions and 58 deletions

View File

@@ -165,8 +165,6 @@ BRIDGE1:
Building:
Footprint: ____ ____ ____ ____
Dimensions: 4,4
# Selectable:
# Bounds: 96,96
BRIDGE2:
Inherits: ^Bridge
@@ -176,8 +174,6 @@ BRIDGE2:
Building:
Footprint: _____ _____ _____ _____ _____
Dimensions: 5,5
# Selectable:
# Bounds: 120,120
BRIDGE3:
Inherits: ^Bridge
@@ -187,8 +183,6 @@ BRIDGE3:
Building:
Footprint: ______ ______ ______ ______ ______
Dimensions: 6,5
# Selectable:
# Bounds: 144,120
BRIDGE4:
Inherits: ^Bridge
@@ -198,5 +192,3 @@ BRIDGE4:
Building:
Footprint: ______ ______ ______ ______
Dimensions: 6,4
# Selectable:
# Bounds: 144,96

View File

@@ -7,6 +7,8 @@
TerrainSpeeds: 60%, 40%, 100%, 0%, 0%, 0%, 0%, 50%, 40%, 0%
Selectable:
Voice: VehicleVoice
Targetable:
TargetTypes: Ground
Repairable:
Chronoshiftable:
Passenger:
@@ -26,6 +28,8 @@
TerrainSpeeds: 80%, 70%, 100%, 0%, 0%, 0%, 0%, 70%, 70%, 0%
Selectable:
Voice: VehicleVoice
Targetable:
TargetTypes: Ground
Repairable:
Chronoshiftable:
Passenger:
@@ -38,7 +42,8 @@
^Helicopter:
Category: Plane
Unit:
TargetType: Air
Targetable:
TargetTypes: Air
Selectable:
Voice: VehicleVoice
HiddenUnderFog:
@@ -60,6 +65,8 @@
TerrainSpeeds: 90%, 80%, 100%, 0%, 0%, 0%, 0%, 90%, 80%, 0%
Selectable:
Voice: GenericVoice
Targetable:
TargetTypes: Ground
RenderInfantry:
AutoTarget:
Passenger:
@@ -73,9 +80,10 @@
^Plane:
Category: Plane
Unit:
TargetType: Air
Selectable:
Voice: GenericVoice
Targetable:
TargetTypes: Air
HiddenUnderFog:
GainsExperience:
GivesExperience:
@@ -85,6 +93,8 @@
Category: Building
Selectable:
Priority: 3
Targetable:
TargetTypes: Ground
Building:
Dimensions: 1,1
Footprint: x
@@ -186,11 +196,10 @@
Category: Building
Valued:
Description: Bridge
Selectable:
Bounds: 96,96
Targetable:
TargetTypes: Ground, Water
BelowUnits:
Building:
TargetType: Ground, Water
DamagedSound: xplos.aud
DestroyedSound: xplobig4.aud
Footprint: ______ ______ ______ ______

View File

@@ -463,7 +463,6 @@ C17:
LZRange: 1
Inherits: ^Plane
Unit:
TargetType: Special
HP: 25
Armor: light
ROT: 5
@@ -475,6 +474,7 @@ C17:
Passengers: 10
Invulnerable:
-Selectable:
-Targetable:
-GainsExperience:
A10:

View File

@@ -164,8 +164,7 @@ BRIDGE1:
Building:
Footprint: _____ _____ _____
Dimensions: 5,3
# Selectable:
# Bounds: 120,48
BRIDGE2:
Inherits: ^Bridge
Bridge:
@@ -175,5 +174,3 @@ BRIDGE2:
Building:
Footprint: _____ _____
Dimensions: 5,2
# Selectable:
# Bounds: 120,48

View File

@@ -8,6 +8,8 @@
TerrainSpeeds: 60%, 40%, 100%, 0%, 0%, 0%, 0%, 90%, 40%, 0%
Selectable:
Voice: VehicleVoice
Targetable:
TargetTypes: Ground
Repairable:
Chronoshiftable:
Passenger:
@@ -27,6 +29,8 @@
TerrainSpeeds: 80%, 70%, 100%, 0%, 0%, 0%, 0%, 90%, 70%, 0%
Selectable:
Voice: VehicleVoice
Targetable:
TargetTypes: Ground
Repairable:
Chronoshiftable:
Passenger:
@@ -48,6 +52,8 @@
TerrainSpeeds: 90%, 80%, 100%, 0%, 0%, 0%, 0%, 100%, 80%, 0%
Selectable:
Voice: GenericVoice
Targetable:
TargetTypes: Ground
RenderInfantry:
AutoTarget:
Passenger:
@@ -60,12 +66,13 @@
^Ship:
Category: Ship
Unit:
TargetType: Ground, Water
Mobile:
TerrainTypes: Clear, Rough, Road, Tree, Water, Rock, Wall, Ore, Beach, River
TerrainSpeeds: 0%, 0%, 0%, 0%, 100%, 0%, 0%, 0%, 0%, 0%
Selectable:
Voice: ShipVoice
Targetable:
TargetTypes: Ground, Water
HiddenUnderFog:
GainsExperience:
GivesExperience:
@@ -74,9 +81,10 @@
^Plane:
Category: Plane
Unit:
TargetType: Air
Selectable:
Voice: GenericVoice
Targetable:
TargetTypes: Air
HiddenUnderFog:
GainsExperience:
GivesExperience:
@@ -86,6 +94,8 @@
Category: Building
Selectable:
Priority: 3
Targetable:
TargetTypes: Ground
Building:
Dimensions: 1,1
Footprint: x
@@ -114,6 +124,8 @@
Range: 8
Selectable:
Priority: 1
Targetable:
TargetTypes: Ground
RenderBuildingWall:
HasMakeAnimation: false
Palette: terrain
@@ -154,7 +166,6 @@
Speed: 0
HP: 140
Armor: Heavy
TargetType: Special
Husk:
Selectable:
Priority: -1
@@ -165,11 +176,10 @@
Category: Building
Valued:
Description: Bridge
# Selectable:
# Bounds: 96,48
BelowUnits:
Targetable:
TargetTypes: Ground, Water
Building:
TargetType: Ground, Water
Footprint: ____ ____
Dimensions: 4,2
HP: 1000

View File

@@ -59,8 +59,9 @@ SPEN:
Description: Sub Pen
LongDesc: Produces and repairs submarines and \ntransports
Hotkey: s
Targetable:
TargetTypes: Ground, Water
Building:
TargetType: Ground, Water
Power: -30
Footprint: xxx xxx xxx
Dimensions: 3,3
@@ -89,8 +90,9 @@ SYRD:
Description: Shipyard
LongDesc: Produces and repairs ships
Hotkey: s
Targetable:
TargetTypes: Ground, Water
Building:
TargetType: Ground, Water
Power: -30
Footprint: xxx xxx xxx
Dimensions: 3,3
@@ -794,8 +796,9 @@ SYRF:
# Description: Fake Shipyard
# LongDesc: Looks like a Shipyard
# Hotkey: z
Targetable:
TargetTypes: Ground, Water
Building:
TargetType: Ground, Water
Power: -2
Footprint: xxx xxx xxx
Dimensions: 3,3
@@ -813,8 +816,9 @@ SYRF:
SPEF:
Inherits: ^Building
Targetable:
TargetTypes: Ground, Water
Building:
TargetType: Ground, Water
Power: -2
Footprint: xxx xxx xxx
Dimensions: 3,3

View File

@@ -185,7 +185,6 @@ MINP:
AvoidFriendly: yes
Unit:
HP: 1
TargetType: special
RenderUnit:
BelowUnits:
InvisibleToOthers:
@@ -198,7 +197,6 @@ MINV:
AvoidFriendly: yes
Unit:
HP: 1
TargetType: special
RenderUnit:
BelowUnits:
InvisibleToOthers:
@@ -252,14 +250,12 @@ CAMERA:
Aircraft:
Unit:
HP:1000
TargetType: special
RevealsShroud:
Range: 10
FLARE:
Unit:
HP:1000
TargetType: special
RevealsShroud:
Range: 3
RenderFlare: