Files
OpenRA/mods/d2k/rules/defaults.yaml
atlimit8 bbd54cb32f Added IDisabledTrait & rewrote upgrade code using a level-based approach.
Upgradeable traits are notified whenever an upgrade of their declared types are granted or revoked.  The traits maintain their own internal level counter, which is then used to enable or disable the trait functionality.  A trait can register for multiple upgrade types which then all affect the internal level counter.

	IDisabledTrait for identifying (and filtering) disabled traits
	UpgradableTrait provides an abstract base for traits to support upgrade levels
	Added IDisabledTrait support to GlobalButtonOrderGenerator

	Includes rework by pchote with alterations.
2014-11-26 05:45:26 -06:00

316 lines
5.3 KiB
YAML

^Vehicle:
AppearsOnRadar:
Mobile:
Crushes: crate
TerrainSpeeds:
Sand: 90
Rock: 100
Transition: 95
Concrete: 100
Spice: 80
SpiceBlobs: 80
Dune: 60
ROT: 5
SelectionDecorations:
Selectable:
Voice: VehicleVoice
TargetableUnit:
TargetTypes: Ground, C4
Passenger:
CargoType: Vehicle
AttackMove:
HiddenUnderFog:
GainsExperience:
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
ProximityCaptor:
Types: Vehicle
GivesBounty:
Repairable:
RepairBuildings: repaira,repairo,repairh
CombatDebugOverlay:
Guard:
Guardable:
RenderUnit:
BodyOrientation:
UpdatesPlayerStatistics:
Huntable:
Demolishable:
ScriptTriggers:
GainsStatUpgrades:
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
UpgradeManager:
^Tank:
AppearsOnRadar:
Mobile:
Crushes: crate
TerrainSpeeds:
Sand: 85
Rock: 100
Transition: 92
Concrete: 100
Spice: 80
SpiceBlobs: 80
Dune: 70
ROT: 5
SelectionDecorations:
Selectable:
Voice: VehicleVoice
TargetableUnit:
TargetTypes: Ground, C4
Passenger:
CargoType: Vehicle
AttackMove:
HiddenUnderFog:
GainsExperience:
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
ProximityCaptor:
Types: Tank
GivesBounty:
Repairable:
RepairBuildings: repaira,repairo,repairh
CombatDebugOverlay:
Guard:
Guardable:
RenderUnit:
BodyOrientation:
UpdatesPlayerStatistics:
Huntable:
Demolishable:
ScriptTriggers:
GainsStatUpgrades:
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
UpgradeManager:
^Husk:
Health:
HP: 75
Armor:
Type: Light
Husk:
AllowedTerrain: Sand, Rock, Transition, Concrete, Spice, SpiceBlobs, Dune
HiddenUnderFog:
Burns:
Interval: 4
ProximityCaptor:
Types: Husk
Tooltip:
Name: Wreck
BodyOrientation:
TargetableUnit:
TargetTypes: Ground
RequiresForceFire: yes
AutoTargetIgnore:
Capturable:
Type: husk
AllowAllies: yes
CaptureThreshold: 1.0
TransformOnCapture:
ForceHealthPercentage: 25
DisabledOverlay:
ScriptTriggers:
^TowerHusk:
Health:
HP: 125
Armor:
Type: Concrete
Husk:
AppearsOnRadar:
HiddenUnderFog:
Burns:
Interval: 2
EditorAppearance:
RelativeToTopLeft: yes
Tooltip:
Name: Destroyed Tower
ProximityCaptor:
Types: Husk
BodyOrientation:
ScriptTriggers:
^AircraftHusk:
Inherits: ^Husk
-Husk:
-Burns:
-Capturable:
-TransformOnCapture:
-TargetableUnit:
FallsToEarth:
Spins: False
Moves: True
Explosion: UnitExplodeScale
^Infantry:
AppearsOnRadar:
Health:
Radius: 96
Armor:
Type: None
RevealsShroud:
Range: 6c0
Mobile:
Crushes: crate
SharesCell: true
TerrainSpeeds:
Sand: 80
Rock: 100
Transition: 90
Concrete: 100
Spice: 80
SpiceBlobs: 80
Dune: 60
Rough: 70
SelectionDecorations:
Selectable:
Voice: InfantryVoice
TargetableUnit:
TargetTypes: Ground
RenderInfantry:
TakeCover:
WithDeathAnimation:
AutoTarget:
AttackMove:
Passenger:
CargoType: Infantry
PipType: Green
HiddenUnderFog:
GainsExperience:
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
ProximityCaptor:
Types: Infantry
GivesBounty:
Crushable:
CrushSound: CRUSH1.WAV
RepairableNear:
Buildings: barra, barro
CloseEnough: 1
CombatDebugOverlay:
Guard:
Guardable:
BodyOrientation:
UpdatesPlayerStatistics:
Huntable:
ScriptTriggers:
DeathSounds:
Parachutable:
FallRate: 130
GainsStatUpgrades:
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
UpgradeManager:
^Plane:
AppearsOnRadar:
UseLocation: yes
SelectionDecorations:
Selectable:
Voice: GenericVoice
TargetableAircraft:
TargetTypes: Air
GroundedTargetTypes: Ground
HiddenUnderFog:
GainsExperience:
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
ProximityCaptor:
Types: Plane
GivesBounty:
CombatDebugOverlay:
BodyOrientation:
UpdatesPlayerStatistics:
Huntable:
AttackMove:
ScriptTriggers:
GainsStatUpgrades:
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
UpgradeManager:
^Helicopter:
Inherits: ^Plane
^Building:
AppearsOnRadar:
SelectionDecorations:
Selectable:
Priority: 2
TargetableBuilding:
TargetTypes: Ground, C4, Structure
Building:
Dimensions: 1,1
Footprint: x
TerrainTypes: Rock, Concrete
BuildSounds: BUILD1.WAV
Adjacent: 3
GivesBuildableArea:
ExternalCapturable:
ExternalCapturableBar:
SoundOnDamageTransition:
DamagedSound: EXPLSML1.WAV
DestroyedSound: EXPLHG1.WAV
RenderBuilding:
WithBuildingExplosion:
RepairableBuilding:
EmitInfantryOnSell:
ActorTypes: rifle,rifle,rifle,rifle,rifle,bazooka,bazooka,bazooka,engineer
MustBeDestroyed:
GivesExperience:
FrozenUnderFog:
CaptureNotification:
ActorLostNotification:
Notification: BuildingLost
EditorAppearance:
RelativeToTopLeft: yes
ShakeOnDeath:
ProximityCaptor:
Types: Building
Sellable:
SellSounds: BUILD1.WAV
GivesBounty:
CombatDebugOverlay:
Guardable:
Range: 3
BodyOrientation:
UpdatesPlayerStatistics:
WithCrumbleOverlay:
Huntable:
Demolishable:
DamagedWithoutFoundation:
ThrowsShrapnel:
Weapons: shrapnel
Pieces: 3, 7
Range: 2c0, 5c0
ScriptTriggers:
WithMakeAnimation: