^AutoTargetGround:
	AutoTarget:
		AttackAnythingCondition: stance-attackanything
	AutoTargetPriority@DEFAULT:
		ValidTargets: Infantry, Vehicle, Water, Defense, Tank
	AutoTargetPriority@ATTACKANYTHING:
		ValidTargets: Infantry, Vehicle, Water, Structure, Defense, Tank
	AutoTargetPriority@CREEPS:
		ValidTargets: Creep

^AutoTargetAll:
	AutoTarget:
		AttackAnythingCondition: stance-attackanything
	AutoTargetPriority@DEFAULT:
		RequiresCondition: !stance-attackanything
		ValidTargets: Infantry, Vehicle, Tank, Water, Air, Defense
	AutoTargetPriority@ATTACKANYTHING:
		RequiresCondition: stance-attackanything
		ValidTargets: Infantry, Vehicle, Tank, Water, Air, Structure, Defense
	AutoTargetPriority@CREEPS:
		ValidTargets: Creep

^AutoTargetGroundAssaultMove:
	AutoTargetPriority@Bot_walls:
		RequiresCondition: ignore-creeps
		ValidTargets: Wall

^AutoTargetAllAssaultMove:
	AutoTargetPriority@Bot_walls:
		RequiresCondition: ignore-creeps
		ValidTargets: Wall

^jammedvision:
	ExternalCondition@jammed:
		Condition: jammed
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 55
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 5
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed
	WithDecoration@skullFromRA:
		Image: pips
		Sequence: pip-jammer
		Palette: disabled
		Position: TopLeft
		ValidRelationships: Enemy, Neutral
		RequiresCondition: jammed

^BotLogicEngineer:
	ExternalCondition@giveControl:
		Condition: reject_control
	ScriptTags:
	RejectsOrders:
		RequiresCondition: reject_control

^BotLogicRepairing:
	ExternalCondition@giveControl:
		Condition: reject_control
	ExternalCondition@startrepair:
		Condition: start_repair
	ScriptTags:
	RejectsOrders:
		RequiresCondition: reject_control
	RejectsOrders@rejectOnRepairPad:
		RequiresCondition: repairing
	GrantConditionOnDamageState@fullyrepaird:
		Condition: full_hp
		ValidDamageStates: Undamaged
	GrantCondition:
		RequiresCondition: start_repair && !full_hp
		Condition: repairing
	ChangesHealth@BotRepairing:
		Step: 800
		Delay: 10
		StartIfBelow: 105
		RequiresCondition: start_repair

^botDeployLogic:
	GrantConditionOnBotOwner@Imstupidbotthatcandeploy:
		Condition: Imbot
		Bots: omnius, vidious, gladius
	GrantConditionOnAttack@deploing:
		Condition: dummyfire
		RevokeDelay: 400
		ArmamentNames: secondary
		RequiresCondition: Imbot
	GrantConditionOnAttack@beforedeploy:
		Condition: beforedeploy
		RevokeDelay: 40
		ArmamentNames: primary
		RequiresCondition: Imbot
	GrantCondition@deploythrowattack:
		Condition: deployed
		RequiresCondition: dummyfire
	Armament@botAiming:
		Weapon: dummy_aim
		FireDelay: 40
		Name: secondary
		PauseOnCondition: deployed
		RequiresCondition: Imbot
	Armament@botAiming2:
		Weapon: dummy_aim2
		FireDelay: 0
		Name: primary
		PauseOnCondition: deployed
		RequiresCondition: Imbot
	WithIdleOverlay@botdeployanim:
		Sequence: deploying
		RequiresCondition: beforedeploy && !deployed
		PauseOnCondition: dummyfire
	RejectsOrders@noundeploy:
		Reject: AttackMove, AssaultMove
		RequiresCondition: !Imbot && deployed

^GainsExperience:
	ChangesHealth@ELITE:
		Step: 0
		PercentageStep: 4
		Delay: 125
		StartIfBelow: 100
		DamageCooldown: 250
		RequiresCondition: rank-veteran >= 3

^wormslowing:
	ExternalCondition@wormIsnear:
		Condition: worm_attack
	ExternalCondition@stop:
		Condition: stop
	SpeedMultiplier@wormeated:
		Modifier: 20
		RequiresCondition: stop
	SpeedMultiplier@worm_eating:
		Modifier: 50
		RequiresCondition: worm_attack
	WithColoredOverlay@wormeated:
		Color: FFEB3B1C
		RequiresCondition: stop
	WithColoredOverlay@worm_eating:
		Color: FEED5912
		RequiresCondition: worm_attack

^Infantry:
	Inherits@jammer: ^jammedvision
	Inherits@wormslowing: ^wormslowing
	GrantRandomCondition:
		Conditions: inf_cond01, inf_cond02, inf_cond03
	Crushable:
		CrushSound: CRUSH1.WAV
		RequiresCondition: inf_cond01
	Crushable@2:
		CrushSound: audio/crush_guy_2.wav
		RequiresCondition: inf_cond02
	Crushable@3:
		CrushSound: audio/crush_guy_4.wav
		RequiresCondition: inf_cond03
	Crushable@worm:
		CrushClasses: worm_dinner
		WarnProbability: 0
		CrushedByFriendlies: true
		CrushSound: audio/EBoD_normal_dying_3.wav
		RequiresCondition: inf_cond01
	Crushable@worm2:
		CrushClasses: worm_dinner
		WarnProbability: 0
		CrushedByFriendlies: true
		CrushSound: CRUSH1.WAV
		RequiresCondition: inf_cond02
	Crushable@worm3:
		CrushClasses: worm_dinner
		WarnProbability: 0
		CrushedByFriendlies: true
		CrushSound: audio/EBoD_normal_dying_3.wav
		RequiresCondition: inf_cond03
	TurnOnIdle:
	WithInfantryBody:
		MinIdleDelay: 50
		MaxIdleDelay: 160
	TakeCover:
		DamageModifiers:
			Prone50Percent: 75
	WithDeathAnimation:
		DeathTypes:
			ExplosionDeath: 1
			SoundDeath: 2
			SmallExplosionDeath: 3
			BulletDeath: 4
			FireDeath: 6, 3
	DeathSounds@burn:
		Voice: Burn
		DeathTypes: FireDeath
		VolumeMultiplier: 0.8
	Demolishable@wormCrush:
	Parachutable:
		KilledOnImpassableTerrain: true
	HitShape:
		Type: Circle
			Radius: 90
	TerrainModifiesDamage:
		TerrainModifier:
			Rough: 75
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 200
		RequiresCondition: vulnerable
	WithColoredOverlay@vulnerable:
		Color: FF2C2C7D
		RequiresCondition: vulnerable
	WithColoredOverlay@slowed:
		Color: 8093FF5E
		RequiresCondition: slowed
	ExternalCondition@slowed:
		Condition: slowed
	SpeedMultiplier@slowed:
		Modifier: 50
		RequiresCondition: slowed
	ExternalCondition@frozed:
		Condition: frozed
	SpeedMultiplier@frozed:
		Modifier: 0
		RequiresCondition: frozed
	RangeMultiplier@frozed:
		RequiresCondition: frozed
		Modifier: 1
	WithColoredOverlay@frozed:
		Color: CAB8D685
		RequiresCondition: frozed
	WithDecoration@skullFromRA:
		Image: pips
		Sequence: pip-jammer
		Palette: disabled
		Position: TopLeft
		ValidRelationships: Enemy, Neutral
		RequiresCondition: jammed
	ExternalCondition@burning:
		Condition: burning
	ChangesHealth@burning:
		Step: -70
		Delay: 5
		StartIfBelow: 100
		RequiresCondition: burning
		DamageTypes: TriggerProne, FireDeath
	WithColoredOverlay@burning:
		Color: FF96066E
		RequiresCondition: burning
	RevealOnDeath:
		Duration: 25

^Vehicle:
	Inherits@BotRepairLogic: ^BotLogicRepairing
	Inherits@jammer: ^jammedvision
	Inherits@wormslowing: ^wormslowing
	GrantConditionOnDamageState@HEAVY:
		Condition: heavy-damage
		ValidDamageStates: Heavy
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 75
	GrantConditionOnDamageState@CRIT:
		Condition: critical-damage
		ValidDamageStates: Critical
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 75
	ReloadDelayMultiplier@CRITDAMAGE:
		Modifier: 110
		RequiresCondition: critical-damage
	ExternalCondition:
		Condition: unitCapturated
	Crushable:
		CrushClasses: vehicle
		WarnProbability: 0
		CrushedByFriendlies: true
		CrushSound: WORM.WAV
	WithDamageOverlay:
		MinimumDamageState: Heavy
		Image: smoke_m
		IdleSequence: smokeFromRA01idle
		LoopSequence: smokeFromRA01loop
	Targetable:
		TargetTypes: Ground, Vehicle, C4
		RequiresCondition: !unitCapturated
	Targetable@CAPTURED:
		TargetTypes: CapturedUnit, Ground
		RequiresCondition: unitCapturated
	HitShape:
		Type: Circle
			Radius: 315
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 200
		RequiresCondition: vulnerable
	WithColoredOverlay@vulnerable:
		Color: FF2C2C7D
		RequiresCondition: vulnerable
	WithColoredOverlay@slowed:
		Color: 8093FF5E
		RequiresCondition: slowed
	ExternalCondition@slowed:
		Condition: slowed
	SpeedMultiplier@slowed:
		Modifier: 50
		RequiresCondition: slowed
	ExternalCondition@frozed:
		Condition: frozed
	SpeedMultiplier@frozed:
		Modifier: 0
		RequiresCondition: frozed
	RangeMultiplier@frozed:
		RequiresCondition: frozed
		Modifier: 1
	WithColoredOverlay@frozed:
		Color: CAB8D685
		RequiresCondition: frozed
	ExternalCondition@burning:
		Condition: burning
	ChangesHealth@burning:
		Step: -70
		Delay: 5
		StartIfBelow: 100
		RequiresCondition: burning
	WithColoredOverlay@burning:
		Color: FF96066E
		RequiresCondition: burning
	RevealOnDeath:
		Duration: 25

^Tank:
	Targetable:
		TargetTypes: Ground, C4, Tank
	GrantConditionOnDamageState@HEAVY:
		Condition: heavy-damage
		ValidDamageStates: Heavy
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 75
	GrantConditionOnDamageState@CRIT:
		Condition: critical-damage
		ValidDamageStates: Critical
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 75
	ReloadDelayMultiplier@CRITDAMAGE:
		Modifier: 110
		RequiresCondition: critical-damage
	SpawnActorOnDeath:
		SpawnAfterDefeat: false
	WithDamageOverlay:
		MinimumDamageState: Critical
	HitShape:
		Type: Circle
			Radius: 405
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 200
		RequiresCondition: vulnerable
	WithColoredOverlay@vulnerable:
		Color: FF2C2C7D
		RequiresCondition: vulnerable
	WithColoredOverlay@slowed:
		Color: 8093FF5E
		RequiresCondition: slowed
	ExternalCondition@slowed:
		Condition: slowed
	SpeedMultiplier@slowed:
		Modifier: 50
		RequiresCondition: slowed
	ExternalCondition@frozed:
		Condition: frozed
	SpeedMultiplier@frozed:
		Modifier: 0
		RequiresCondition: frozed
	RangeMultiplier@frozed:
		RequiresCondition: frozed
		Modifier: 1
	WithColoredOverlay@frozed:
		Color: CAB8D685
		RequiresCondition: frozed
	ExternalCondition@jammed:
		Condition: jammed
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 55
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 5
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed
	WithDecoration@skullFromRA:
		Image: pips
		Sequence: pip-jammer
		Palette: disabled
		Position: TopLeft
		ValidRelationships: Enemy, Neutral
		RequiresCondition: jammed
	ExternalCondition@burning:
		Condition: burning
	ChangesHealth@burning:
		Step: -70
		Delay: 5
		StartIfBelow: 100
		RequiresCondition: burning
	WithColoredOverlay@burning:
		Color: FF96066E
		RequiresCondition: burning
	RevealOnDeath:
		Duration: 25

^Plane:
	ExternalCondition@jammed:
		Condition: jammed
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 55
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 5
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed
	WithDecoration@skullFromRA:
		Image: pips
		Sequence: pip-jammer
		Palette: disabled
		Position: TopLeft
		ValidRelationships: Enemy, Neutral
		RequiresCondition: jammed

mcv:
	Valued:
		Cost: 2000
	Buildable:
		Prerequisites: upgrade.heavy, repair_pad, ~techlevel.medium
		Queue: Armor
		BuildPaletteOrder: 150
		BuildDuration: 750
		Description: Deploys into another Construction Yard\nRegenerates to half health after damage
	Health:
		HP: 45000
	Armor:
		Type: heavy
	Mobile:
		Speed: 31
	HitShape:
		Type: Circle
			Radius: 495
	RevealsShroud:
		Range: 3c768
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Transforms:
		Facing: 64
		IntoActor: construction_yard
		Offset: -1,-1
		TransformSounds: BUILD1.WAV
		NoTransformNotification: CannotDeploy
		NoTransformTextNotification: Cannot deploy here.
		PauseOnCondition: unitCapturated
		RequiresCondition: !unitCapturated

harvester:
	Buildable:
		Queue: Armor
		Prerequisites: refinery
		BuildDuration: 700
		Description: Collects Spice for processing\nRegenerates to half health after damage
	Valued:
		Cost: 1200
	WithDockingAnimation:
	Harvester:
		HarvestFacings: 8
		Resources: Spice
		BaleUnloadDelay: 5
		SearchFromProcRadius: 30
		SearchFromHarvesterRadius: 15
		EmptyCondition: harvesterEmpty
	Health:
		HP: 45000
	Mobile:
		Speed: 43
	HitShape:
		Type: Circle
			Radius: 495
	RevealsShroud:
		Range: 3c768
	FireWarheadsOnDeath:
		Weapon: UnitExplodeLarge
		EmptyWeapon: UnitExplodeLarge
	SpawnActorOnDeath:
		Actor: harvester.Husk
		OwnerType: InternalName
		RequiresCondition: !worm_attack && harvesterEmpty
		EffectiveOwnerFromOwner: true
		SpawnAfterDefeat: false
	FireProjectilesOnDeath@ShrapnelNotEmpty:
		Weapons: Debris, Debris2, Debris3, Debris4
		Pieces: 3, 5
		Range: 1c0, 6c0
		RequiresCondition: !harvesterEmpty
	FireProjectilesOnDeath@DeathHandClusterDebris:
		Weapons: DeathHandClusterDebris
		Pieces: 1, 2
		Range: 1c0, 5c0
		RequiresCondition: !harvesterEmpty
	FireProjectilesOnDeath@ShrapnelEmpty:
		Weapons: Debris, Debris2
		Pieces: 0, 1
		Range: 1c0, 6c0
		RequiresCondition: harvesterEmpty
	FireProjectilesOnDeath@throwSpice:
		Weapons: HarvesterSpiceExplosion
		Pieces: 1, 3
		Range: 1c0, 5c0
		RequiresCondition: !harvesterEmpty
	FireProjectilesOnDeath@wheel:
		Weapons: debris_harvester_wheel01, debris_harvester_wheel02
		Pieces: 0, 1
		Range: 3c0, 5c0
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250
	WithStoresResourcesPipsDecoration:
		Position: BottomLeft
		Margin: 1, 4
		RequiresSelection: true
		PipCount: 7
	StoresPlayerResources:
		Capacity: 28
	StoresResources:
		Resources: Spice
	DockClientManager:

trike:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		Prerequisites: ~light.trike
		BuildDuration: 200
		Description: Cheap scout with best vision range\n Strong vs Infantry\n Weak vs Vehicles
	Valued:
		Cost: 300
	Selectable:
		Class: trike
	Health:
		HP: 9000
	Armor:
		Type: light
	Mobile:
		Locomotor: light_vehicle
		TurnSpeed: 32
		Speed: 115
	RevealsShroud:
		Range: 7c512
	Armament@damage:
		FireDelay: 0
		Weapon: HMG
		MuzzleSequence: muzzle
	-Armament@muzzle:
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 75
	-RevealOnFire:

raider:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		Prerequisites: ~light.raider
		BuildDuration: 250
		Description: Trike with better speed, fire rate and health\n Strong vs Infantry\n Weak vs Vehicles
	Valued:
		Cost: 350
	Tooltip:
		Name: Raider
	RevealsShroud:
		Range: 5c512
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 11000
	Armor:
		Type: light
	Mobile:
		Locomotor: light_vehicle
		TurnSpeed: 36
		Speed: 130
	WithMuzzleOverlay:
	Armament@damage:
		Weapon: HMGo
		MuzzleSequence: muzzle
	-Armament@muzzle:
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 75
	-RevealOnFire:

stealth_raider:
	Inherits: raider
	Buildable:
		Prerequisites: ~light.ordos, upgrade.light, high_tech_factory, ~techlevel.high
		BuildPaletteOrder: 30
		BuildDuration: 300
		Description: Expensive invisible Raider\n Strong vs Infantry\n Weak vs Vehicles\nRemains invisible with critical health\nQuickly becomes invisible until deployed\nDetects invisible units and moves faster when deployed
	Valued:
		Cost: 450
	Tooltip:
		Name: Stealth Raider
	RevealsShroud:
		Range: 5c512
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-GrantConditionOnDamageState@UNCLOAK:
	Cloak:
		InitialDelay: 1
		CloakDelay: 20
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		IsPlayerPalette: true
		PauseOnCondition: deployed_raider
	GrantConditionOnDeploy:
		DeployedCondition: deployed_raider
		UndeployOnMove: false
		SkipMakeAnimation: false
		DeploySounds: STEALTH2.WAV
		PauseOnCondition: unitCapturated
		RequiresCondition: !unitCapturated
	WithIdleOverlay@DEPLOYED:
		Sequence: deployed
		RequiresCondition: deployed_raider
	DetectCloaked:
		Range: 1c768
		RequiresCondition: deployed_raider
	SpeedMultiplier@DEPLOYED:
		RequiresCondition: deployed_raider
		Modifier: 110

quad:
	AutoTargetPriority@bot:
		ValidTargets: Vehicle, Structure, Tank
		InvalidTargets: Infantry
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		Prerequisites: upgrade.light, ~light.quad, ~techlevel.medium
		BuildDuration: 300
		BuildDurationModifier: 100
		Description: Missile scout\n Strong vs Vehicles\n Weak vs Infantry
	Valued:
		Cost: 400
	Tooltip:
		Name: Quad
	Health:
		HP: 13000
	Armor:
		Type: light
	Mobile:
		Locomotor: light_vehicle
		TurnSpeed: 30
		Speed: 100
	RevealsShroud:
		Range: 5c512
	Armament:
		Weapon: Rocket
		LocalOffset: 128,64,64, 128,-64,64
	FireWarheadsOnDeath:
		Weapon: UnitExplodeSmall
		EmptyWeapon: UnitExplodeSmall
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 75
	-RevealOnFire:

siege_tank:
	Buildable:
		Queue: Armor
		Prerequisites: upgrade.heavy, ~techlevel.medium
		BuildDuration: 500
		BuildDurationModifier: 100
		Description: Siege Ranged Artillery\n Strong vs Infantry, Turrets\n Weak vs Vehicles\nBest attack and vision range before heavy damage\nCan attack over walls
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Defense
		InvalidTargets: Tanks
		Priority: 50
		RequiresCondition: ignore-creeps
	AutoTargetPriority@bot2:
		ValidTargets: Vehicle
		InvalidTargets: Tanks
		Priority: 10
		RequiresCondition: bot-owned
	AttackFrontal:
		ForceFireIgnoresActors: False
		TargetFrozenActors: True
		FacingTolerance: 0
	Valued:
		Cost: 800
	Health:
		HP: 15000
	Armor:
		Type: heavy
	Mobile:
		Speed: 43
		TurnSpeed: 14
	Turreted:
		TurnSpeed: 14
		Offset: 0,0,-32
	RevealsShroud:
		Range: 7c512
		RequiresCondition: !badradius
	RevealsShroud@badvision:
		Range: 6c512
		RequiresCondition: badradius
	GrantConditionOnDamageState@badradius:
		Condition: badradius
		ValidDamageStates: Heavy, Critical
	-RevealOnFire:
	Armament:
		Weapon: 155mm
		Recoil: 150
		RecoilRecovery: 19
		LocalOffset: 512,0,320
		MuzzleSequence: muzzle
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	SpawnActorOnDeath:
		Actor: siege_tank.husk
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: !worm_attack
	FireProjectilesOnDeath:
		Weapons: DerbisSiegetank, Debris3
		Pieces: 1, 2
		Range: 2c0, 4c0
	FireProjectilesOnDeath@turret:
		Weapons: derbisSiegetank.turret
		Pieces: 1, 1
		Range: 0c512, 2c0
	RangeMultiplier@badradius:
		RequiresCondition: badradius
		Modifier: 87

missile_tank:
	AutoTargetPriority@bot:
		ValidTargets: Tank, Defense, Air
		InvalidTargets: Infantry
		Priority: 50
		RequiresCondition: ignore-creeps
	AutoTargetPriority@bot2:
		ValidTargets: Structure, Vehicle
		InvalidTargets: Infantry
		Priority: 20
		RequiresCondition: ignore-creeps
	AttackFrontal:
		ForceFireIgnoresActors: false
		TargetFrozenActors: true
		FacingTolerance: 0
	GrantRandomCondition:
		Conditions: shrapnel_01, shrapnel_02, shrapnel_03
	Buildable:
		BuildDuration: 550
		Prerequisites: ~heavy.missile_tank, upgrade.heavy, research_centre, ~techlevel.high
		Description: Rocket Artillery\n Strong vs Tanks, Aircraft\n Weak vs Infantry\nHoming Missiles\nCan attack over walls
	Valued:
		Cost: 900
	Mobile:
		Speed: 64
		TurnSpeed: 18
	Health:
		HP: 15000
	Armor:
		Type: heavy
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: mtank_pri
		LocalOffset: -128,128,171, -128,-128,171
	-RevealOnFire:
	FireProjectilesOnDeath@01:
		Weapons: Debris, Debris4, Debris3
		Pieces: 0,1
		Range: 1c0, 3c0
		RequiresCondition: shrapnel_01  && !worm_attack
	FireProjectilesOnDeath@02:
		Weapons: Debris3, Debris
		Pieces: 1,2
		Range: 2c0, 3c0
		RequiresCondition: shrapnel_02  && !worm_attack
	FireProjectilesOnDeath@02_02:
		Weapons: DerbisMissile
		Pieces: 0,2
		Range: 3c0, 5c0
		RequiresCondition: shrapnel_02 && !worm_attack
	FireProjectilesOnDeath@03:
		Weapons: DerbisMissile, Debris, Debris4, Debris3
		Pieces: 1,3
		Range: 4c0, 6c0
		RequiresCondition: shrapnel_03 && !worm_attack
	SpawnActorOnDeath:
		RequiresCondition: !worm_attack

sonic_tank:
	AutoTargetPriority@bot:
		ValidTargets: Vehicle, Defense, Structure, Infantry
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	AttackFrontal:
		TargetFrozenActors: True
		ForceFireIgnoresActors: False
		FacingTolerance: 0
	Buildable:
		Queue: Armor
		BuildPaletteOrder: 80
		Prerequisites: ~heavy.atreides, upgrade.heavy, research_centre, ~techlevel.high
		BuildDuration: 600
		Description: Fires sonic shocks that hit everything in its path\n Strong vs Everything except Tanks\nIncreased area damage to Buildings\nResistant to sonic weapon\nBetter vision range
	Valued:
		Cost: 1000
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 30000
	Armor:
		Type: invulnerable
	Mobile:
		TurnSpeed: 12
		Speed: 31
	HitShape:
		Type: Circle
			Radius: 405
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: Sound
		LocalOffset: 600,0,427
	-RevealOnFire:
	SpawnActorOnDeath:
		RequiresCondition: !worm_attack

devastator:
	GrantConditionOnDamageState@forbot:
		Condition: lowhp
		ValidDamageStates: Critical
	GrantCondition@botselfdestruct:
		Condition: overload
		RequiresCondition: lowhp && bot-owned && !unitCapturated
	Buildable:
		BuildPaletteOrder: 130
		Prerequisites: ~heavy.harkonnen, upgrade.heavy, research_centre, ~techlevel.high
		BuildDuration: 650
		Description: Super Heavy Tank\n Strong vs Everything except Anti-Heavy Units\nDeploy to self-destruct after short delay\nCan ram walls\nResistant to slowdown from dunes\nRegenerates to half health after damage
	ExternalCondition:
		Condition: unitCapturated
	Valued:
		Cost: 1100
	Health:
		HP: 50000
	Armor:
		Type: heavy
	Mobile:
		TurnSpeed: 12
		Speed: 31
		Locomotor: devastator
		RequiresCondition: !overload
		PauseOnCondition: notmobile
	RevealsShroud:
		Range: 5c512
	Armament:
		Weapon: DevBullet
		LocalOffset: 640,0,32
		MuzzleSequence: muzzle
		RequiresCondition: !overload
	FireWarheadsOnDeath@OVERLOAD:
		Weapon: PlasmaExplosion
		EmptyWeapon: PlasmaExplosion
		RequiresCondition: meltdown
	GrantConditionOnDeploy@REACTOR:
		DeployedCondition: overload
		PauseOnCondition: overload || unitCapturated
		RequiresCondition: !unitCapturated
	WithIdleOverlay@OVERLOAD:
		Sequence: active
		RequiresCondition: overload
	WithIdleOverlay@OVERLOAD2:
		Sequence: active-2
		RequiresCondition: overload
	KillsSelf@MELTDOWN:
		Delay: 125
		RequiresCondition: overload
		GrantsCondition: meltdown
	AttractsWorms:
		Intensity: 700
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250
	-RevealOnFire:
	Selectable:
		DecorationBounds: 1408, 1216, 0, 0
	AmbientSound@onMeltDown:
		SoundFiles: audio/DevastatorMeltdown01.wav
		RequiresCondition: overload
	FireProjectilesOnDeath@TrowOnMeldown:
		Weapons: Debris2, DeathHandClusterDebris, Debris4, DerbisSiegetank
		Pieces: 5, 10
		Range: 3c512, 7c0
		RequiresCondition: meltdown
	FireProjectilesOnDeath@standart:
		Weapons: Debris, Debris3, DerbisSiegetank
		Pieces: 1, 2
		RequiresCondition: !meltdown
	SpawnActorOnDeath:
		RequiresCondition: !meltdown && !worm_attack
	SpawnActorOnDeath@crater:
		Actor: crater_big
		RequiresCondition: meltdown
		Offset: -1,0
	HitShape:
		Type: Circle
			Radius: 495

deviator:
	AutoTargetPriority@bot:
		ValidTargets: Tank, Vehicle
		InvalidTargets: Infantry, Structure, Defense
		Priority: 50
		RequiresCondition: ignore-creeps
	Valued:
		Cost: 1000
	Buildable:
		BuildPaletteOrder: 90
		Prerequisites: ~heavy.ordos, upgrade.heavy, research_centre, ~techlevel.high
		BuildDuration: 600
		Description: Anti-Vehicle Skirmisher\n Temporarily captures enemy vehicles\nAffects nearby enemy vehicles when destroyed\nStops working when temporarily captured\nCan attack over walls
	Mobile:
		Speed: 55
		TurnSpeed: 16
	Health:
		HP: 15000
	Armor:
		Type: heavy
	RevealsShroud:
		Range: 5c512
		RequiresCondition: !unitCapturated
	RevealsShroud@captured:
		Range: 2c512
		RequiresCondition: unitCapturated
	-RevealOnFire:
	Armament:
		Weapon: DeviatorMissile
		LocalOffset: -299,0,85
	FireProjectilesOnDeath:
		Weapons: Debris4, Debris
		Pieces: 0,2
		Range: 0c512, 4c512
	SpawnActorOnDeath:
		RequiresCondition: !worm_attack
	FireWarheadsOnDeath:
		Weapon: DeviatorGas
		EmptyWeapon: DeviatorGas
	SpeedMultiplier@captured:
		Modifier: 0
		RequiresCondition: unitCapturated
	RangeMultiplier@captured:
		RequiresCondition: unitCapturated
		Modifier: 1
	WithColoredOverlay@black:
		Color: 00000052
		RequiresCondition: unitCapturated

^combat_tank:
	GrantRandomCondition:
		Conditions: Husk01, Husk02, Husk03, Husk04
	AutoTargetPriority@bot:
		InvalidTargets: Infantry
		ValidTargets: Vehicle, Defense, Structure, Tank
		Priority: 40
		RequiresCondition: ignore-creeps
	Buildable:
		Queue: Armor
		BuildDuration: 450
		Description: Main Battle Tank\n Strong vs Light Vehicles\n Weak vs Anti-Heavy Units
	Valued:
		Cost: 700
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 25000
	Armor:
		Type: heavy
	Mobile:
		Speed: 73
		TurnSpeed: 20
	RevealsShroud:
		Range: 5c512
	Turreted:
		TurnSpeed: 20
		RealignDelay: 0
	Armament:
		Weapon: 80mm_A
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 256,0,0
		MuzzleSequence: muzzle
	FireProjectilesOnDeath:
		Weapons: Debris, Debris3, debris_vehicle02, debris_vehicle01
		Pieces: 0, 2
		Range: 2c0, 4c0
	-RevealOnFire:

combat_tank_a:
	Inherits: ^combat_tank
	Buildable:
		Prerequisites: ~heavy.atreides_combat
		Description: Turreted Main Battle Tank\n Strong vs Light Vehicles\n Weak vs Anti-Heavy Units\nMedium speed and health\nLong attack range
	Tooltip:
		Name: Atreides Combat Tank
	Armament:
		Weapon: 80mm_A
	SpawnActorOnDeath:
		Actor: combat_tank_a.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_a.husk02
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_a.husk03
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_a.husk04
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.atreides
		Pieces: 1,1
		Range: 0c250, 2c512
		RequiresCondition: Husk01
	FireProjectilesOnDeath@turret01:
		Weapons: debris_turret01.atreides
		Pieces: 1,1
		Range: 1c0, 2c512
		RequiresCondition: Husk02

combat_tank_h:
	Inherits: ^combat_tank
	Buildable:
		Prerequisites: ~heavy.harkonnen_combat
		Description: Turreted Main Battle Tank\n Strong vs Light Vehicles\n Weak vs Anti-Heavy Units\nSlow speed, High health\nRegenerates to half health after damage
	Armament:
		Weapon: 80mm_H
	Tooltip:
		Name: Harkonnen Combat Tank
	Mobile:
		Speed: 64
		TurnSpeed: 18
	Turreted:
		TurnSpeed: 18
	Health:
		HP: 30000
	SpawnActorOnDeath:
		Actor: combat_tank_h.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_h.husk02
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_h.husk03
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_h.husk04
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.harkonnen
		Pieces: 1,1
		Range: 0c250, 2c512
		RequiresCondition: Husk01
	FireProjectilesOnDeath@turret01:
		Weapons: debris_turret01.harkonnen
		Pieces: 1,1
		Range: 1c0, 2c512
		RequiresCondition: Husk02
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

combat_tank_o:
	Inherits: ^combat_tank
	Buildable:
		Prerequisites: ~heavy.ordos_combat
		Description: Turreted Main Battle Tank\n Strong vs Light Vehicles\n Weak vs Anti-Heavy Units\nFast speed, Low health\nFast fire rate
	Turreted:
		TurnSpeed: 22
	Armament:
		Weapon: 80mm_O
	Tooltip:
		Name: Ordos Combat Tank
	Mobile:
		Speed: 82
		TurnSpeed: 22
	Health:
		HP: 20000
	SpawnActorOnDeath:
		Actor: combat_tank_o.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_o.husk02
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_o.husk03
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_o.husk04
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.ordos
		Pieces: 1,1
		Range: 1c0, 2c512
		RequiresCondition: Husk01 || Husk02

combat_tank_cheap:
	Inherits: ^combat_tank
	Buildable:
		BuildPaletteOrder: 45
		BuildDuration: 400
		Prerequisites: ~!factions.standard, ~heavy.cheap_tank
		Description: Turreted Cheap Battle Tank\n Strong vs Light Vehicles\n Weak vs Tanks\nFastest speed, Lowest health
	Valued:
		Cost: 600
	Tooltip:
		Name: Smuggler Combat Tank
	Mobile:
		Locomotor: tank
	Health:
		HP: 15000
	Turreted:
		TurnSpeed: 24
	Mobile:
		Speed: 91
		TurnSpeed: 24
	Armament:
		Weapon: 80mm_cheap
	SpawnActorOnDeath:
		Actor: combat_tank_cheap.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_cheap.husk02
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_cheap.husk03
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_cheap.husk04
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.harkonnen
		Pieces: 1,1
		Range: 0c250, 2c512
		RequiresCondition: Husk01
	WithColoredOverlay:
		Color: DC6C1512

combat_tank_corrino:
	Inherits: combat_tank_h
	Buildable:
		BuildPaletteOrder: 43
		Prerequisites: ~heavy.corrino_combat, ~!factions.standard
		Description: Turreted Emperor Battle Tank\n Strong vs Light Vehicles\n Weak vs Anti-Heavy Units\nSlow speed, High health\nResistant to slowdown from damage and dunes
	Tooltip:
		Name: Corrino Combat Tank
	Health:
		HP: 30000
	Mobile:
		Speed: 64
		TurnSpeed: 18
		Locomotor: tank_corrino
	Turreted:
		TurnSpeed: 18
	Armament:
		Weapon: 80mm_corrino
	-ChangesHealth:
	SpawnActorOnDeath:
		Actor: combat_tank_corrino.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_corrino.husk02
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_corrino.husk03
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_corrino.husk04
		RequiresCondition: Husk04 && !worm_attack
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 95
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 95
	-ReloadDelayMultiplier@CRITDAMAGE:
	WithColoredOverlay:
		Color: DC6C1512

combat_tank_fremen:
	Inherits: ^combat_tank
	-GrantRandomCondition:
	Buildable:
		BuildPaletteOrder: 41
		BuildDuration: 450
		Prerequisites: ~heavy.fremen_tank, ~!factions.standard
		Description: Turreted Desert Battle Tank\n Strong vs Light Vehicles\n Weak vs Anti-Heavy Units\nMedium speed and health\nInvisible on the sands
	Tooltip:
		Name: Fremen Combat Tank
	Armament:
		Weapon: 80mm_fremen
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	SpawnActorOnDeath:
		Actor: combat_tank_fremen.husk
		RequiresCondition: !worm_attack
	GrantConditionOnTerrain:
		TerrainTypes: Dune, Spice, SpiceSand, Sand
		Condition: HiddeninSand
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled && HiddeninSand
	Selectable:
		Class: carrier

combat_tank_mercenary:
	Inherits: ^combat_tank
	-GrantRandomCondition:
	Buildable:
		BuildPaletteOrder: 47
		BuildDuration: 500
		Prerequisites: ~heavy.mercenary_tank, ~!factions.standard
		Description: Turreted Expensive Battle Tank\n Strong vs Tanks\n Weak vs Anti-Heavy Units\nSlowest speed, Highest health\nDouble shot\nHigh accurate
	Tooltip:
		Name: Mercenary Combat Tank
	Valued:
		Cost: 800
	Health:
		HP: 35000
	Mobile:
		Speed: 55
		TurnSpeed: 16
		Locomotor: tank
	Turreted:
		TurnSpeed: 16
	-Armament:
	Armament@1:
		Weapon: 80mm_double
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 320,64,0
		MuzzleSequence: muzzle
	Armament@2:
		Weapon: 80mm_double
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 320,-64,0
		MuzzleSequence: muzzle
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	SpawnActorOnDeath:
		Actor: combat_tank_mercenary.husk
		RequiresCondition: !worm_attack
	RenderSprites:
		PlayerPalette: player_r16

bison_tank:
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Inherits: ^Vehicle
	AutoTargetPriority@bot:
		InvalidTargets: Infantry
		ValidTargets: Vehicle, Defense, Structure, Tank
		Priority: 40
		RequiresCondition: ignore-creeps
	Buildable:
		Queue: Armor
		Prerequisites: ~heavy.bison, upgrade.heavy, research_centre, ~techlevel.high, ~!factions.standard
		BuildDuration: 600
		BuildDurationModifier: 100
		BuildPaletteOrder: 120
		Description: Accurate Heavy Battle Tank\n Strong vs Vehicles, Turrets\n Weak vs Anti-Heavy Units\nDouble Shot\nBetter attack range and fire rate before heavy damage\nCan attack over walls
	Health:
		HP: 45000
	Valued:
		Cost: 1000
	Tooltip:
		Name: Bison tank
	Armor:
		Type: heavy
	Mobile:
		Speed: 43
		TurnSpeed: 14
	Mobile:
		Locomotor: tank
		PauseOnCondition: notmobile
	RevealsShroud:
		Range: 5c512
	ReloadDelayMultiplier@HEAVYDAMAGE:
		Modifier: 134
		RequiresCondition: heavy-damage
	ReloadDelayMultiplier@CRITDAMAGE:
		Modifier: 147
		RequiresCondition: critical-damage
	HitShape:
		Type: Circle
			Radius: 495
	Armament@1:
		Weapon: 80mm_bison
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 475,100,75
		MuzzleSequence: muzzle
	Armament@2:
		Weapon: 80mm_bison
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 475,-100,75
		MuzzleSequence: muzzle
	AttackFrontal:
		FacingTolerance: 0
	WithMuzzleOverlay:
		IgnoreOffset: true
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	SpawnActorOnDeath:
		Actor: bison_tank.Husk
		RequiresCondition: !worm_attack
	-RevealOnFire:
	GrantConditionOnDamageState@badradius:
		Condition: badradius
		ValidDamageStates: Heavy, Critical
	RangeMultiplier@badradius:
		RequiresCondition: badradius
		Modifier: 82

carryall.reinforce:
	Inherits: ^Plane
	HitShape:
		Type: Circle
			Radius: 495
	Valued:
		Cost: 1500
	Cargo:
		MaxWeight: 10
	ParaDrop:
		DropRange: 4c0
	Buildable:
		BuildDuration: 750
		Description: Transport air ship\n Automatically lifts harvesters from and to Spice\n Lifts vehicles to Repair Pads when ordered\nRegenerates to half health after damage
	UpdatesPlayerStatistics:
		AddToAssetsValue: false
	Tooltip:
		Name: Carryall
	Health:
		HP: 45000
	Armor:
		Type: light
	Aircraft:
		CruiseAltitude: 2160
		CruisingCondition: cruising
		Speed: 150
		TurnSpeed: 20
		LandableTerrainTypes: Sand, Rock, Transition, Spice, SpiceSand, Dune, Concrete
		Repulsable: False
		AirborneCondition: airborne
		CanSlide: True
		VTOL: true
		IdleTurnSpeed: 10
		IdleSpeed: 150
	FireProjectilesOnDeath@derbis:
		Weapons: Debris, Debris2, debris_vehicle01, debris_vehicle02
		Pieces: 1, 3
		Range: 1c0, 6c0
	FireProjectilesOnDeath@derbisExplosions:
		Weapons: DeathHandClusterDebris
		Pieces: 0, 1
		Range: 1c0, 5c0
	FireProjectilesOnDeath@derbisExplosions2:
		Weapons: DeathHandClusterDebris
		Pieces: 0, 1
		Range: 1c0, 5c0
	SpawnActorOnDeath@CRUISING:
		SpawnAfterDefeat: false
	SpawnActorOnDeath@LANDING:
		SpawnAfterDefeat: false
	HiddenUnderFog:
		AlwaysVisibleRelationships: Ally
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

carryall.reinforce.for.thumper:
	Inherits: carryall.reinforce
	ParaDrop:
		DropRange: 0c512

carryall.harvester.delivery:
	Inherits: carryall.reinforce
	-Buildable:
	GrantConditionOnPrerequisite@frigatecloaked:
		Condition: cloak_carryallreinforce
		Prerequisites: cloak_carryall.reinforce
	Cloak:
		InitialDelay: 0
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		RequiresCondition: cloak_carryallreinforce
		IsPlayerPalette: true
	Tooltip:
		Name: Harvester Reinforcements

carryall.reinforce_with_sound:
	Inherits: carryall.reinforce
	Tooltip:
		Name: Infantry Reinforcements
	-Carryall:
	Health:
		HP: 45000
	Cargo:
		Types: Infantry, Vehicle
		PassengerFacing: 512
		BeforeUnloadDelay: 50
	Aircraft:
		MinAirborneAltitude: 400
		Speed: 150
	RevealsShroud@landing:
		Range: 2c768
		RequiresCondition: !cruising
		Type: CenterPosition
	RevealsShroud@onland:
		Range: 3c512
		RequiresCondition: !airborne
		Type: CenterPosition
	SpawnActorOnDeath@LANDING:
		Actor: carryall.huskVTOL_reinforce

ornithopter:
	Inherits: ^Plane
	Health:
		HP: 15000
	Armor:
		Type: light
	Aircraft:
		Speed: 225
		TurnSpeed: 10
		MinAirborneAltitude: 500
		AirborneCondition: airborne
	Targetable@AIRBORNE:
		TargetTypes: Air
		RequiresCondition: airborne
	FireProjectilesOnDeath@derbis:
		Weapons: Debris, Debris2, debris_vehicle01
		Pieces: 1, 3
		Range: 0c512, 2c0
	RevealOnFire:
		Duration: 100
		Radius: 7c512
	HitShape:
		Type: Circle
			Radius: 315
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

ornithopter.bomber:
	Inherits: ornithopter
	RenderSprites:
		Image: ornithopter
	Health:
		HP: 15000
	Aircraft:
		Speed: 225
		CruiseAltitude: 2000
		MinAirborneAltitude: 500
		AirborneCondition: airborne
	Targetable@AIRBORNE:
		TargetTypes: Air
		RequiresCondition: airborne
	AmmoPool:
		Ammo: 1
	FireProjectilesOnDeath@derbis:
		Weapons: Debris, Debris2, debris_vehicle01
		Pieces: 1, 3
		Range: 0c512, 2c0
	HitShape:
		Type: Circle
			Radius: 315
	AttackBomber:
		FacingTolerance: 8
	Armament:
		Weapon: chaosbomb1
	SpawnActorOnDeath:
		Actor: ornithopter.bomberhusk
	Valued:
		Cost: 500

ornithopter_bomb:
	Inherits: ornithopter
	RenderSprites:
		Image: ornithopter
	AttackBomber:
	Aircraft:
		AltitudeVelocity: 3240
	AttackAircraft:
		AttackType: Strafe
		StrafeRunLength: 4c0
		OpportunityFire: false
		ForceFireIgnoresActors: true
		Voice: Attack
		FacingTolerance: 512
		PersistentTargeting: false
		AbortOnResupply: true
	Armament:
		Weapon: OrniBomb_multipass
	Aircraft:
		Speed: 225
		TurnSpeed: 10
		Repulsable: False
		CruiseAltitude: 2000
	Valued:
		Cost: 500

ornithopter_mg:
	Inherits: ornithopter
	RenderSprites:
		Image: ornithopter
	AttackBomber:
	Aircraft:
		AltitudeVelocity: 3240
	AttackAircraft:
		AttackType: Strafe
		StrafeRunLength: 4c0
		OpportunityFire: false
		ForceFireIgnoresActors: true
		Voice: Attack
		FacingTolerance: 512
		PersistentTargeting: false
		AbortOnResupply: true
	Armament:
		Weapon: Ornithopter_MG
		MuzzleSequence: muzzle
		LocalOffset: -120,0,0
	Aircraft:
		Speed: 225
		TurnSpeed: 10
		Repulsable: False
		CruiseAltitude: 2000
	Valued:
		Cost: 500

light_inf:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	AutoTargetPriority@bot2:
		ValidTargets: Vehicle
		Priority: 20
		RequiresCondition: bot-owned
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 1
		BuildDuration: 75
		Description: General-purpose infantry\n Strong vs Infantry\n Weak vs Vehicles, Turrets
	Valued:
		Cost: 50
	Health:
		HP: 6000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 43
	Armament:
		Weapon: LMG
	WithInfantryBody:
		-DefaultAttackSequence:
		AttackSequences:
			primary: shoot
	-RevealOnFire:

trooper:
	AutoTargetPriority@bot:
		InvalidTargets: Infantry
		ValidTargets: Vehicle, Defense, Structure, Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		BuildPaletteOrder: 2
		Prerequisites: upgrade.barracks, ~techlevel.medium
		BuildDuration: 100
		Description: Anti-tank infantry\n Strong vs Vehicles\n Weak vs Infantry, Artillery
	Valued:
		Cost: 100
	Health:
		HP: 7000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 31
	Armament:
		Weapon: Bazooka
		LocalOffset: 128,0,256
	TakeCover:
		ProneOffset: 324,0,-204
	WithInfantryBody:
		-DefaultAttackSequence:
		AttackSequences:
			primary: shoot
	-RevealOnFire:

engineer:
	Inherits@botLogic: ^BotLogicEngineer
	Buildable:
		Prerequisites: upgrade.barracks, ~techlevel.medium
		BuildDuration: 150
		BuildPaletteOrder: 3
		Description: Infiltrates and captures enemy structures\n Captures husks\n Repairs ally structures\nAttracts worms when deployed
	Valued:
		Cost: 250
	Health:
		HP: 7000
	RevealsShroud:
		Range: 2c768
	Mobile:
		Speed: 31
		PauseOnCondition: deployed
	InstantlyRepairs:
		Types: Building
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 512
		SkipMakeAnimation: true
		AllowedTerrainTypes: Sand, Spice, Dune, SpiceSand
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	WithInfantryBody:
		RequiresCondition: undeployed
	WithSpriteBody@DEPLOYED:
		Sequence: thump
		RequiresCondition: !undeployed
	WithIdleOverlay@DEPLOYED:
		Sequence: thump-sand
		RequiresCondition: deployed
	AmbientSound:
		SoundFiles: THUMPER1.WAV
		Interval: 60
		RequiresCondition: deployed
	AttractsWorms:
		Intensity: 1000
		Falloff: 0, 0, 0, 100, 100, 100, 25, 11, 6, 4, 3, 2, 1, 0
		RequiresCondition: deployed

scout_infantry:
	Inherits: engineer
	Selectable:
		Class: scout
	Buildable:
		Prerequisites: upgrade.barracks, outpost,~enhancedAirCombat, ~techlevel.medium
		BuildDuration: 100
		BuildPaletteOrder: 9
		Description: Unarmed infantry for reconnaissance\n Stealth detection doubles when deployed\nInvisible when not deployed\nRegenerates to half health after damage\nResistant to slowdown from dunes and rocks
	Tooltip:
		Name: Scout Infantry
	Valued:
		Cost: 125
	Health:
		HP: 6000
	RevealsShroud:
		Range: 3c768
	DetectCloaked:
		Range: 1c765
	DetectCloakedMultiplier@GrantConditionOnDeploy:
		RequiresCondition: deployed
		Modifier: 199
	Mobile:
		Locomotor: resistinf
		Speed: 43
		PauseOnCondition: deployed
	-InstantlyRepairs:
	-CaptureManager:
	-Captures:
	-Captures@Husk:
	-Captures@Cliff:
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 512
		UndeployOnMove: true
		SkipMakeAnimation: true
		DeploySounds: STEALTH1.WAV
		AllowedTerrainTypes: Sand, Rock, Transition, Concrete, SpiceSand, Spice, SpiceBlobs, Dune, Rough
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	TakeCover:
		DamageModifiers:
			Prone50Percent: 75
		DamageTriggers: TriggerProne
		ProneOffset: 300,0,0
		RequiresCondition: undeployed
	WithRangeCircle:
		RequiresCondition: deployed
		Range: 3c512
	-AmbientSound:
	-AttractsWorms:
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled
		PauseOnCondition: deployed
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	WithInfantryBody:
		RequiresCondition: undeployed
	WithIdleOverlay@DEPLOYED0:
		Sequence: thump0
		RequiresCondition: deployed
	WithIdleOverlay@DEPLOYED:
		Sequence: thump
		RequiresCondition: deployed
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	WithColoredOverlay:
		Color: 0F001F38
		RequiresCondition: undeployed

grenadier:
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		BuildPaletteOrder: 4
		Prerequisites: ~barracks.atreides, upgrade.barracks, high_tech_factory, ~techlevel.medium
		BuildDuration: 100
		Description: Infantry armed with grenades\n Strong vs Infantry, Turrets\n Weak vs Tanks, Artillery\nCan attack over walls\nRegenerates to full health after damage\nExplodes when destroyed
	Valued:
		Cost: 75
	Health:
		HP: 6000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 43
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Armament:
		Weapon: grenade
		LocalOffset: 192,0,224
		FireDelay: 3
	TakeCover:
		ProneOffset: 96,100,-64
	WithInfantryBody:
		DefaultAttackSequence: throw
	FireWarheadsOnDeath:
		Weapon: GrenDeath
		EmptyWeapon: GrenDeath
	-RevealOnFire:


mpsardaukar:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	Buildable:
		BuildPaletteOrder: 7
		Prerequisites: ~barracks.harkonnen, upgrade.barracks, high_tech_factory, ~techlevel.medium, ~factions.standard
		BuildDuration: 150
		Description: Emperor elite assault infantry\n Strong vs Infantry, Tanks\n Weak vs Turrets, Artillery\nDeals large damage when crushed by vehicles\nRegenerates to half health after damage\nResistant to slowdown from damage, rocks and dunes
	Valued:
		Cost: 200
	Health:
		HP: 8000
	RevealsShroud:
		Range: 4c768
	Armament@PRIMARY:
		Weapon: MP_Sardaukar_Weapon
	-Armament@SECONDARY:
	-RevealOnFire:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	Mobile:
		Locomotor: resistinf
		Speed: 31
	TakeCover:
		SpeedModifier: 75

mpsardaukar.corrino:
	Inherits: mpsardaukar
	Buildable:
		Prerequisites: ~barracks.corrino, upgrade.barracks, high_tech_factory, ~techlevel.medium, ~!factions.standard

saboteur:
	Inherits@selection: ^SelectableSupportUnit
	ScriptTags:
	Buildable:
		BuildPaletteOrder: 12
		Prerequisites: ~disabled
		BuildDuration: 25
		Description: Stealth infantry, armed with explosives\nCan explode buildings or a huge area around himself\nRemains invisible with critical health\nQuickly becomes invisible until deployed
	Valued:
		Cost: 250
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	WithDecoration@ScullIcon:
		Image: skullicon
		Sequence: idle
		ValidRelationships: Enemy, Neutral, Ally
		Palette: effect
		Position: BottomRight
		Margin: 5, 6
		RequiresCondition: !SuicideAtt
	Health:
		HP: 5000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 43
		PauseOnCondition: SuicideAtt
	Demolition:
		DetonationDelay: 25
		Flashes: 2
		EnterBehaviour: Suicide
	-GrantConditionOnDamageState@UNCLOAK:
	-Cloak:
	-GrantChargedConditionOnToggle:
	Cloak@mute:
		InitialDelay: 1
		CloakDelay: 20
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage
		IsPlayerPalette: true
		PauseOnCondition: SuicideAtt
		RequiresCondition: !SuicideAtt
	FireWarheadsOnDeath@Selfkill:
		Weapon: PlasmaSaboteur
		EmptyWeapon: PlasmaSaboteur
		RequiresCondition: kamikadze
	GrantConditionOnDeploy:
		DeployedCondition: SuicideAtt
		PauseOnCondition: SuicideAtt
	KillsSelf@SuicideKillCount:
		Delay: 25
		RequiresCondition: SuicideAtt
		GrantsCondition: kamikadze
	GrantConditionOnDamageState@UNCLOAK:
		Condition: kamikadze
		ValidDamageStates: Critical
	AmbientSound@onSuicide:
		SoundFiles: audio/explodeSaboteurEmperor02.wav
		RequiresCondition: SuicideAtt
	SpawnActorOnDeath@crater:
		Actor: crater_big
		RequiresCondition: kamikadze
		Offset: -1,0

fremen:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	Buildable:
		BuildPaletteOrder: 13
		Prerequisites: ~disabled
		BuildDuration: 25
		Description: Elite stealth warrior armed with anti-vehicle sonic weapon\nEffective against everything except infantry\nRegenerates to full health after damage\nResistant to slowdown from damage
	Mobile:
		Speed: 43
	Valued:
		Cost: 250
	Tooltip:
		Name: Ranger
	Health:
		HP: 6000
	RevealsShroud:
		Range: 4c768
	AutoTarget:
		ScanRadius: 3
		InitialStance: HoldFire
		InitialStanceAI: ReturnFire
	Armament@PRIMARY:
		Weapon: MP_Fremen_Weapon
	-Armament@SECONDARY:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
	-RevealOnFire:
	Voiced:
		VoiceSet: InfantryVoice
	TakeCover:
		SpeedModifier: 75

assassin:
	Inherits: ^Infantry
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Valued:
		Cost: 225
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 8
		Prerequisites: ~!factions.standard, ~barracks.harkonnen, upgrade.barracks, high_tech_factory, ~techlevel.high
		BuildDuration: 150
		BuildDurationModifier: 100
		Description: Elite infantry armed with accurate sniper rifle\n Attacks only Infantry\n Better vision range\nDouble defense and invisible on the rocks\nRegenerates to half health after damage\nResistant to slowdown from damage
	TerrainModifiesDamage:
		TerrainModifier:
			Rough: 50
	Tooltip:
		Name: Assassin
	Health:
		HP: 5000
	Mobile:
		Speed: 43
		Voice: Move
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: SniperRifle
		FireDelay: 2
	AttackFrontal:
		FacingTolerance: 0
	WithInfantryBody:
		DefaultAttackSequence: shoot
		MinIdleDelay: 90
		MaxIdleDelay: 200
	GrantConditionOnTerrain:
		TerrainTypes: Rough
		Condition: hiddenbetweenrocks
	Voiced:
		VoiceSet: AssassinVoice
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled && hiddenbetweenrocks
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-MustBeDestroyed:
	-RevealOnFire:
	TakeCover:
		SpeedModifier: 75

mortar_inf:
	Inherits: ^Infantry
	Inherits@botlogic: ^botDeployLogic
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Selectable:
		Priority: 10
		PriorityModifiers: Ctrl, Alt
	RevealsShroud:
		Range: 3c520
		RequiresCondition: !deployed
	RevealsShroud@DEPLOYED:
		Range: 6c512
		RequiresCondition: deployed
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 5
		Prerequisites: ~barracks.mercenary, upgrade.barracks, ~techlevel.medium, high_tech_factory, ~!factions.standard
		BuildDuration: 100
		BuildDurationModifier: 100
		Description: Infantry armed with siege weapon\n Strong vs Infantry, Turrets\n Weak vs Vehicles, Artillery\nCan attack over walls\nAttack and vision range almost doubles when deployed
	Valued:
		Cost: 150
	Tooltip:
		Name: Mortar Infantry
	WithRangeCircle:
		RequiresCondition: deployed
		Range: 6c512
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 7000
	Mobile:
		Speed: 31
		PauseOnCondition: deployed
		RequireForceMoveCondition: !undeployed
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 768
		UndeployOnMove: true
		SkipMakeAnimation: false
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	TakeCover:
		DamageModifiers:
			Prone50Percent: 75
		DamageTriggers: TriggerProne
		ProneOffset: 300,0,0
		RequiresCondition: undeployed
	WithMakeAnimation:
		Sequence: deploying
	WithInfantryBody:
		RequiresCondition: undeployed && !beforedeploy && !dummyfire
		DefaultAttackSequence: standup
	WithSpriteBody@DEPLOYED:
		Sequence: invisible
		RequiresCondition: !undeployed
	Turreted:
		Turret: turret
	WithSpriteTurret@idle:
		RequiresCondition: deployed && !AnimateTurret
	WithSpriteTurret@animated:
		RequiresCondition: deployed && AnimateTurret
		Sequence: thump
	WithIdleOverlay@sand:
		Sequence: muzzle
		RequiresCondition: deployed && AnimateTurret
	GrantConditionOnAttack:
		Condition: AnimateTurret
		RevokeDelay: 14
	RangeMultiplier@DEPLOYED:
		RequiresCondition: deployed
		Modifier: 185
	Armament:
		Weapon: 40mm_mortar
		LocalOffset: 0,100,200
		MuzzleSequence: muzzle
	WithMuzzleOverlay:
	GrantCondition:
		Condition: editorhack
	WithInfantryBody@Editor:
		RequiresCondition: !editorhack
	AttackFrontal:
		FacingTolerance: 512
		OutsideRangeRequiresForceFire: False
	-RevealOnFire:

mercenary:
	Inherits: ^Infantry
	Inherits: ^botDeployLogic
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	AutoTargetPriority@bot:
		InvalidTargets: Infantry
		ValidTargets: Vehicle, Defense, Structure, Tank
		Priority: 40
		RequiresCondition: ignore-creeps
	Selectable:
		Priority: 10
		PriorityModifiers: Alt
	Buildable:
		BuildPaletteOrder: 14
		Prerequisites: ~disabled, barracks
		BuildDuration: 25
		BuildDurationModifier: 100
		Description: Elite mercenary armed with accurate deployable cannon\n Huge firepower in a small area\nAttack and vision range almost doubles when deployed\nResistant to slowdown from damage
		Queue: Infantry
	Valued:
		Cost: 250
	Tooltip:
		Name: Hireling
	Mobile:
		Speed: 31
		PauseOnCondition: deployed
		RequireForceMoveCondition: !undeployed
	TakeCover:
		SpeedModifier: 75
		RequiresCondition: undeployed
	RevealsShroud:
		Range: 3c520
		RequiresCondition: !deployed
	RevealsShroud@DEPLOYED:
		Range: 6c512
		RequiresCondition: deployed
	Health:
		HP: 8000
	Armor:
		Type: none
	RangeMultiplier@DEPLOYED:
		RequiresCondition: deployed
		Modifier: 185
	Armament:
		Weapon: portable_cannon
		LocalOffset: 0,100,0
		MuzzleSequence: muzzle
	WithMuzzleOverlay:
	GrantConditionOnDeploy:
		UndeployOnPickup: true
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		UndeployOnMove: true
		SkipMakeAnimation: false
		Facing: 768
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	WithInfantryBody:
		RequiresCondition: undeployed && !beforedeploy && !dummyfire
		DefaultAttackSequence: turret-shoot
	WithFacingSpriteBody:
		Sequence: invisible
		RequiresCondition: !undeployed
	Turreted:
		TurnSpeed: 512
		InitialFacing: 1023
		RealignDelay: -1
		RequiresCondition: deployed
	WithSpriteTurret@idle:
		RequiresCondition: deployed && !AnimateTurret
	WithSpriteTurret@animated:
		RequiresCondition: deployed && AnimateTurret
		Sequence: turret-shoot
	GrantConditionOnAttack:
		Condition: AnimateTurret
		RevokeDelay: 14
	WithMakeAnimation@DEPLOYING:
		Sequence: deploying
	GrantCondition:
		Condition: editorhack
	WithRangeCircle:
		RequiresCondition: deployed
		Range: 6c512
	WithInfantryBody@Editor:
		RequiresCondition: !editorhack
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	AttackFrontal:
		FacingTolerance: 512
		OutsideRangeRequiresForceFire: False
	-RevealOnFire:

officer:
	Inherits: ^Infantry
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 11
		BuildDuration: 25
		Prerequisites: ~disabled, ~!factions.standard
		Description: Unarmed infantry with laser area pointer and better vision range\nTargets near the laser marked point take double damage\nRegenerates to half health after damage\nResistant to slowdown from damage, rocks and dunes
	Tooltip:
		Name: Target Designator
	RevealsShroud:
		Range: 6c512
	Valued:
		Cost: 250
	Health:
		HP: 7000
	Armament:
		Weapon: laserpointer
		LocalOffset: 360,0,240
	Voiced:
		VoiceSet: GenericVoice
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	WithInfantryBody:
		DefaultAttackSequence: shoot
	-RevealOnFire:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	Mobile:
		Locomotor: resistinf
		Speed: 31
	TakeCover:
		SpeedModifier: 75

fremen_warrior:
	Inherits: fremen
	RenderSprites:
		Image: fremen_warrior
	Tooltip:
		Name: Arrakis Warrior
	RevealsShroud:
		Range: 4c768
	AutoTarget:
		ScanRadius: 3
		InitialStance: Defend
		InitialStanceAI: Defend
	Valued:
		Cost: 175
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 6
		Prerequisites: ~!factions.standard, ~barracks.fremen, upgrade.barracks, high_tech_factory, ~techlevel.medium
		BuildDuration: 100
		BuildDurationModifier: 100
		Description: Fremen armed with shock weapon\n Moderate vs Everything except Turrets\n Slows targets for half a second\nBetter defence on the sands\nRegenerates to full health after damage
	TerrainModifiesDamage:
		TerrainModifier:
			Sand: 75
			SpiceSand: 75
			Spice: 75
			SpiceBlobs: 75
			Dune: 75
			Rough: 75
	Armament@PRIMARY:
		Weapon: MP_Fedaykin_Weapon
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	-Cloak:
	-GrantConditionOnDamageState@UNCLOAK:
	Voiced:
		VoiceSet: FremenVoice
	TakeCover:
		DamageModifiers:
			Prone50Percent: 75
		DamageTriggers: TriggerProne
		ProneOffset: 300,0,0
	WithColoredOverlay:
		Color: 81720012

worm_rider:
	Buildable:
		Queue: Infantry
		BuildDuration: 50
		BuildDurationModifier: 100
		BuildPaletteOrder: 15
		Description: Attracts a worm and saddle it for a couple of minutes\nNeeds to be deployed on the sand, invisible until this time\nRegenerates to full health after damage\nBest vision range on worm
	Inherits: thumper
	AttackFrontal@deploytargeting:
		FacingTolerance: 0
	GrantConditionOnBotOwner@bots:
		Condition: deployed
		Bots: omnius, vidious, gladius
	GrantConditionOnTerrain@forBotonly:
		TerrainTypes: Sand, Spice, Dune, SpiceSand
		Condition: desert_terain
	-ActorLostNotification:
	Tooltip:
		Name: Worm Rider
	-WithDecoration@thumpers:
	WithDecoration@skullFromRA:
		Image: pips
		Sequence: pip-thumpers
		Palette: temperat
		Position: BottomRight
		ValidRelationships: Ally, Enemy, Neutral
		RequiresCondition: undeployed
	Valued:
		Cost: 250
	Health:
		HP: 6000
	Mobile:
		Speed: 43
		PauseOnCondition: deployed
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Voiced:
		VoiceSet: FremenVoice
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Heal
		IsPlayerPalette: true
		PauseOnCondition: cloak-force-disabled
		RequiresCondition: !deployed
	KillsSelf:
		Delay: 750
		GrantsCondition: spawnWorm
		RequiresCondition: deployed && desert_terain
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		PauseOnCondition: deployed
		UndeployOnMove: false
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	SpeedMultiplier@wormeated:
		Modifier: 100
		RequiresCondition: stop
	SpeedMultiplier@worm_eating:
		Modifier: 100
		RequiresCondition: worm_attack
	AmbientSound:
		SoundFiles: THUMPER1.WAV
		Interval: 40
		RequiresCondition: deployed && desert_terain
	-SpawnActorOnDeath:
	SpawnActorOnDeath@RIDER:
		Actor: mp_sandworm
		RequiresCondition: spawnWorm
		SkipMakeAnimations: false
	WithColoredOverlay:
		Color: 81720012

mp_sandworm:
	Inherits@world: ^ExistsInWorld
	Inherits@selectable: ^SelectableCombatUnit
	Inherits@1: ^SpriteActor
	Selectable:
		Bounds: 1024, 1024, 0, 0
	Tooltip:
		Name: Sandworm
	Health:
		HP: 500000
	HitShape:
		Type: Rectangle
			TopLeft: -512, -512
			BottomRight: 512, 1024
	Armor:
		Type: wood
	RenderSprites:
		Palette: terrain
	Mobile:
		Speed: 55
		TurnSpeed: 24
		Locomotor: worm_mp
		PauseOnCondition: makeAnimation
	Targetable:
		TargetTypes: Ground, Vehicle
	WithFacingSpriteBody:
	WithIdleOverlay@makeanimfromdummy:
		RequiresCondition: makeAnimation
		Sequence: make
		Image: mp_sandworm
	WithMakeAnimation:
		Condition: makeAnimation
	AmbientSound:
		SoundFiles: WRMSIGN1.WAV
		Delay: 500
		Interval: 500
	KillsSelf:
		Delay: 3000
		GrantsCondition: dispose
	FireWarheadsOnDeath@1:
		Weapon: worm_disapier
		EmptyWeapon: worm_disapier
		RequiresCondition: dispose
	FireWarheadsOnDeath@2:
		Weapon: worm_explode
		EmptyWeapon: worm_explode
		RequiresCondition: !dispose
	AmbientSound@worm_roar:
		SoundFiles: audio/worm_roar_1_tc.wav, audio/worm_roar_2_tc.wav, audio/worm_roar_5_tc.wav, audio/worm_roar_6_tc.wav,
		Interval: 20, 100
		RequiresCondition: !makeAnimation
	AmbientSound@invoking:
		SoundFiles: audio/worm_sign_elec_1.wav
		RequiresCondition: makeAnimation
	HiddenUnderFog:
	AppearsOnRadar:
		UseLocation: true
	ExternalCondition:
		Condition: worm_eating_anim
	WithIdleOverlay@mouth:
		Sequence: mouth
		RequiresCondition: worm_eating_anim
	Wanders:
		WanderMoveRadius: 5
		MinMoveDelay: 25
		MaxMoveDelay: 50
		AvoidTerrainTypes: Rock, Rough, Concrete
	IgnoresCloak:
	AnnounceOnSeen:
		Notification: WormSign
		PingRadar: True
	RevealsShroud:
		Range: 7c512
	RevealOnDeath:
		Duration: 25
	LeavesTrails:
		Image: sandtrail
		Sequences: traila, trailb, trailc
		Palette: effect
		Type: CenterPosition
		TerrainTypes: Sand, Dune, SpiceSand, Spice
		MovingInterval: 3
		Offsets: -1024,0,0
	RevealOnFire:
		Duration: 50
		Radius: 2c512
	ProximityExternalCondition:
		Range: 1c512
		Condition: worm_attack
		ValidRelationships: Ally, Neutral, Enemy
	ProximityExternalCondition@stop:
		Range: 1c002
		Condition: stop
		ValidRelationships: Enemy, Ally, Neutral
	SpawnActorOnDeath@rideEnds:
		Actor: fremen_warrior
		RequiresCondition: dispose
		SkipMakeAnimations: false
	GrantConditionOnCombatantOwner@nonAi:
		Condition: human_player
	RejectsOrders:
		Reject: AttackMove, AssaultMove
		RequiresCondition: human_player
	ExternalCondition@wormIsnear:
		Condition: worm_attack
	ExternalCondition@stop:
		Condition: stop
	SpeedMultiplier@wormeated:
		Modifier: 100
		RequiresCondition: stop
	SpeedMultiplier@worm_eating:
		Modifier: 100
		RequiresCondition: worm_attack

spire:
	Inherits: quad
	Buildable:
		Prerequisites: upgrade.light, outpost, ~enhancedAirCombat
		BuildDuration: 300
		BuildDurationModifier: 100
		BuildPaletteOrder: 65
		Description: Fastest scout vehicle with light laser weapons\n Weak vs Everything\nEffective for detonating spice blooms\nResistant to slowdown from dunes\nBest vision range
	Valued:
		Cost: 500
	Selectable:
		Class: spire
	Health:
		HP: 11000
	Tooltip:
		Name: Stalker
	Armor:
		Type: light
	Mobile:
		Locomotor: spires
		TurnSpeed: 40
		Speed: 145
	RevealsShroud:
		Range: 7c512
	Armament:
		Weapon: lasergun
		LocalOffset: 400,50,125, 400,-50,125
	Inherits@selection: ^SelectableSupportUnit
	Selectable:
		Class: recon

quad.heavy:
	Inherits: quad
	Buildable:
		Prerequisites: ~light.heavy_quad, upgrade.light, ~!factions.standard, ~techlevel.high
		BuildDuration: 350
		BuildDurationModifier: 100
		BuildPaletteOrder: 60
		Description: Expensive Quad with homing missiles and better vision range\n Strong vs Vehicles\n Weak vs Infantry
	Valued:
		Cost: 550
	Tooltip:
		Name: Quarter
	Health:
		HP: 13000
	Armor:
		Type: light
	Mobile:
		Locomotor: light_vehicle
		Speed: 100
		TurnSpeed: 28
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: rocket_spike
		LocalOffset: 128,0,64
	Selectable:
		Class: quarter

hunter:
	Inherits: trike
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Prerequisites: ~light.hunter, ~!factions.standard
		BuildPaletteOrder: 10
		BuildDuration: 250
		Description: Turreted Trike with better attack range\n Strong vs Infantry\n Weak vs Vehicles
	Tooltip:
		Name: Hunter
	Valued:
		Cost: 350
	Selectable:
		Class: hunter
	Mobile:
		Locomotor: light_vehicle
		TurnSpeed: 32
		Speed: 115
	Turreted:
		TurnSpeed: 35
		Offset: -200,0,30
		RealignDelay: 0
	-AttackFrontal:
	WithMuzzleOverlay:
	AttackTurreted:
	WithSpriteTurret:
	RevealsShroud:
		Range: 5c512
	Armament@damage:
		Weapon: HMGhunter
		LocalOffset: -200,0,0
		MuzzleSequence: muzzle
	Armament@muzzle:
		Weapon: HMG_muzzle
		LocalOffset: -200,0,0
		MuzzleSequence: muzzle

jammer:
	Inherits: ^Vehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Vehicle
		Prerequisites: ~light.jammer, ~!factions.standard, upgrade.light, high_tech_factory
		BuildDuration: 300
		BuildDurationModifier: 100
		BuildPaletteOrder: 55
		Description: Invisible scout with deployable jamming device\n Greatly decreases unit and building vision\n Removes invisibility detection\nAffects enemies in a huge area around when deployed\nInvisible when not attacking or deployed\nBest vision range when deployed
	Valued:
		Cost: 500
	Tooltip:
		Name: Jammer
	Health:
		HP: 13000
	Armor:
		Type: light
	Mobile:
		Speed: 100
		TurnSpeed: 28
		PauseOnCondition: notmobile || deployed_jammer
	RevealsShroud:
		Range: 5c512
		RequiresCondition: !deployed_jammer
	RevealsShroud@deployed:
		Range: 7c512
		RequiresCondition: deployed_jammer
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		IsPlayerPalette: true
		PauseOnCondition: cloak-force-disabled
		RequiresCondition: !deployed_jammer
	GrantChargedConditionOnToggle:
		ActivatedCondition: deployed_jammer
		CanCancelCondition: true
		ChargeDuration: 750
		ChargeThreshhold: -1
		ConditionDuration: 375
		ActivationSounds: audio/ironcur9.aud
		PauseOnCondition: unitCapturated
		RequiresCondition: !unitCapturated
	FireWarheadsOnDeath:
		Weapon: UnitExplodeSmall
		EmptyWeapon: UnitExplodeSmall
	ProximityExternalCondition@jam:
		Condition: jammed
		Range: 7c512
		ValidRelationships: Enemy, Neutral
		RequiresCondition: deployed_jammer
	Selectable:
		Class: support
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	WithRangeCircle:
		RequiresCondition: deployed_jammer
		Range: 7c512
	WithIdleOverlay@DEPLOYED:
		Sequence: deployed
		RequiresCondition: deployed_jammer
	AttackFrontal:
		FacingTolerance: 0
	AutoTarget:
		InitialStance: HoldFire
		InitialStanceAI: AttackAnything
	Armament:
		Weapon: jammerrpointer
		LocalOffset: 400,0,125
		RequiresCondition: !deployed_jammer
	-RevealOnFire:

bombardment_tank:
	Inherits: ^Vehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Armor
		Prerequisites: ~heavy.corrino, upgrade.heavy, research_centre, ~!factions.standard
		BuildDuration: 600
		BuildDurationModifier: 100
		BuildPaletteOrder: 100
		Description: Turreted Rapid-Fire Artillery\n Moderate vs Everything\nFire rate doubles when standing\nResistant to slowdown from damage and dunes\nCan attack over walls
	Health:
		HP: 15000
	Valued:
		Cost: 1000
	Tooltip:
		Name: Bombardment Tank
	Armor:
		Type: heavy
	Mobile:
		Speed: 64
		TurnSpeed: 18
		Locomotor: tank_corrino
	HitShape:
		Type: Circle
			Radius: 405
	RevealsShroud:
		Range: 6c512
	Turreted:
		TurnSpeed: 18
		Offset: -200,0,170
	AttackTurreted:
	WithMuzzleOverlay:
	WithSpriteTurret:
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	GrantConditionOnMovement:
		Condition: unmoved
		ValidMovementTypes: Horizontal, Turn
	Armament:
		Weapon: clusterMissile
		LocalOffset: -100,125,150, -100,-125,150, -100,100,125, -100,-100,125
	SpawnActorOnDeath:
		Actor: bombardment_tank.husk
		SpawnAfterDefeat: false
		RequiresCondition: !worm_attack
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-RevealOnFire:
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 95
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 95
	-ReloadDelayMultiplier@CRITDAMAGE:
	ReloadDelayMultiplier@unmoved:
		Modifier: 50
		RequiresCondition: !unmoved
	WithColoredOverlay:
		Color: DC6C1512

flamer:
	Inherits: ^Tank
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tanks
		Priority: 25
		RequiresCondition: ignore-creeps
	AutoTargetPriority@bot2:
		ValidTargets: Vehicle
		InvalidTargets: Tanks
		Priority: 10
		RequiresCondition: bot-owned
	Buildable:
		Queue: Armor
		BuildDuration: 550
		BuildDurationModifier: 100
		BuildPaletteOrder: 70
		Prerequisites: ~heavy.smuggler, upgrade.heavy, research_centre
		Description: Fast Flame Tank\n Strong vs Infantry, Light Vehicles, Harvesters\n Weak vs Tanks, Turrets\nDestroys spice\nSets units on fire for a couple of seconds\nExplodes when destroyed
	Health:
		HP: 20000
	Valued:
		Cost: 900
	Tooltip:
		Name: Flamer
	Armor:
		Type: heavy
	Mobile:
		Speed: 82
		TurnSpeed: 22
	RevealsShroud:
		Range: 5c512
	AttackFrontal:
		FacingTolerance: 0
	FireWarheadsOnDeath:
		Weapon: flamer_explosion_big
		EmptyWeapon: flamer_explosion_big
		DeathTypes: BulletDeath
	FireWarheadsOnDeath@big:
		Weapon: flamer_explosion_big
		EmptyWeapon: flamer_explosion_big
		DeathTypes: ExplosionDeath, SoundDeath, FireDeath, SmallExplosionDeath
	FireWarheadsOnDeath@small1:
		Offset: 500,400,0
		Chance: 100
		Weapon: flamer_explosion_small
		EmptyWeapon: flamer_explosion_small
		DeathTypes: ExplosionDeath, SoundDeath, FireDeath, SmallExplosionDeath
	FireWarheadsOnDeath@small2:
		Offset: -800,-300,0
		Chance: 100
		Weapon: flamer_explosion_small02
		EmptyWeapon: flamer_explosion_small02
		DeathTypes: ExplosionDeath, SoundDeath, FireDeath, SmallExplosionDeath
	FireWarheadsOnDeath@small3:
		Offset: 200,900,0
		Chance: 100
		Weapon: flamer_explosion_small03
		EmptyWeapon: flamer_explosion_small03
		DeathTypes: ExplosionDeath, SoundDeath, FireDeath
	Armament:
		Weapon: flamethrower
		LocalOffset: 100,0, 200
	SpawnActorOnDeath:
		Actor: flamer.husk
		DeathType: BulletDeath
		RequiresCondition: !worm_attack
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-RevealOnFire:

frigate.harkonnen:
	Inherits: carryall.reinforce_with_sound
	RenderSprites:
		Image: frigate.harkonnen
	Buildable:
		Queue: Aircraft
		BuildDuration: 1250
		BuildDurationModifier: 100
		BuildPaletteOrder: 120
		Prerequisites: upgrade.hightech, barracks
		Description: Delivers 5 light infantry to any selected area\n Unloads infantry to the rally point
	Health:
		HP: 45000
	Armor:
		Type: light
	Aircraft:
		IdleBehavior: Land
		Speed: 150
		TurnSpeed: 20
	KillsSelf:
		Delay: 25
		GrantsCondition: timerstart
		RequiresCondition: !airborne
	SpawnActorOnDeath@CRUISING:
		RequiresCondition: cruising && !timerstart
	SpawnActorOnDeath@LANDING:
		RequiresCondition: !cruising && !timerstart
	-FireProjectilesOnDeath@derbis:
	-FireProjectilesOnDeath@derbisExplosions:
	-FireProjectilesOnDeath@derbisExplosions2:
	SpawnActorOnDeath:
		Actor: light_inf
		RequiresCondition: timerstart
	SpawnActorOnDeath@1:
		Actor: light_inf
		RequiresCondition: timerstart
	SpawnActorOnDeath@2:
		Actor: light_inf
		RequiresCondition: timerstart
	SpawnActorOnDeath@3:
		Actor: light_inf
		RequiresCondition: timerstart
	SpawnActorOnDeath@4:
		Actor: light_inf
		RequiresCondition: timerstart
	-ActorLostNotification:

carryall.that.leaves.map:
	Inherits: carryall.reinforce
	-Buildable:
	Tooltip:
		Name: Infantry Reinforcements
	Aircraft:
		IdleBehavior: LeaveMap

frigate.harkonnen_cargo:
	Inherits: frigate.harkonnen
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	RenderSprites:
		Image: frigate.harkonnen
	-Buildable:
	Aircraft:
		IdleBehavior: None
	Health:
		HP: 45000
	RejectsOrders:
	Armament:
		Weapon: clusterMissile
		LocalOffset: -100,0,0, -100,100,0, -100,200,0
		PauseOnCondition: ammo == 0
		RequiresCondition: landing_area
	ExternalCondition@activateWeapon:
		Condition: landing_area
	AmmoPool:
		Ammo: 12
		AmmoCondition: ammo
	AutoTarget:
		InitialStance: AttackAnything
	Cargo:
		Types: Infantry, Vehicle
		PassengerFacing: 512
		BeforeUnloadDelay: 50
	Turreted:
	AttackTurreted:

frigate:
	Aircraft:
		AltitudeVelocity: 100
		IdleBehavior: LeaveMap
		Speed: 300
		TurnSpeed: 5
		Repulsable: False
		MaximumPitch: 20
		CruiseAltitude: 3000
		VTOL: true
		CanHover: true
		CanSlide: true
	ParaDrop:
		DropRange: 2c500
	GrantConditionOnPrerequisite@frigatecloaked:
		Condition: cloakedfrigate
		Prerequisites: cloak.frigate
	Cloak:
		InitialDelay: 0
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		RequiresCondition: cloakedfrigate
		IsPlayerPalette: true

frigate_choam:
	Inherits: carryall.reinforce
	ParaDrop:
	RenderSprites:
		Image: frigate
	Cargo:
		MaxWeight: 20
	RejectsOrders:
	ProximityExternalCondition:
		Condition: frigate_proximity_influence
		Range: 6c0
	Aircraft:
		IdleBehavior: LeaveMapAtClosestEdge
		Speed: 300
		TurnSpeed: 5
		Repulsable: False
		MaximumPitch: 20
		CruiseAltitude: 2048
		VTOL: true
		CanHover: true
		CanSlide: true
	SpawnActorOnDeath@CRUISING:
		Actor: frigate.husk
	SpawnActorOnDeath@LANDING:
		Actor: frigate.huskvtol
	Cloak@perma:
		InitialDelay: 0
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage
		IsPlayerPalette: true

thumper:
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 9990
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: Attracts a worm\nNeeds to be deployed on the sand\nInvisible when standing and not deployed\nRegenerates to full health after damage
	Inherits@selection: ^SelectableSupportUnit
	RevealsShroud:
		Range: 3c768
	Tooltip:
		Name: Fremen Thumper
	Valued:
		Cost: 250
	Health:
		HP: 6000
	Mobile:
		Speed: 43
		PauseOnCondition: deployed
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 512
		AllowedTerrainTypes: Sand, Spice, Dune, SpiceSand
		PauseOnCondition: deployed
		UndeployOnMove: false
	WithInfantryBody:
		RequiresCondition: undeployed
	WithSpriteBody@DEPLOYED:
		Sequence: thump
		RequiresCondition: !undeployed
	WithMakeAnimation@DEPLOYING:
		Sequence: deploy
	WithIdleOverlay@DEPLOYED:
		Sequence: thump-sand
		RequiresCondition: deployed
	AmbientSound:
		SoundFiles: THUMPER1.WAV
		Interval: 20
		RequiresCondition: deployed && desert_terain
	AttackFrontal@deploytargeting:
		FacingTolerance: 0
	GrantConditionOnBotOwner@bots:
		Condition: deployed
		Bots: omnius, vidious, gladius
	GrantConditionOnTerrain@forBotonly:
		TerrainTypes: Sand, Spice, Dune, SpiceSand
		Condition: desert_terain
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Voiced:
		VoiceSet: FremenVoice
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
		UncloakOn: Move, Attack, Unload, Infiltrate, Demolish, Damage, Heal
		IsPlayerPalette: true
		PauseOnCondition: cloak-force-disabled
		RequiresCondition: !deployed
	KillsSelf:
		Delay: 375
		GrantsCondition: spawnWorm
		RequiresCondition: deployed && desert_terain
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	SpawnActorOnDeath:
		Actor: worm_eating
		RequiresCondition: spawnWorm
		Offset: -1,-1
	WithColoredOverlay:
		Color: ACDAFF30
	WithDecoration@thumpers:
		Image: pips
		Sequence: pip-skull
		Palette: temperat
		Position: BottomRight
		ValidRelationships: Ally, Enemy, Neutral

sardaukar:
	Buildable:
		BuildDuration: 150
		BuildPaletteOrder: 9999
		Description: Emperor elite assault infantry\n Strong vs Infantry, Tanks\n Weak vs Turrets, Artillery\nDeals large damage when crushed by vehicles\nRegenerates to half health after damage\nResistant to slowdown from damage, rocks and dunes
	Valued:
		Cost: 200
	Mobile:
		Locomotor: resistinf
		Speed: 31
	TakeCover:
		SpeedModifier: 75

ornithopter_s:
	Inherits: ornithopter
	RenderSprites:
		Image: ornithopter_s
	-AttackBomber:
	Aircraft:
		AltitudeVelocity: 8c0
	Tooltip:
		Name: Scout Ornithopter
	Buildable:
		Queue: Aircraft
		BuildDuration: 1000
		BuildDurationModifier: 100
		BuildPaletteOrder: 140
		Description: Unarmed aircraft for reconnaissance\n Flies along rally path then circles around rally point\nBest vision range\nRegenerates to half health after damage
		Prerequisites: upgrade.hightech, outpost, ~enhancedAirCombat
	AttackAircraft:
		AttackType: Strafe
		StrafeRunLength: 4c0
		OpportunityFire: true
		ForceFireIgnoresActors: false
		Voice: Attack
		FacingTolerance: 512
		PersistentTargeting: false
		AbortOnResupply: false
	Armor:
		Type: light
	Aircraft:
		Speed: 225
		TurnSpeed: 5
		Repulsable: False
		CruiseAltitude: 2000
			AirborneCondition: airborne
		CanSlide: True
	Valued:
		Cost: 1500
	RevealsShroud@airborne:
		Range: 7c512
		Type: GroundPosition
		RequiresCondition: airborne
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

nsfremen:
	-Buildable:

crawler:
	AutoTargetPriority@bot:
		ValidTargets: Tank, Vehicle, Infantry
		InvalidTargets: Structure, Defense
		Priority: 50
		RequiresCondition: ignore-creeps
	Inherits: quad
	Buildable:
		Queue: Vehicle
		Prerequisites: ~disabled, starport, ~light.harkonnen, ~techlevel.medium
		BuildPaletteOrder: 70
		Description: Transporter with energy beam device\n Stops targets completely\n Transports and heals ally infantry\nBetter vision range
		BuildDuration: 650
	Valued:
		Cost: 1100
	Selectable:
		Class: crawler
	Health:
		HP: 20000
	Armor:
		Type: heavy
	Mobile:
		Speed: 55
		TurnSpeed: 16
		Locomotor: tank
	HitShape:
		Type: Circle
			Radius: 495
	RevealsShroud:
		Range: 6c512
	Tooltip:
		Name: Crawler
	Cargo:
		Types: Infantry
		MaxWeight: 5
		LoadingCondition: notmobile
		InitialUnits: mercenary, mercenary, mercenary, mercenary, mercenary
	Armament:
		Weapon: slowlaserpointer
		LocalOffset: 25,75,75, 25,-75,75
	RenderSprites:
		Image: crawler
	WithCargoPipsDecoration:
		Position: BottomLeft
		Margin: 4, 3
		RequiresSelection: true
	Armor:
		Type: heavy
	Mobile:
		PauseOnCondition: notmobile
	SpawnActorOnDeath:
		Actor: crawler.husk
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: !worm_attack
	ProximityExternalCondition@dhealign:
		Condition: carrierhealing
		Range: 0c276
		ValidRelationships: Ally

crawler_revived:
	Inherits: crawler
	Cargo:
		Types: Infantry
		MaxWeight: 5
		LoadingCondition: notmobile
		-InitialUnits:
	-Buildable:

carrier:
	Inherits: combat_tank_fremen
	Buildable:
		BuildDuration: 600
		BuildPaletteOrder: 110
		Prerequisites: ~carrier, upgrade.heavy, research_centre, ~techlevel.high
		Description: Fremen tank armed with dual shock weapon\n Moderate vs Everything except Turrets\n Slows targets for half a second\nHigh health with medium speed\nInvisible on the sands\nHigh accurate
	Health:
		HP: 30000
	Valued:
		Cost: 1000
	Tooltip:
		Name: Sand Tank
	Mobile:
		Speed: 73
		TurnSpeed: 20
		Locomotor: tank
	Turreted:
		TurnSpeed: 20
	HitShape:
	Armament:
		Weapon: Fremen_Turret
	SpawnActorOnDeath:
		Actor: carrier.husk
		RequiresCondition: !worm_attack
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Selectable:
		Class: carrier
	WithColoredOverlay:
		Color: 81720012
