Files
OpenRA/mods/ra/maps/fort-lonestar/map.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

956 lines
16 KiB
YAML

Selectable: True
MapFormat: 6
RequiresMod: ra
Title: Fort Lonestar
Description: Survive multiple waves of attacking enemies.
Author: Nuke'm Bro.
Tileset: TEMPERAT
MapSize: 96,96
Bounds: 8,8,48,48
UseAsShellmap: False
Type: Minigame
Options:
Fog: True
Shroud: True
AllyBuildRadius: False
FragileAlliances: False
StartingCash: 50
ConfigurableStartingUnits: False
Players:
PlayerReference@Neutral:
Name: Neutral
OwnsWorld: True
NonCombatant: True
Race: allies
PlayerReference@Multi0:
Name: Multi0
Playable: True
AllowBots: False
LockTeam: True
Allies: Multi1, Multi2, Multi3
Enemies: Soviets
PlayerReference@Multi1:
Name: Multi1
Playable: True
AllowBots: False
LockTeam: True
Allies: Multi0, Multi2, Multi3
Enemies: Soviets
PlayerReference@Multi2:
Name: Multi2
Playable: True
AllowBots: False
LockTeam: True
Allies: Multi0, Multi1, Multi3
Enemies: Soviets
PlayerReference@Multi3:
Name: Multi3
Playable: True
AllowBots: False
LockTeam: True
Allies: Multi0, Multi1, Multi2
Enemies: Soviets
PlayerReference@Soviets:
Name: Soviets
Race: soviet
ColorRamp: 0,255,128
Enemies: Multi0, Multi1, Multi2, Multi3
Actors:
Actor76: t11
Location: 47,27
Owner: Neutral
Actor47: t12
Location: 55,24
Owner: Neutral
Actor25: tc03
Location: 54,49
Owner: Neutral
Actor14: tc04
Location: 24,7
Owner: Neutral
Actor10: tc04
Location: 38,53
Owner: Neutral
Actor0: t14
Location: 32,16
Owner: Neutral
Actor75: tc04
Location: 45,25
Owner: Neutral
Actor72: tc01
Location: 49,16
Owner: Neutral
Actor58: t10
Location: 22,54
Owner: Neutral
Actor26: tc01
Location: 54,41
Owner: Neutral
Actor37: tc01
Location: 54,21
Owner: Neutral
Actor60: tc05
Location: 7,16
Owner: Neutral
Actor69: t17
Location: 23,8
Owner: Neutral
Actor4: tc04
Location: 29,45
Owner: Neutral
Actor6: t17
Location: 33,43
Owner: Neutral
Actor16: tc04
Location: 53,16
Owner: Neutral
Actor21: tc03
Location: 8,14
Owner: Neutral
Actor8: t14
Location: 49,37
Owner: Neutral
Actor29: tc01
Location: 8,42
Owner: Neutral
Actor49: t15
Location: 54,47
Owner: Neutral
Actor62: tc05
Location: 6,43
Owner: Neutral
Actor73: tc05
Location: 16,34
Owner: Neutral
Actor30: barr
Location: 36,26
Owner: Multi0
Actor84: brik
Location: 35,25
Owner: Neutral
Actor32: tc01
Location: 8,24
Owner: Neutral
Actor59: tc05
Location: 7,39
Owner: Neutral
Actor5: tc01
Location: 44,44
Owner: Neutral
Actor67: brik
Location: 29,25
Owner: Neutral
Actor41: brik
Location: 25,25
Owner: Neutral
Actor56: brik
Location: 26,25
Owner: Neutral
Actor85: brik
Location: 39,26
Owner: Neutral
Actor81: brik
Location: 38,25
Owner: Neutral
Actor65: brik
Location: 27,25
Owner: Neutral
Actor66: brik
Location: 28,25
Owner: Neutral
Actor51: t08
Location: 55,46
Owner: Neutral
Actor57: t12
Location: 19,54
Owner: Neutral
Actor54: t11
Location: 26,54
Owner: Neutral
Actor33: tc01
Location: 21,7
Owner: Neutral
Actor27: tc01
Location: 42,54
Owner: Neutral
Actor23: tc03
Location: 16,54
Owner: Neutral
Actor15: tc04
Location: 38,8
Owner: Neutral
Actor19: tc03
Location: 18,7
Owner: Neutral
Actor17: tc03
Location: 54,26
Owner: Neutral
Actor83: brik
Location: 36,25
Owner: Neutral
Actor197: brik
Location: 39,37
Owner: Neutral
Actor11: tc04
Location: 20,53
Owner: Neutral
Actor9: tc04
Location: 53,37
Owner: Neutral
Actor7: tc02
Location: 44,36
Owner: Neutral
Actor3: t15
Location: 19,25
Owner: Neutral
Actor1: t05
Location: 29,16
Owner: Neutral
Actor82: brik
Location: 37,25
Owner: Neutral
Actor86: brik
Location: 39,27
Owner: Neutral
Actor80: brik
Location: 39,25
Owner: Neutral
Actor71: tc02
Location: 15,40
Owner: Neutral
Actor64: t06
Location: 18,16
Owner: Neutral
Actor63: t14
Location: 8,22
Owner: Neutral
Actor53: t08
Location: 41,55
Owner: Neutral
Actor61: tc05
Location: 54,39
Owner: Neutral
Actor48: t01
Location: 54,23
Owner: Neutral
Actor50: t17
Location: 54,44
Owner: Neutral
Actor36: tc01
Location: 42,8
Owner: Neutral
Actor52: t12
Location: 44,53
Owner: Neutral
Actor87: brik
Location: 39,28
Owner: Neutral
Actor91: brik
Location: 37,39
Owner: Neutral
Actor196: brik
Location: 39,38
Owner: Neutral
Actor195: brik
Location: 39,39
Owner: Neutral
Actor45: brik
Location: 25,28
Owner: Neutral
Actor92: brik
Location: 39,29
Owner: Neutral
Actor194: brik
Location: 38,39
Owner: Neutral
Actor55: brik
Location: 25,39
Owner: Neutral
Actor200: brik
Location: 28,39
Owner: Neutral
Actor233: brik
Location: 29,39
Owner: Neutral
Actor240: brik
Location: 39,35
Owner: Neutral
Actor199: brik
Location: 27,39
Owner: Neutral
Spawn1: mpspawn
Location: 36,28
Owner: Neutral
Actor28: tc01
Location: 24,54
Owner: Neutral
Actor22: tc03
Location: 7,46
Owner: Neutral
Actor24: tc03
Location: 45,54
Owner: Neutral
Actor18: tc03
Location: 45,8
Owner: Neutral
Actor12: tc04
Location: 7,37
Owner: Neutral
Actor13: tc04
Location: 8,19
Owner: Neutral
Actor2: tc04
Location: 14,23
Owner: Neutral
Actor74: t06
Location: 19,36
Owner: Neutral
Actor46: t11
Location: 54,19
Owner: Neutral
Actor42: t16
Location: 53,19
Owner: Neutral
Actor68: tc05
Location: 35,7
Owner: Neutral
Actor239: brik
Location: 39,36
Owner: Neutral
Actor89: brik
Location: 35,39
Owner: Neutral
Actor90: brik
Location: 36,39
Owner: Neutral
OilDerrick1: oilb
Location: 32,30
Owner: Multi0
Actor237: brik
Location: 25,35
Owner: Neutral
Actor236: brik
Location: 25,36
Owner: Neutral
Actor235: brik
Location: 25,37
Owner: Neutral
Actor234: brik
Location: 25,38
Owner: Neutral
Actor44: brik
Location: 25,27
Owner: Neutral
Actor43: brik
Location: 25,26
Owner: Neutral
Actor198: brik
Location: 26,39
Owner: Neutral
Actor88: brik
Location: 25,29
Owner: Neutral
Entry1: waypoint
Location: 8,8
Owner: Neutral
Entry2: waypoint
Location: 31,8
Owner: Neutral
Entry3: waypoint
Location: 55,8
Owner: Neutral
Entry4: waypoint
Location: 55,32
Owner: Neutral
Entry5: waypoint
Location: 55,55
Owner: Neutral
Entry6: waypoint
Location: 32,55
Owner: Neutral
Entry7: waypoint
Location: 8,55
Owner: Neutral
Entry8: waypoint
Location: 8,32
Owner: Neutral
Paradrop1: waypoint
Location: 32,28
Owner: Neutral
Paradrop2: waypoint
Location: 27,32
Owner: Neutral
Paradrop3: waypoint
Location: 32,36
Owner: Neutral
Paradrop4: waypoint
Location: 36,32
Owner: Neutral
Patrol3: waypoint
Location: 32,46
Owner: Neutral
Patrol4: waypoint
Location: 46,32
Owner: Neutral
Patrol2: waypoint
Location: 17,32
Owner: Neutral
Patrol1: waypoint
Location: 32,18
Owner: Neutral
Sniper1: sniper
Location: 9,26
Owner: Soviets
Sniper2: sniper
Location: 10,21
Owner: Soviets
Sniper3: sniper
Location: 26,9
Owner: Soviets
Sniper4: sniper
Location: 40,10
Owner: Soviets
Sniper5: sniper
Location: 53,21
Owner: Soviets
Sniper6: sniper
Location: 54,25
Owner: Soviets
Sniper7: sniper
Location: 53,40
Owner: Soviets
Sniper8: sniper
Location: 54,43
Owner: Soviets
Sniper9: sniper
Location: 54,46
Owner: Soviets
Sniper10: sniper
Location: 43,53
Owner: Soviets
Sniper11: sniper
Location: 8,36
Owner: Soviets
Sniper12: sniper
Location: 28,55
Owner: Soviets
Actor100: barr
Location: 27,26
Owner: Multi3
Actor99: barr
Location: 27,36
Owner: Multi2
Actor31: barr
Location: 36,36
Owner: Multi1
OilDerrick2: oilb
Location: 32,32
Owner: Multi1
OilDerrick3: oilb
Location: 30,32
Owner: Multi2
OilDerrick4: oilb
Location: 30,30
Owner: Multi3
Spawn2: mpspawn
Location: 27,28
Owner: Neutral
Spawn3: mpspawn
Location: 27,38
Owner: Neutral
Spawn4: mpspawn
Location: 36,38
Owner: Neutral
Smudges:
Rules:
World:
CrateSpawner:
Maximum: 1
SpawnInterval: 100
CrateActors: fortcrate
-SpawnMPUnits:
-MPStartLocations:
LuaScript:
Scripts: fort-lonestar.lua
FORTCRATE:
Inherits: ^Crate
SupportPowerCrateAction@parabombs:
SelectionShares: 30
Proxy: powerproxy.parabombs
Effect: parabombs
HealUnitsCrateAction:
SelectionShares: 30
Notification: heal2.aud
Effect: heal
GiveCashCrateAction:
Amount: 400
UseCashTick: true
SelectionShares: 30
GiveUnitCrateAction@e7:
Units: e7
SelectionShares: 10
Player:
PlayerResources:
InitialCash: 50
ClassicProductionQueue@Infantry:
BuildSpeed: 1
^Infantry:
MustBeDestroyed:
^Vehicle:
MustBeDestroyed:
^Tank:
MustBeDestroyed:
OILB:
Health:
HP: 3000
Armor:
Type: Wood
Bib:
RevealsShroud:
Range: 3c0
CashTrickler:
Period: 250
Amount: 50
BARR:
Health:
HP: 1000
Production:
Produces: Defense, Infantry, Soldier, Dog
-Sellable:
BaseProvider:
Range: 12
Power:
Amount: 0
FTUR:
Buildable:
Prerequisites: barracks
Valued:
Cost: 400
Power:
Amount: 0
PBOX:
Buildable:
Prerequisites: barracks
Valued:
Cost: 400
Health:
HP: 200
Armor:
Type: Heavy
Power:
Amount: 0
HBOX:
Buildable:
Prerequisites: ~disabled
GUN:
Buildable:
Prerequisites: ~disabled
SAM:
Buildable:
Prerequisites: ~disabled
SBAG:
Buildable:
Prerequisites: ~disabled
FENC:
Buildable:
Prerequisites: ~disabled
MSLO:
Buildable:
Prerequisites: ~disabled
GAP:
Buildable:
Prerequisites: ~disabled
IRON:
Buildable:
Prerequisites: ~disabled
PDOX:
Buildable:
Prerequisites: ~disabled
AGUN:
Buildable:
Prerequisites: ~disabled
TSLA:
Buildable:
Prerequisites: ~disabled
DOG:
Buildable:
Prerequisites: barracks
Valued:
Cost: 20
E1:
Buildable:
Prerequisites: barracks
Valued:
Cost: 20
E2:
Buildable:
Prerequisites: barracks
Valued:
Cost: 40
Explodes:
Weapon: UnitExplodeSmall
Chance: 20
E3:
Buildable:
Prerequisites: barracks
Valued:
Cost: 60
E4:
Buildable:
Prerequisites: barracks
Valued:
Cost: 100
E6:
Buildable:
Prerequisites: barracks
Valued:
Cost: 100
E7:
Buildable:
Prerequisites: barracks
Valued:
Cost: 750
3TNK:
Inherits: ^Tank
Armament:
Weapon: TankNapalm
Recoil: 200
RecoilRecovery: 38
LocalOffset: 0,85,0, 0,-85,0
MECH:
Buildable:
Prerequisites: ~disabled
HIJACKER:
Buildable:
Prerequisites: ~disabled
MEDI:
Buildable:
Prerequisites: barracks
Valued:
Cost: 100
SHOK:
Buildable:
Prerequisites: barracks
Valued:
Cost: 150
SNIPER:
Valued:
Cost: 200
Buildable:
Prerequisites: barracks
Health:
HP: 200
AutoTarget:
InitialStance: Defend
InvulnerabilityUpgrade@UNKILLABLE:
UpgradeTypes: unkillable
UpgradeMinEnabledLevel: 1
SPY:
Inherits: ^Infantry
Buildable:
Queue: Infantry
BuildPaletteOrder: 60
Prerequisites: barracks
Valued:
Cost: 300
ARTY:
Inherits: ^Tank
Valued:
Cost: 600
Health:
HP: 75
RevealsShroud:
Range: 7c0
V2RL:
Health:
HP: 100
4TNK:
Health:
HP: 2500
Armor:
Type: Heavy
Mobile:
Speed: 56
RevealsShroud:
Range: 14c0
Turreted:
ROT: 1
AttackTurreted:
PrimaryWeapon: 120mm
SecondaryWeapon: MammothTusk
PrimaryLocalOffset: -4,-5,0,0,0, 4,-5,0,0,0
SecondaryLocalOffset: -7,2,0,0,25, 7,2,0,0,-25
PrimaryRecoil: 8
PrimaryRecoilRecovery: 0.7
SecondaryRecoil: 2
Explodes:
Weapon: napalm
EmptyWeapon: napalm
SelfHealing:
Step: 2
Ticks: 1
HealIfBelow: 40%
DamageCooldown: 150
BRIK:
Buildable:
Prerequisites: ~disabled
BADR.Bomber:
Inherits: ^Plane
AttackBomber:
Armament:
Weapon: ParaBomb
Health:
HP: 60
Armor:
Type: Light
Plane:
ROT: 5
Speed: 280
LimitedAmmo:
Ammo: 30
RenderUnit:
Image: mig
WithShadow:
-Selectable:
-GainsExperience:
Tooltip:
Name: Mig Bomber
-EjectOnDeath:
Sequences:
VoxelSequences:
Weapons:
120mm:
ReloadDelay: 150
Range: 10c0
Report: CANNON1.AUD
Burst: 6
Projectile: Bullet
Speed: 204
High: true
Inaccuracy: 1c682
Image: 120MM
ContrailLength: 50
Warhead: SpreadDamage
Spread: 256
Versus:
None: 75
Wood: 75
Light: 75
Concrete: 100
DeathType: 4
Damage: 150
Warhead@2Smu: LeaveSmudge
SmudgeType: Crater
Warhead@3Eff: CreateEffect
Explosion: self_destruct
WaterExplosion: self_destruct
MammothTusk:
ReloadDelay: 300
Range: 10c0
Report: MISSILE6.AUD
Burst: 2
ValidTargets: Ground, Air
Projectile: Missile
Speed: 128
Arm: 2
High: true
Shadow: false
Proximity: true
Trail: smokey
ContrailLength: 150
Inaccuracy: 853
Image: DRAGON
ROT: 10
RangeLimit: 80
Warhead: SpreadDamage
Spread: 640
ValidTargets: Ground, Air
Versus:
None: 125
Wood: 110
Light: 110
Heavy: 100
Concrete: 200
DeathType: 3
Damage: 250
Warhead@2Smu: LeaveSmudge
SmudgeType: Crater
Warhead@3Eff: CreateEffect
Explosion: nuke
WaterExplosion: nuke
TankNapalm:
ReloadDelay: 40
Range: 8c0
Report: AACANON3.AUD
ValidTargets: Ground
Burst: 6
BurstDelay: 1
Projectile: Bullet
Speed: 426
Image: 120MM
Inaccuracy: 2c512
Trail: smokey
ContrailLength: 2
Warhead: SpreadDamage
Spread: 341
ValidTargets: Ground
Versus:
None: 90
Wood: 170
Light: 100
Heavy: 100
Concrete: 100
DeathType: 4
Damage: 15
Warhead@2Smu: LeaveSmudge
SmudgeType: Scorch
Warhead@3Eff: CreateEffect
Explosion: small_explosion
WaterExplosion: small_explosion
ImpactSound: firebl3.aud
ParaBomb:
ReloadDelay: 5
Range: 5c0
Report: CHUTE1.AUD
Projectile: GravityBomb
Image: BOMBLET
Warhead: SpreadDamage
Spread: 426
Versus:
None: 125
Wood: 100
Light: 60
Concrete: 25
DeathType: 5
Damage: 200
Warhead@2Smu: LeaveSmudge
SmudgeType: Crater
Warhead@3Eff: CreateEffect
Explosion: napalm
ImpactSound: firebl3.aud
WaterExplosion: napalm
155mm:
ReloadDelay: 10
Range: 7c5
Burst: 20
MinRange: 3c0
-Report:
Projectile: Bullet
Speed: 170
Trail: fb4
Image: fb3
High: true
Angle: 30
Inaccuracy: 1c682
ContrailLength: 2
Warhead: SpreadDamage
Spread: 426
Versus:
None: 80
Wood: 100
Light: 60
Heavy: 75
Concrete: 35
DeathType: 5
Damage: 10
Warhead@2Smu: LeaveSmudge
SmudgeType: Scorch
Warhead@3Eff: CreateEffect
Explosion: small_napalm
WaterExplosion: small_napalm
ImpactSound: firebl3.aud
FLAK-23:
ReloadDelay: 10
Range: 8c0
Report: AACANON3.AUD
ValidTargets: Air, Ground
Projectile: Bullet
Speed: 1c682
High: true
Warhead: SpreadDamage
Spread: 213
ValidTargets: Air, Ground
Versus:
None: 35
Wood: 30
Light: 30
Heavy: 40
Concrete: 30
Damage: 25
Warhead@2Smu: LeaveSmudge
SmudgeType: Scorch
Warhead@3Eff: CreateEffect
Explosion: med_explosion
SCUD:
ReloadDelay: 280
Range: 7c0
MinRange: 3c0
Report: MISSILE1.AUD
Projectile: Bullet
Speed: 170
Arm: 10
High: true
Shadow: false
Proximity: true
Trail: smokey
Inaccuracy: 426
Image: V2
Angle: 216
Warhead: SpreadDamage
Spread: 853
Versus:
None: 100
Wood: 90
Light: 80
Heavy: 70
DeathType: 3
Damage: 500
Warhead@2Smu: LeaveSmudge
SmudgeType: Crater
Warhead@3Eff: CreateEffect
Explosion: nuke
WaterExplosion: large_splash
ImpactSound: kaboom1.aud
WaterImpactSound: kaboom1.aud
SilencedPPK:
ReloadDelay: 80
Range: 25c0
Report: silppk.aud
Projectile: Bullet
Speed: 1c682
Warhead: SpreadDamage
Spread: 128
Versus:
Wood: 0
Light: 0
Heavy: 50
Concrete: 0
DeathType: 2
Damage: 150
Warhead@2Eff: CreateEffect
Explosion: piffs
Voices:
Notifications:
Translations: