World:
	LuaScript:
		Scripts: mission.lua
	PaletteFromFile@temptd:
		Name: temptd
		Filename: bits/temperattd.pal
		ShadowIndex: 4
	PlayerColorPalette@TD:
		BasePalette: temptd
		BaseName: playertd
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
	PaletteFromFile@chromeTD:
		Name: chrometd
		Filename: bits/temperattd.pal
		ShadowIndex: 3
		AllowModifiers: false

TSLA:
	RevealsShroud:
		MinRange: 6c0
		Range: 7c0
	-DetectCloaked:
GUN:
	RevealsShroud:
		MinRange: 5c0
		Range: 6c512
	-DetectCloaked:
FTUR:
	-DetectCloaked:
PBOX:
	-DetectCloaked:

1TNK:
	Health:
		HP: 26000
	SpawnActorOnDeath:
		Probability: 0
		Actor: 1TNK.Husk

TRAN:
	Buildable:
		BuildPaletteOrder: 10
		BuildAtProductionType: Aircraft
		Prerequisites: ~techlevel.medium
	Health:
		HP: 14000

MRJ:
	Buildable:                                          
		BuildPaletteOrder: 320
	Mobile:
		Speed: 78

2TNK:
	Health:
		HP: 46000

TENT:
	Valued:
		Cost: 600

BARR:
	Valued:
		Cost: 600

WEAP:
	Valued:
		Cost: 1825

DOME:
	Valued:
		Cost: 1500

Player:
	Inherits: ^BasePlayer
	TechTree:
	ClassicProductionQueue@Building:
	    BuildTimeSpeedReduction: 100, 81, 72, 64, 57
	ClassicProductionQueue@Defense:
	    BuildTimeSpeedReduction: 100, 81, 72, 64, 57
	ClassicProductionQueue@Vehicle:
	ClassicProductionQueue@Infantry:
	    BuildTimeSpeedReduction: 100, 81, 72, 64, 57
	ClassicProductionQueue@Ship:
	    BuildTimeSpeedReduction: 100, 81, 72, 64, 57
	ClassicProductionQueue@Aircraft:
	    BuildTimeSpeedReduction: 100, 81, 72, 64, 57

STNK:
	Buildable:
		BuildDuration: 1410
		BuildPaletteOrder: 310
		BuildLimit: 3
		Description: Heavily armored infantry transport which \ncan cloak. Armed with anti-ground missiles.\nMaxium 3 can be built.\n Strong vs Vehicles \n Weak vs Infantry, Aircraft 
	Valued:
		Cost: 2000
	Health:
		HP: 46000
	Armor:
		Type: Heavy
	Mobile:
		Speed: 100
	Cargo:
		MaxWeight: 10
		PipCount: 10

CTNK:
	Buildable:
		BuildPaletteOrder: 310
	Valued:
		Cost: 2000
	Armor:
		Type: Heavy
	PortableChrono:
		ChargeDelay: 500
		MaxDistance: 24

TTNK:
	Buildable:
		BuildDuration: 2000
	Valued:
		Cost: 2000
	Mobile:
		Speed: 92


TRUK:
	Buildable:
		BuildDuration: 170
		BuildPaletteOrder: 450
	Valued:
		Cost: 1000
	DeliversCash:
		Payload: 1000

SNIPER:
	Buildable:
		Description: Elite sniper infantry unit.\n Maximum 500 can be trained.\n Strong vs Infantry\n Weak vs Vehicles, Aircraft
		BuildPaletteOrder: 130
		Prerequisites: dome, ~tent, ~techlevel.medium
		BuildDuration: 378
		BuildLimit: 500
	Valued:
		Cost: 500
	AutoTarget:
		InitialStance: Defend

DOG:
	Inherits: ^Soldier
	Buildable:
		Queue: Infantry
		BuildAtProductionType: Soldier
		BuildDuration: 85
		BuildPaletteOrder: 50
		Prerequisites: ~barracks, ~techlevel.infonly
		Description: Cheap scout & anti-infantry unit\n Can detect spies. \n Strong vs Infantry \n Weak vs Vehicles, Aircraft 
	Valued:
		Cost: 100
	Health:
		HP: 1

SPY: 
	Inherits@selection: ^SelectableSupportUnit
	Disguise:
		RevealDisguiseOn: Infiltrate

HARV:
	Buildable:
		Description: Collects Ore and Gems for processing.\nCan detect cloaked units.\n   Unarmed

SS:
	AutoTarget:
		InitialStance: Defend


THF:
	Inherits@selection: ^SelectableSupportUnit
	Buildable:
		BuildDuration: 170
	Valued:
		Cost: 250

MEDI:
	Buildable:                                          
		Description: Heals nearby infantry.\nMaximum 500 can be trained.\n  Unarmed
		BuildDuration: 85
		BuildLimit: 500

MECH:
	Buildable:                                          
		Description: Repairs nearby vehicles and restores\nhusks to working condition by capturing them.\nMaximum 500 can be trained.\n  Unarmed
		BuildPaletteOrder: 90
		BuildDuration: 85
		BuildLimit: 500

E6:
	Buildable:                                          
		BuildPaletteOrder: 120
E4:
	Buildable:                                          
		BuildPaletteOrder: 30
E2:
	Buildable:                                          
		BuildPaletteOrder: 60
SILO: 
	Buildable:                                          
		BuildPaletteOrder: 150
SAM: 
	Buildable:                                          
		BuildPaletteOrder: 120
DTRK: 
	Buildable:                                          
		BuildPaletteOrder: 420
MNLY: 
	Buildable:                                          
		BuildPaletteOrder: 440
4TNK: 
	Buildable:                                          
		BuildPaletteOrder: 250

# This is needed for Tanya to swim (^BaseWorld-E7)
^BaseWorld:
	Locomotor@NAVALFOOT:
		Name: navalfoot
		Crushes: mine, crate
		SharesCell: true
		TerrainSpeeds:
			Clear: 90
			Rough: 80
			Road: 100
			Bridge: 100
			Ore: 80
			Gems: 80
			Beach: 80
			River: 80
			Water: 80
E7:
	Buildable:
		Description: Elite commando infantry. Armed with\ndual pistols and C4.\nCan swim.\nUncrushable.\nMaximum 1 can be trained.\n  Strong vs Infantry, Buildings\n  Weak vs Vehicles, Aircraft\n  Special Ability: Destroy Buildings with C4
		BuildPaletteOrder: 140
	Mobile:
		Locomotor: navalfoot
	GrantConditionOnTerrain:
		Condition: swimming
		TerrainTypes: Water
	Targetable@WATER:
		TargetTypes: Water
		RequiresCondition: swimming
	WithInfantryBody:
		RequiresCondition: !swimming
	WithInfantryBody@SEA:
		RequiresCondition: swimming
		MoveSequence: swim
		DefaultAttackSequence: swim_shoot
		IdleSequences: swim_idle
		StandSequences: swim_stand
	WithDeathAnimation:
		RequiresCondition: !swimming
	Crushable:
		CrushClasses: heavywall

V3RL:
	Inherits: ^Vehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Vehicle
		BuildPaletteOrder: 230
		BuildDuration: 1450
		Prerequisites: dome, stek, ~vehicles.soviet, ~techlevel.high
		Description: Extreme long-range rocket artillery.\n  Strong vs Buildings, Defenses, Infantry\n  Weak vs Tanks, Aircraft
	Valued:
		Cost: 1500
	Tooltip:
		Name: V3 Launcher
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 20000
	Armor:
		Type: Light
	Mobile:
		Speed: 85
		Voice: Move
	Passenger:
		Voice: Move
	RevealsShroud:
		MinRange: 4c0
		Range: 5c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 4c0
	Armament:
		Weapon: V3Launcher
		ReloadingCondition: reloading
	AttackFrontal:
		TargetFrozenActors: True
		ForceFireIgnoresActors: True
		Voice: Attack
	WithFacingSpriteBody:
		RequiresCondition: !reloading
		Name: loaded
	WithFacingSpriteBody@EMPTY:
		RequiresCondition: reloading
		Sequence: empty-idle
		Name: reloading
	Explodes:
		Weapon: BarrelExplode
	ProducibleWithLevel:
		Prerequisites: vehicles.upgraded
	Selectable:
		DecorationBounds: 28,28
	Voiced:
		VoiceSet: V3Voice
	Exit:
		SpawnOffset: 0,-128,0
	AutoTarget:
		ScanRadius: 16


TNKD:
	Inherits: ^TrackedVehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Vehicle
		BuildPaletteOrder: 230
		BuildDuration: 1450
		Prerequisites: fix, atek, ~vehicles.allies, ~techlevel.high
		Description: Mobile anti-armor platform, sporting an big gun with long reload\n Strong vs Tanks, Vehicles\n Weak vs Infantry, Aircraft
	Valued:
		Cost: 1500
	Tooltip:
		Name: Tank Destroyer
		GenericName: Tank
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 74000
	Armor:
		Type: Heavy
	Mobile:
		Speed: 57
		Voice: Move
	Passenger:
		Voice: Move
	RevealsShroud:
		MinRange: 4c0
		Range: 6c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 4c0
	Turreted:
		TurnSpeed: 5
		Offset: -80,0,20
	Armament:
		Weapon: 183mm
		Recoil: 85
		RecoilRecovery: 25
		LocalOffset: 868,0,0
		MuzzleSequence: muzzle
	AttackTurreted:
		Voice: Attack
	WithMuzzleOverlay:
	WithSpriteTurret:
	SpawnActorOnDeath:
		Actor: TNKD.Husk
	Voiced:
		VoiceSet: TnkdVoice
	ProducibleWithLevel:
		Prerequisites: vehicles.upgraded
	Selectable:
		DecorationBounds: 28,28
	AutoTargetPriority@DEFAULT:
		ValidTargets: Infantry, Water, Underwater, Defense
	AutoTargetPriority@ATTACKANYTHING:
		ValidTargets: Infantry, Water, Underwater, Structure, Defense, Mine
	AutoTargetPriority@TANKDEFAULT:
		RequiresCondition: !stance-attackanything && !assault-move
		ValidTargets: Vehicle
		InvalidTargets: NoAutoTarget, WaterStructure
		Priority: 10
	AutoTargetPriority@TANKATTACKANYTHING:
		RequiresCondition: (stance-attackanything || assault-move)
		ValidTargets: Vehicle
		InvalidTargets: NoAutoTarget
		Priority: 10
TNKD.Husk:
	Inherits: ^Husk
	Tooltip:
		Name: Husk (Tank Destroyer)
	ThrowsParticle@turret:
		Anim: turret
	TransformOnCapture:
		IntoActor: tnkd
	InfiltrateForTransform:
		IntoActor: tnkd
	RenderSprites:
		Image: tnkd.destroyed
ATEK:
	Power:
		Amount: -100

KENN:
	Buildable:                                          
		Prerequisites: ~techlevel.null

# This is all required for the gates. (^Building-VGATE)
^Building:
	Capturable@2:          
		RequiresCondition: !build-incomplete
		Types: building-external  
^Wall:
	LineBuildNode:
		Types: wall, gate
^Gate:
	Inherits: ^Building
	-WithSpriteBody:
	-EngineerRepairable:
	-Capturable:
	-Capturable@2:
	-SpawnActorsOnSell:
	-CaptureManager:
	-CapturableProgressBar:
	-CapturableProgressBlink:
	-WithMakeAnimation:
	-GivesBuildableArea:
	-GivesExperience:
	-MustBeDestroyed:
	Health:
		HP: 35000
	Armor:
		Type: Heavy
	LineBuildNode:
		Types: concrete, gate
	WithGateSpriteBody:
		PauseOnCondition: disabled
	Tooltip:
		Name: Gate
	Building:
		BuildSounds: bits/audio/place2.aud
		TerrainTypes: Clear, Road
	RequiresBuildableArea:
		AreaTypes: building
		Adjacent: 4
	MapEditorData:
		Categories: Wall
	Gate:
		PauseOnCondition: disabled
		OpeningSound: bits/audio/hydrod1.aud
		ClosingSound: bits/audio/hvydoor1.aud
		BlocksProjectilesHeight: 0
HGATE:
	Inherits: ^Gate
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -1536, -512
			BottomRight: 1536, 512
	Building:
		Footprint: xxx
		Dimensions: 3,1
	Buildable:
		Queue: Defense
		BuildPaletteOrder: 30
		Prerequisites: fact, ~techlevel.medium
		Description: Places an horizontal gate.\nThe gate automatically opens for friendly units.\nBlocks enemy access into your base.
	Valued:
		Cost: 500
	Demolishable:
		Condition: being-demolished
	Sellable:
		RequiresCondition: !being-demolished
	CustomSellValue:
		Value: 50
	WithGateSpriteBody:
		WallConnections: -1,0, 3,0
	LineBuildNode:
		Connections: -1,0, 1,0
	Tooltip:
		Name: Gate - (horizontal)
	RevealsShroud:
		Range: 1c0
	RenderSprites:
		Image: hgate
VGATE:
	Inherits: ^Gate
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -512, -1536
			BottomRight: 512, 1536
	Building:
		Footprint: x x x
		Dimensions: 1,3
	Buildable:
		Queue: Defense
		BuildPaletteOrder: 31
		Prerequisites: fact, ~techlevel.medium
		Description: Places an vertical gate.\nThe gate automatically opens for friendly units.\nBlocks enemy access into your base.
	Valued:
		Cost: 500
	Demolishable:
		Condition: being-demolished
	Sellable:
		RequiresCondition: !being-demolished
	CustomSellValue:
		Value: 50
	WithGateSpriteBody:
		WallConnections: 0,-1, 0,3
	LineBuildNode:
		Connections: 0,-1, 0,1
	Tooltip:
		Name: Gate I (vertical)
	RevealsShroud:
		Range: 1c0

# Plays a nuke siren for incoming enemy nukes.
MSLO:
	NukePower:
		MissileWeapon: atomic
		IncomingSound: bits/audio/nukelaunch.aud
		LaunchSound: bits/audio/metalni.aud

# This is all required for the elite Russian paradrops. (E1R4-AFDL)
E1R4:
	Inherits: E1
	RenderSprites:
		Image: E1
	ProducibleWithLevel:
		Prerequisites: techlevel.infonly
		InitialLevels: 4
	-Buildable:
E3R4:
	Inherits: E3
	RenderSprites:
		Image: E3
	ProducibleWithLevel:
		Prerequisites: techlevel.infonly
		InitialLevels: 4
	-Buildable:
AFLD:
	ParatroopersPower@paratroopers:
		Prerequisites: aircraft.ukraine
	ParatroopersPower@paratroopersrussia:
		OrderName: RussiaParatroopers
		Prerequisites: aircraft.russia
		Icon: paratroopers
		ChargeInterval: 7500
		Description: Paratroopers
		LongDesc: A Badger drops a squad of elite infantry\nanywhere on the map.
		DropItems: E1R4,E1R4,E1R4,E3R4,E3R4
		ReinforcementsArrivedSpeechNotification: ReinforcementsArrived
		SelectTargetSpeechNotification: SelectTarget
		AllowImpassableCells: false
		QuantizedFacings: 8
		CameraActor: camera.paradrop
		DisplayBeacon: true
		BeaconPoster: pinficon
		ArrowSequence: arrow
		ClockSequence: clock
		CircleSequence: circles
		UseDirectionalTarget: True
		DirectionArrowAnimation: paradirection
		SupportPowerPaletteOrder: 50

PTNK:
	Inherits: ^TrackedVehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Vehicle
		BuildPaletteOrder: 230
		BuildDuration: 1450
		Prerequisites: dome, atek, ~vehicles.allies, ~techlevel.high
		Description: Medium-range artillery with Prism Tower derived weapon.\n  Strong vs Buildings, Defenses, Infantry, Light Armor\n  Weak vs Tanks, Aircraft
	Valued:
		Cost: 1500
	Tooltip:
		Name: Prism Tank
		GenericName: Tank
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 10000
	Armor:
		Type: Light
	Mobile:
		Speed: 82
		Voice: Move
	Passenger:
		Voice: Move
	RevealsShroud:
		MinRange: 4c0
		Range: 6c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 4c0
	Turreted:
		TurnSpeed: 5
		Offset: 100,0,0
	Armament:
		Weapon: PrisTLaser
		LocalOffset: 100,0,180
	AttackTurreted:
		TargetFrozenActors: True
		OpportunityFire: False
		Voice: Attack
	WithSpriteTurret:
	SpawnActorOnDeath:
		Actor: PTNK.Husk
	Voiced:
		VoiceSet: PrismVoice
	ProducibleWithLevel:
		Prerequisites: vehicles.upgraded
	Selectable:
		DecorationBounds: 28,28
PTNK.Husk:
	Inherits: ^Husk
	Tooltip:
		Name: Husk (Prism Tank)
	ThrowsParticle@turret:
		Anim: turret
	TransformOnCapture:
		IntoActor: ptnk
	InfiltrateForTransform:
		IntoActor: ptnk
	RenderSprites:
		Image: ptnk.destroyed


KIRO:
	Inherits: ^Helicopter
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	RenderSprites:
		Image: kirov
	Buildable:
		Queue: Aircraft
		BuildAtProductionType: Plane
		BuildPaletteOrder: 55
		BuildDurationModifier: 75
		Prerequisites: ~afld, stek, ~aircraft.soviet, ~techlevel.high
		Description: Heavily armoured airship equipped with massive bombs.\n Can self-reload. \n Strong vs Buildings, Infantry\n  Weak vs Aircraft, Vehicles
	Valued:
		Cost: 3000
	Tooltip:
		Name: Kirov Airship
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 200000
	Armor:
		Type: Heavy
	RevealsShroud:
		Range: 10c0
		MinRange: 8c0
		Type: GroundPosition
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 8c0
		Type: GroundPosition
	Armament@PRIMARY:
		Weapon: KirovBomb
		LocalOffset: -20,0,0
		PauseOnCondition: !ammo
	AmmoPool:
		Ammo: 8
		PipCount: 8
		AmmoCondition: ammo
	ReloadAmmoPool:
		Delay: 300
		Count: 8
		ResetOnFire: True
	AttackAircraft:
		FacingTolerance: 128
		AttackType: Hover
		Voice: Attack
	Aircraft:
		CruiseAltitude: 2c0
		InitialFacing: 192
		TurnSpeed: 3
		Speed: 50
		Voice: Move
		AltitudeVelocity: 0c50
		CanForceLand: False
	AutoTarget:
		InitialStanceAI: AttackAnything
		ScanRadius: 10
	SpawnActorOnDeath:
		Actor: KIRO.Husk
	WithIdleOverlay@ROTOR1AIR:
		Offset: -180,597,250
		Sequence: rotor
		RequiresCondition: airborne
	WithIdleOverlay@ROTOR1GROUND:
		Offset: -180,597,250
		Sequence: slow-rotor
		RequiresCondition: !airborne
	WithIdleOverlay@ROTOR2AIR:
		Offset: -180,-597,250
		Sequence: rotor
		RequiresCondition: airborne
	WithIdleOverlay@ROTOR2GROUND:
		Offset: -180,-597,250
		Sequence: slow-rotor
		RequiresCondition: !airborne
	SmokeTrailWhenDamaged@1:
		Offset: -100,500,100
	SmokeTrailWhenDamaged@2:
		Offset: -100,-500,100
	Rearmable:
		RearmActors: afld, afld.ukraine

	Selectable:
		Bounds: 36,28,0,2
		DecorationBounds: 40,40,0,1
	SelfHealing:
		PercentageStep: 1
		Delay: 25
		HealIfBelow: 75
		DamageCooldown: 150
	Voiced:
		VoiceSet: KirovVoice
	Explodes:
		Weapon: KirovExplode
		RequiresCondition: !airborne
KIRO.Husk:
	Inherits: ^HelicopterHusk
	Tooltip:
		Name: Husk (Kirov)
	Aircraft:
		TurnSpeed: 2
		Speed: 30
	FallsToEarth:
		MaximumSpinSpeed: 0
	SmokeTrailWhenDamaged@0:
		Offset: -432,560,0
		Interval: 2
		MinDamage: Undamaged
	SmokeTrailWhenDamaged@1:
		Offset: -432,-560,0
		Interval: 2
		MinDamage: Undamaged
	RevealsShroud:
		Range: 10c0
		Type: CenterPosition
	RenderSprites:
		Image: kirov
	FallsToEarth:
		Explosion: KirovExplode



BATF:
	Inherits: ^TrackedVehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	Buildable:
		Queue: Vehicle
		BuildPaletteOrder: 230
		BuildDuration: 2000
		Prerequisites: atek, ~vehicles.england, ~techlevel.high
		Description: Heavily-armored fortress on wheels, armed with multiple turrets.\nCan crush concrete walls \n Strong vs Vehicles, Aircraft\n Weak vs Infantry
	Valued:
		Cost: 2000
	Tooltip:
		Name: Battle Fortress
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 110000
	Armor:
		Type: Heavy
	Mobile:
		Locomotor: heavytracked
		Speed: 50
		Voice: Move
	RevealsShroud:
		MinRange: 4c0
		Range: 6c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 4c0
	AttackTurreted:
		Turrets: primary, secondary, tertiary
		Armaments: primary, secondary, tertiary
		Voice: Attack
	Armament@PRIMARY:
		Name: primary
		Turret: primary
		Weapon: BATFGun
		LocalOffset: 200,0,300
		MuzzleSequence: muzzle
	Armament@SECONDARY:
		Name: secondary
		Turret: secondary
		Weapon: BATFGun
		FireDelay: 8
		LocalOffset: 200,0,300
		MuzzleSequence: muzzle
	Armament@TERTIARY:
		Name: tertiary
		Turret: tertiary
		Weapon: BATFRockets
		LocalOffset: -200,0,300
		MuzzleSequence: muzzle
	Turreted@PRIMARY:
		Turret: primary
		Offset: 200,-300,0
		TurnSpeed: 3
	Turreted@SECONDARY:
		Turret: secondary
		Offset: 200,300,0
		TurnSpeed: 3
	Turreted@TERTIARY:
		Turret: tertiary
		Offset: -300,0,358
		TurnSpeed: 3
		PauseOnCondition: !cargo
	WithMuzzleOverlay:
	ProducibleWithLevel:
		Prerequisites: vehicles.upgraded
	Selectable:
		DecorationBounds: 44,38,0,-4
	Voiced:
		VoiceSet: BattleFortressVoice
	WithSpriteTurret@PRIMARY:
		Turret: primary
	WithSpriteTurret@SECONDARY:
		Turret: secondary
	WithSpriteTurret@TERTIARY:
		Turret: tertiary
		Sequence: turret2
	SpawnActorOnDeath:
		Actor: BATF.Husk
	Capturable:
BATF.Husk:
	Inherits: ^Husk
	Tooltip:
		Name: Husk (Battle Fortress)
	TransformOnCapture:
		IntoActor: batf
	InfiltrateForTransform:
		IntoActor: batf
	RenderSprites:
		Image: batf.destroyed


BITS/E13:
	Inherits: ^Soldier
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Infantry
		BuildAtProductionType: Soldier
		BuildPaletteOrder: 120
		BuildDuration: 335
		Prerequisites: ~tent, atek, ~infantry.germany, ~techlevel.high
		Description: Elite Infantry with portable Chrono cannons.\n Strong vs Infantry, Vehicles\n Weak vs Aircraft
	Valued:
		Cost: 350
	Tooltip:
		Name: Chrono Soldier
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 5000
	Mobile:
		Voice: Move
	RevealsShroud:
		Range: 5c0
	Armament@PRIMARY:
		Weapon: ChronoHandGun
		LocalOffset: 427, 0, 341
	Armament@GARRISONED:
		Name: garrisoned
		Weapon: ChronoHandGun
	PortableChrono:
		ChargeDelay: 500
		MaxDistance: 24
	TakeCover:
		ProneOffset: 227,0,-245
	AttackFrontal:
		Voice: Attack
	AttackMove:
		Voice: Move
	Passenger:
		Voice: Move
	Guard:
		Voice: Move
	WithInfantryBody:
		DefaultAttackSequence: shoot
		RequiresCondition: !parachute
	WithInfantryBody@PARACHUTE:
		StandSequences: parachute
		RequiresCondition: parachute
	Voiced:
		VoiceSet: ChronoVoice
	ProducibleWithLevel:
		Prerequisites: barracks.upgraded


B2B:
	Inherits: ^Plane
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Aircraft
		BuildAtProductionType: Helicopter
		BuildPaletteOrder: 50
		BuildDuration: 2000
		Prerequisites: ~hpad, atek, ~aircraft.france, ~techlevel.high
		Description: Stealthed Inferno Bomber.\nCannot attack air units.\n Strong vs Buildings, Infantry\n Weak vs Vehicles, Aircraft
	Valued:
		Cost: 2500
	Tooltip:
		Name: Stealth Bomber
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 10000
	RevealsShroud:
		MinRange: 10c0
		Range: 12c0
		Type: GroundPosition
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 10c0
		Type: GroundPosition
	Armament:
		Weapon: FireBomb
		PauseOnCondition: !ammo
	AttackAircraft:
		FacingTolerance: 20
		PersistentTargeting: false
		OpportunityFire: False
	Aircraft:
		CruiseAltitude: 2560
		TurnSpeed: 5
		Speed: 180
		Repulsable: False
		MaximumPitch: 56
	AutoTarget:
		InitialStance: HoldFire
		InitialStanceAI: HoldFire
	AmmoPool:
		Ammo: 1
		PipType: red
		AmmoCondition: ammo
	Selectable:
		Bounds: 36,28,0,2
		DecorationBounds: 40,29,0,1
	Contrail@1:
		Offset: -432,560,0 
	Contrail@2:
		Offset: -432,-560,0
	SpawnActorOnDeath:
		Actor: B2B.Husk
	SmokeTrailWhenDamaged@0:
		Offset: -432,560,0
		Interval: 2
	SmokeTrailWhenDamaged@1:
		Offset: -432,-560,0
		Interval: 2
	ProducibleWithLevel:
		Prerequisites: aircraft.upgraded
	Rearmable:
		RearmActors: hpad, hpad.france
	Cloak:
		InitialDelay: 125
		CloakDelay: 175
		CloakSound: appear1.aud
		UncloakSound: appear1.aud
		IsPlayerPalette: true
		PauseOnCondition: cloak-force-disabled
		UncloakOn: Attack, Heal, Dock
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
B2B.Husk:
	Inherits: ^PlaneHusk
	Tooltip:
		Name: B2 Stealth Bomber
	Aircraft:
		TurnSpeed: 5
		Speed: 223
	SmokeTrailWhenDamaged@0:
		Offset: -432,560,0
		Interval: 2
		MinDamage: Undamaged
	SmokeTrailWhenDamaged@1:
		Offset: -432,-560,0
		Interval: 2
		MinDamage: Undamaged
	RenderSprites:
		Image: b2b
	-RevealOnDeath:



HTUR:
	Inherits: ^Defense
	Inherits@AUTOTARGET: ^AutoTargetGround
	Inherits@shape: ^2x2Shape
	Buildable:
		Queue: Defense
		BuildPaletteOrder: 110
		BuildDuration: 1170
		Prerequisites: weap, ~structures.france, ~techlevel.medium
		Description: Anti-Armor artillary of epic propotions.\nCan detect cloaked units.\n Strong vs Vehicles\n Weak vs Infantry, Aircraft
	Valued:
		Cost: 1500
	Tooltip:
		Name: Grand Cannon
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Health:
		HP: 50000
	Armor:
		Type: Heavy
	RevealsShroud:
		MinRange: 6c0
		Range: 8c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 6c0
	Turreted:
		TurnSpeed: 2
		InitialFacing: 0
		RealignDelay: -1
	-WithSpriteBody:
	WithEmbeddedTurretSpriteBody:
	AttackTurreted:
	Armament:
		Weapon: 203mm
		MuzzleSequence: muzzle
		LocalOffset: 1000,200,60, 1000,0,60, 1000,-200,60
	WithMuzzleOverlay:
	Power:
		Amount: -100
	BodyOrientation:
		UseClassicFacingFudge: True
	Explodes:
		Weapon: BuildingExplode
		EmptyWeapon: BuildingExplode
	WithBuildingBib:
		HasMinibib: true
	Selectable:
		Bounds: 48,48


VOLK:
	Inherits: ^Soldier
	Inherits: GNRL
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Infantry
		BuildAtProductionType: Soldier
		BuildPaletteOrder: 140
		BuildDuration: 1170
		Prerequisites: ~barr, stek, ~infantry.russia, ~techlevel.high
		BuildLimit: 1
		Description: Elite cyborg commando infantry. Armed with\nanti-tank pistol.\n Maximum 1 can be trained.\n  Strong vs Infantry, Vehicles, Buildings\n Weak vs Aircraft
	Valued:
		Cost: 1500
	Tooltip:
		Name: Volkov
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 90000
	Armor:
		Type: Heavy
	Mobile:
		Speed: 64
		Voice: Move
	Guard:
		Voice: Move
	RevealsShroud:
		Range: 6c0
	Passenger:
		PipType: Red
		Voice: Move
	Armament:
		Weapon: VolkovGun
	Armament@GARRISONED:
		Name: garrisoned
		Weapon: VolkovGun
		MuzzleSequence: garrison-muzzle
	WithInfantryBody:
		DefaultAttackSequence: shoot
		StandSequences: stand
	ExternalCondition@PRODUCED:
		Condition: produced
	VoiceAnnouncement:
		RequiresCondition: produced
		Voice: Build
	AnnounceOnKill:
	Voiced:
		VoiceSet: VolkovVoice
	ProducibleWithLevel:
		Prerequisites: barracks.upgraded
	Crushable:
		CrushClasses: heavywall


ISU:
	Inherits: ^TrackedVehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Vehicle
		BuildPaletteOrder: 260
		BuildDuration: 2000
		Prerequisites: dome, stek, ~vehicles.ukraine, ~techlevel.high
		Description: Powerful medium-range artillery.\n Strong vs Buildings, Infantry\n Weak vs Aircraft
	Valued:
		Cost: 2000
	Tooltip:
		Name: Siege Tank
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 60000
	Armor:
		Type: Heavy
	Mobile:
		TurnSpeed: 2
		Speed: 56
		Locomotor: heavytracked
		Voice: Move
	RevealsShroud:
		MinRange: 4c0
		Range: 6c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 4c0
	Armament:
		Weapon: 380mm
		LocalOffset: 824,0,208
		MuzzleSequence: muzzle
	AttackFrontal:
		TargetFrozenActors: True
		ForceFireIgnoresActors: True
		Voice: Attack
	WithMuzzleOverlay:
	Explodes:
		Weapon: ArtilleryExplode
		LoadedChance: 75
	ProducibleWithLevel:
		Prerequisites: vehicles.upgraded
	Passenger:
		Voice: Move
	Voiced:
		VoiceSet: SiegeTankVoice
	SpawnActorOnDeath:
		Actor: ISU.Husk
ISU.Husk:
	Inherits: ^Husk
	Tooltip:
		Name: Husk (Siege Tank)
	TransformOnCapture:
		IntoActor: isu
	InfiltrateForTransform:
		IntoActor: isu
	RenderSprites:
		Image: isu.destroyed

MSAR:
	Inherits: ^Vehicle
	Inherits@SELECTION: ^SelectableSupportUnit
	Valued:
		Cost: 1000
	Tooltip:
		Name: Mobile Sensor Array
		RequiresCondition: !deployed
	Tooltip@DEPLOYED:
		Name: Mobile Sensor Array (deployed)
		RequiresCondition: deployed
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Buildable:
		Queue: Vehicle
		BuildPaletteOrder: 450
		IconPalette: chrometd
		Prerequisites: weap
		BuildDurationModifier: 50
		Description: When deployed, provides radar and increases nearby vehicle view range.\n Detects cloaked units.\n Unarmed
	Health:
		HP: 22000
	Armor:
		Type: Heavy
	Mobile:
		Speed: 82
		RequireForceMoveCondition: !undeployed
	RevealsShroud:
		MinRange: 4c0
		Range: 6c0
		RevealGeneratedShroud: False
		RequiresCondition: undeployed
	RevealsShroud@GAPGEN:
		Range: 4c0
		RequiresCondition: undeployed
	RevealsShroud@DEPLOYED:
		RequiresCondition: !undeployed
		Range: 10c0
	RenderSprites:
		Image: msar
	Repairable:
		RequireForceMoveCondition: !undeployed
	Passenger:
		RequireForceMoveCondition: !undeployed
	GrantCondition@PREVIEWWORKAROUND:
		Condition: real-actor
	WithMakeAnimation:
		BodyNames: deployedbody
	Carryable:
		LocalOffset: 0,0,150
	WithSpriteBody@deployed:
		Sequence: idle-static
		RequiresCondition: !undeployed && real-actor
		Name: deployedbody
	WithFacingSpriteBody:
		RequiresCondition: !deployed
	GrantConditionOnDeploy:
		PauseOnCondition: being-captured
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 165
		AllowedTerrainTypes: Clear, Road, Rough, Ore, Gems
		DeploySounds: placbldg.aud
		UndeploySounds: bits/audio/clicky1.aud
		UndeployOnMove: true
		UndeployOnPickup: true
	DetectCloaked@Deployed:
		Range: 10c0
		CloakTypes: Cloak
		RequiresCondition: deployed
	RenderDetectionCircle:
		TrailCount: 3
	ProvidesRadar:
		RequiresCondition: deployed
	Selectable:
		DecorationBounds: 30,30
	ProximityExternalCondition@Bino:
		Condition: bino
		Range: 10c0
		EnableSound: bits/audio/dsaping1.aud
		AffectsParent: False
		RequiresCondition: deployed
	Targetable:
		TargetTypes: Ground, Vehicle, C4
	RenderSprites:
		PlayerPalette: playertd
	WithDamageOverlay:
		Image: smoke_mtd
