^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
	InaccuracyMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 50
	RangeMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 50
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 50
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 0
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed
	WithDecoration@jammed:
		Image: pips
		Sequence: pip-jammer
		ValidRelationships: Ally, Enemy, Neutral
		Palette: d2k
		Position: BottomRight
		Margin: 6, 14
		RequiresCondition: jammed

^Deviatorparalyzes
	ExternalCondition@paralysis:
		Condition: paralyzed
	SpeedMultiplier@paralysis:
		Modifier: 0
		RequiresCondition: paralyzed
	RevealsShroudMultiplier@paralysis:
		RequiresCondition: paralyzed
		Modifier: 0
	DetectCloakedMultiplier@paralysis:
		RequiresCondition: paralyzed
		Modifier: 0
	WithDecoration@paralysis:
		Image: pips
		Sequence: pip-skull
		ValidRelationships: Ally, Enemy, Neutral
		Palette: temperat
		Position: TopLeft
		Margin: 6, 7
		RequiresCondition: paralyzed

^DeviatorparalyzesALLY
	ExternalCondition@paralysisALLY:
		Condition: paralyzedAlly
	RangeMultiplier@paralysisALLY:
		Modifier: 10
		RequiresCondition: paralyzedAlly && !already
	InaccuracyMultiplier@paralysisALLY:
		Modifier: 1
		RequiresCondition: paralyzedAlly && !already
	SpeedMultiplier@paralysisALLY:
		Modifier: 0
		RequiresCondition: paralyzedAlly && !already
	RevealsShroudMultiplier@paralysisALLY:
		Modifier: 0
		RequiresCondition: paralyzedAlly && !already
	DetectCloakedMultiplier@paralysisALLY:
		Modifier: 0
		RequiresCondition: paralyzedAlly && !already
	WithDecoration@paralysisALLY:
		Image: pips
		Sequence: pip-skull
		ValidRelationships: Ally, Enemy, Neutral
		Palette: temperat
		Position: TopLeft
		Margin: 6, 7
		RequiresCondition: paralyzedAlly && !already

^chaos_bomb_influence:
	ExternalCondition@chaos_bomb_influence:
		Condition: chaos_bomb
	Armament@chaos_bomb_influence:
		TargetRelationships: Enemy, Ally, Neutral
		RequiresCondition: chaos_bomb && !already
	AttackWander:
		WanderMoveRadius: 3
		AvoidTerrainTypes: Cliff, Rough
		RequiresCondition: chaos_bomb && !already
	RejectsOrders@chaos_bomb_influence:
		RemoveOrders: true
		RequiresCondition: chaos_bomb && !already
	RevealsShroudMultiplier@chaos_bomb_influence:
		Modifier: 0
		RequiresCondition: chaos_bomb && !already
	WithDecoration@chaos_bomb_influence:
		Image: pips
		Sequence: pip-skullicon
		ValidRelationships: Ally, Enemy, Neutral
		Palette: effect
		Position: TopRight
		Margin: 6, 7
		RequiresCondition: chaos_bomb && !already

^wormslowing:
	ExternalCondition@wormIsnear:
		Condition: worm_attack
	ExternalCondition@stop:
		Condition: stop
	SpeedMultiplier@wormeated:
		Modifier: 25
		RequiresCondition: stop
	SpeedMultiplier@worm_eating:
		Modifier: 50
		RequiresCondition: worm_attack
	WithColoredOverlay@wormeated:
		Color: FFEA6917
		RequiresCondition: stop
	WithColoredOverlay@worm_eating:
		Color: FFF1A117
		RequiresCondition: worm_attack

^Infantry:
	Inherits@healing: ^InfantryHealing
	Inherits@jammed: ^jammedvision
	Inherits@paralyzed: ^Deviatorparalyzes
	Inherits@chaos: ^chaos_bomb_influence
	Inherits@wormslowing: ^wormslowing
	Mobile:
		PauseOnCondition: frozed
	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:
		RequiresCondition: !frozed
	WithInfantryBody:
		MinIdleDelay: 50
		MaxIdleDelay: 150
	TakeCover:
		DamageModifiers:
			Prone50Percent: 75
		PauseOnCondition: frozed
	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
		FallRate: 25
	HitShape:
		Type: Circle
			Radius: 64
	TerrainModifiesDamage:
		TerrainModifier:
			Rough: 75
	Armament@chaos_bomb_influence:
		RequiresCondition: chaos_bomb
	AttackWander:
		RequiresCondition: chaos_bomb
	RejectsOrders@chaos_bomb_influence:
		RequiresCondition: chaos_bomb
	RevealsShroudMultiplier@chaos_bomb_influence:
		RequiresCondition: chaos_bomb
	WithDecoration@chaos_bomb_influence:
		RequiresCondition: chaos_bomb
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 125
		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
	WithColoredOverlay@frozed:
		Color: CAB8D685
		RequiresCondition: frozed
	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
		RequiresCondition: !paralyzed && !chaos_bomb
	Voiced:
		RequiresCondition: !chaos_bomb

^Vehicle:
	Inherits@BotRepairLogic: ^BotLogicRepairing
	Inherits@jammed: ^jammedvision
	Inherits@paralyzedAlly: ^DeviatorparalyzesALLY
	Inherits@chaos: ^chaos_bomb_influence
	Inherits@wormslowing: ^wormslowing
	Mobile:
		PauseOnCondition: notmobile || frozed
	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: 125
		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: 320
	Demolishable:
		Condition: being-demolished
	FireWarheadsOnDeath@sabotuerdemolition:
		RequiresCondition: being-demolished
		Type: CenterPosition
		Weapon: SaboteurSmallExplosion
		EmptyWeapon: SaboteurSmallExplosion
	SpawnActorOnDeath@bigcrater:
		Actor: crater_big
		Offset: -1,0
		RequiresCondition: being-demolished
	AmbientSound@saboteurCharge:
		SoundFiles: audio/explodeSaboteurEmperor02.wav
		RequiresCondition: being-demolished
	GrantCondition@ALREADY:
		Condition: already
		RequiresCondition: unitCapturated
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 125
		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
	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
		RequiresCondition: !paralyzedAlly && !chaos_bomb
	Voiced:
		RequiresCondition: !chaos_bomb

^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: 125
		RequiresCondition: critical-damage
	WithDamageOverlay:
		MinimumDamageState: Critical
	HitShape:
		Type: Circle
			Radius: 384
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 125
		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
	WithColoredOverlay@frozed:
		Color: CAB8D685
		RequiresCondition: frozed
	ExternalCondition@jammed:
		Condition: jammed
	RangeMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 50
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 50
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 0
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed
	ExternalCondition@burning:
		Condition: burning
	ChangesHealth@burning:
		Step: -70
		Delay: 5
		StartIfBelow: 100
		RequiresCondition: burning
	WithColoredOverlay@burning:
		Color: FF96066E
		RequiresCondition: burning
	WithColoredOverlay@huskslowdown:
		Color: 99999933
		RequiresCondition: huskslowdown
	ExternalCondition@huskslowdown:
		Condition: huskslowdown
	SpeedMultiplier@huskslowdown:
		Modifier: 50
		RequiresCondition: huskslowdown
	WithColoredOverlay@hugehuskslowdown:
		Color: 66666633
		RequiresCondition: hugehuskslowdown
	ExternalCondition@hugehuskslowdown:
		Condition: hugehuskslowdown
	SpeedMultiplier@hugehuskslowdown:
		Modifier: 50
		RequiresCondition: hugehuskslowdown
	RevealOnDeath:
		Duration: 25
		RequiresCondition: !paralyzedAlly && !chaos_bomb

mcv:
	Valued:
		Cost: 2000
	Buildable:
		Prerequisites: upgrade.heavy, repair_pad, ~techlevel.medium
		Queue: Armor
		BuildPaletteOrder: 150
		BuildDuration: 750
		Description: mcv.description
	Health:
		HP: 45000
	Armor:
		Type: heavy
	Mobile:
		Speed: 36
		TurnSpeed: 22
	HitShape:
		Type: Circle
			Radius: 448
	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 || frozed || paralyzedAlly
		RequiresCondition: !unitCapturated
	SpawnActorOnDeath:
		RequiresCondition: !worm_attack
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 95
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 95
	-Armament@chaos_bomb_influence:

harvester:
	Buildable:
		Queue: Armor
		Prerequisites: refinery
		BuildDuration: 700
		Description: harvester.description
	WithDockingAnimation:
	Harvester:
		HarvestFacings: 8
		Resources: Spice
		BaleUnloadDelay: 5
		SearchFromProcRadius: 30
		SearchFromHarvesterRadius: 15
		EmptyCondition: harvesterEmpty
	Health:
		HP: 45000
	Mobile:
		Speed: 48
		TurnSpeed: 22
	HitShape:
		Type: Circle
			Radius: 448
	RevealsShroud:
		Range: 3c768
	FireWarheadsOnDeath:
		Weapon: UnitExplodeLarge
		EmptyWeapon: UnitExplodeLarge
	SpawnActorOnDeath:
		Actor: harvester.Husk
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: !worm_attack && harvesterEmpty
	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
	DockClientManager:
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 95
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 95
	-MustBeDestroyed:
	-Armament@chaos_bomb_influence:

trike:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		Prerequisites: ~light.trike
		BuildDuration: 250
		Description: trike.description
	Health:
		HP: 9000
	Armor:
		Type: light
	Mobile:
		Speed: 120
		TurnSpeed: 32
		Locomotor: light_vehicle
	RevealsShroud:
		Range: 7c512
	Armament@damage:
		Weapon: HMG
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: HMG
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed
	-Armament@muzzle:
	-RevealOnFire:

hunter:
	Inherits: trike
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Prerequisites: ~light.hunter, ~!factions.standard
		BuildPaletteOrder: 10
		BuildDuration: 300
		Description: hunter.description
	Tooltip:
		Name: Hunter
	Valued:
		Cost: 350
	Selectable:
		Class: hunter
	Mobile:
		Speed: 105
		TurnSpeed: 28
		Locomotor: light_vehicle
	Turreted:
		TurnSpeed: 28
		Offset: -200,0,30
		RealignDelay: 0
		PauseOnCondition: frozed
	-AttackFrontal:
	WithMuzzleOverlay:
	AttackTurreted:
	WithSpriteTurret:
	RevealsShroud:
		Range: 5c512
	Armament@damage:
		Weapon: HMGhunter
		LocalOffset: -450,0,0
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: HMGhunter
		LocalOffset: -450,0,0
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed

raider:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		Prerequisites: ~light.raider
		BuildDuration: 300
		Description: raider.description
	Valued:
		Cost: 350
	Tooltip:
		Name: Raider
	RevealsShroud:
		Range: 5c512
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 11000
	Armor:
		Type: light
	Mobile:
		Speed: 135
		TurnSpeed: 36
		Locomotor: light_vehicle
	WithMuzzleOverlay:
	Armament@damage:
		Weapon: HMGo
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: HMGo
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed
	-Armament@muzzle:
	-RevealOnFire:

stealth_raider:
	Inherits: raider
	Buildable:
		Prerequisites: ~light.ordos, upgrade.light, high_tech_factory, ~techlevel.high
		BuildPaletteOrder: 30
		BuildDuration: 350
		Description: stealth-raider.description
	Valued:
		Cost: 450
	Tooltip:
		Name: Stealth Raider
	RevealsShroud:
		Range: 5c512
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-GrantConditionOnDamageState@UNCLOAK:
	Cloak:
		InitialDelay: 25
		CloakDelay: 25
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Dock
		IsPlayerPalette: true
		PauseOnCondition: deployed_raider
		RequiresCondition: !deployed_raider
	GrantConditionOnDeploy:
		DeployedCondition: deployed_raider
		UndeployOnMove: false
		SkipMakeAnimation: false
		PauseOnCondition: unitCapturated || frozed
		RequiresCondition: !unitCapturated
	WithIdleOverlay@DEPLOYED:
		Sequence: deployed
		RequiresCondition: deployed_raider
	DetectCloaked:
		Range: 1c768
		RequiresCondition: deployed_raider
	SpeedMultiplier@DEPLOYED:
		RequiresCondition: deployed_raider
		Modifier: 111
	AutoTarget:
		InitialStance: HoldFire
		InitialStanceAI: AttackAnything

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: quad.description
	Valued:
		Cost: 400
	Tooltip:
		Name: Quad
	Health:
		HP: 13000
	Armor:
		Type: light
	Mobile:
		Speed: 105
		TurnSpeed: 28
		Locomotor: light_vehicle
	RevealsShroud:
		Range: 5c512
	Armament:
		Weapon: Rocket
		LocalOffset: 128,64,64, 128,-64,64
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: Rocket
		LocalOffset: 128,64,64, 128,-64,64
		PauseOnCondition: frozed
	FireWarheadsOnDeath:
		Weapon: UnitExplodeSmall
		EmptyWeapon: UnitExplodeSmall
	-RevealOnFire:

quad.heavy:
	Inherits: quad
	Buildable:
		Prerequisites: ~light.heavy_quad, upgrade.light, ~!factions.standard, ~techlevel.high
		BuildDuration: 350
		BuildDurationModifier: 100
		BuildPaletteOrder: 60
		Description: striker.description
	Valued:
		Cost: 550
	Tooltip:
		Name: Striker
	Armament:
		Weapon: rocket_spike
		LocalOffset: 128,0,64
	Armament@chaos_bomb_influence:
		Weapon: rocket_spike
		LocalOffset: 128,0,64
	Selectable:
		Class: striker

jammer:
	Inherits: ^Vehicle
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Vehicle
		Prerequisites: ~light.smuggler, ~!factions.standard, upgrade.light, high_tech_factory
		BuildDuration: 350
		BuildDurationModifier: 100
		BuildPaletteOrder: 55
		Description: jammer.description
	Valued:
		Cost: 500
	Tooltip:
		Name: Jammer
	Health:
		HP: 13000
	Armor:
		Type: light
	Mobile:
		Speed: 105
		TurnSpeed: 28
		PauseOnCondition: notmobile || deployed_jammer || frozed
	RevealsShroud:
		Range: 5c512
		RequiresCondition: !deployed_jammer
	RevealsShroud@deployed:
		Range: 7c512
		RequiresCondition: deployed_jammer
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	Cloak:
		InitialDelay: 100
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Dock
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled && cooldown && !deployed_jammer
	GrantChargedConditionOnToggle:
		ActivatedCondition: deployed_jammer
		CanCancelCondition: false
		InitialCharge: 0
		ChargeDuration: 750
		ChargeThreshhold: -1
		ConditionDuration: 375
		ActivationSounds: audio/ironcur9.aud
		PauseOnCondition: unitCapturated || frozed
		RequiresCondition: !unitCapturated
		ChargedCondition: cooldown
	WithDecoration@charging:
		Image: pips
		Sequence: pip-charging
		ValidRelationships: Ally
		Palette: d2k
		Position: BottomLeft
		Margin: 6, 8
		BlinkInterval: 25
		BlinkPattern: Off, On
		RequiresCondition: !cooldown && !deployed_jammer
	WithColoredOverlay@cooldown:
		Color: 00000030
		RequiresCondition: !cooldown
	FireWarheadsOnDeath:
		Weapon: UnitExplodeSmall
		EmptyWeapon: UnitExplodeSmall
	ProximityExternalCondition@jam:
		Condition: jammed
		Range: 7c512
		ValidRelationships: Enemy, Neutral
		RequiresCondition: deployed_jammer && !jammed && !frozed && !paralyzedAlly
	ProximityExternalCondition@jammed:
		Condition: jammed
		Range: 3c756
		ValidRelationships: Enemy, Neutral
		RequiresCondition: deployed_jammer && jammed && !frozed && !paralyzedAlly
	Selectable:
		Class: support
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	WithRangeCircle:
		Range: 7c512
		Color:	00000060
		BorderColor: 00000090
		RequiresCondition: deployed_jammer && !jammed && !frozed && !paralyzedAlly
	WithRangeCircle@jammed:
		Range: 3c756
		Color:	00000060
		BorderColor: 00000090
		RequiresCondition: deployed_jammer && jammed && !frozed && !paralyzedAlly
	WithIdleOverlay@DEPLOYED:
		Sequence: deployed
		RequiresCondition: deployed_jammer && !frozed && !paralyzedAlly
	AutoTarget:
		InitialStance: HoldFire
		InitialStanceAI: AttackAnything
	Armament:
		Weapon: jammerspointer
		LocalOffset: 400,0,125
		PauseOnCondition: frozed
		RequiresCondition: !deployed_jammer
	Armament@chaos_bomb_influence:
		Weapon: jammerspointer
		LocalOffset: 400,0,125
		PauseOnCondition: frozed
		RequiresCondition: !deployed_jammer && chaos_bomb && !already
	AttackFrontal:
		FacingTolerance: 0
	-RevealOnFire:
	-MustBeDestroyed:
	AttractsWorms:
		Intensity: 470

spire:
	Inherits: quad
	Inherits@selection: ^SelectableSupportUnit
	Selectable:
		Class: recon
	Buildable:
		Prerequisites: upgrade.light, outpost, ~enhancedAirCombat
		BuildDuration: 350
		BuildDurationModifier: 100
		BuildPaletteOrder: 65
		Description: rover.description
	Valued:
		Cost: 500
	Selectable:
		Class: spire
	Health:
		HP: 11000
	Tooltip:
		Name: Rover
	Armor:
		Type: light
	Mobile:
		TurnSpeed: 40
		Speed: 150
		Locomotor: spires
	RevealsShroud:
		Range: 7c512
		RequiresCondition: !critical-damage
	RevealsShroud@CRITICAL:
		Range: 5c512
		RequiresCondition: critical-damage
	Armament:
		Weapon: lasergun
		LocalOffset: 400,50,125, 400,-50,125
	Armament@chaos_bomb_influence:
		Weapon: lasergun
		LocalOffset: 400,50,125, 400,-50,125

^combat_tank:
	GrantRandomCondition:
		Conditions: Husk01, Husk02, Husk03, Husk04
	AutoTargetPriority@bot:
		InvalidTargets: Infantry
		ValidTargets: Vehicle, Tank, Defense, Structure
		Priority: 40
		RequiresCondition: ignore-creeps
	Buildable:
		Queue: Armor
		BuildDuration: 450
	Valued:
		Cost: 700
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 25000
	Armor:
		Type: heavy
	Mobile:
		Speed: 78
		TurnSpeed: 22
	RevealsShroud:
		Range: 5c512
	Turreted:
		TurnSpeed: 22
		RealignDelay: 0
		PauseOnCondition: frozed
	Armament:
		Weapon: 80mm_A
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 256,0,0
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: 80mm_A
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 256,0,0
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	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: combat-tank-a.description
	Tooltip:
		Name: Atreides Combat Tank
	SpawnActorOnDeath:
		Actor: combat_tank_a.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_a.husk02
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_a.husk03
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_a.husk04
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.atreides
		Pieces: 1,1
		Range: 0c256, 0c512
		RequiresCondition: Husk01
	FireProjectilesOnDeath@turret01:
		Weapons: debris_turret01.atreides
		Pieces: 1,1
		Range: 0c128, 0c384
		RequiresCondition: Husk02

combat_tank_h:
	Inherits: ^combat_tank
	Buildable:
		Prerequisites: ~heavy.harkonnen_combat
		Description: combat-tank-h.description
	Armament:
		Weapon: 80mm_H
	Armament@chaos_bomb_influence:
		Weapon: 80mm_H
	Tooltip:
		Name: Harkonnen Combat Tank
	Mobile:
		Speed: 69
		TurnSpeed: 20
	Turreted:
		TurnSpeed: 20
	Health:
		HP: 30000
	SpawnActorOnDeath:
		Actor: combat_tank_h.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_h.husk02
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_h.husk03
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_h.husk04
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.harkonnen
		Pieces: 1,1
		Range: 0c256, 0c512
		RequiresCondition: Husk01
	FireProjectilesOnDeath@turret01:
		Weapons: debris_turret01.harkonnen
		Pieces: 1,1
		Range: 0c128, 0c384
		RequiresCondition: Husk02
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

combat_tank_o:
	Inherits: ^combat_tank
	Buildable:
		Prerequisites: ~heavy.ordos_combat
		Description: combat-tank-o.description
	Armament:
		Weapon: 80mm_O
	Armament@chaos_bomb_influence:
		Weapon: 80mm_O
	Tooltip:
		Name: Ordos Combat Tank
	Mobile:
		Speed: 87
		TurnSpeed: 24
	Turreted:
		TurnSpeed: 24
	Health:
		HP: 20000
	SpawnActorOnDeath:
		Actor: combat_tank_o.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_o.husk02
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_o.husk03
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_o.husk04
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.ordos
		Pieces: 1,1
		Range: 0c128, 0c384
		RequiresCondition: Husk01 || Husk02

combat_tank_fremen:
	Inherits: ^combat_tank
	-GrantRandomCondition:
	Buildable:
		BuildPaletteOrder: 41
		BuildDuration: 450
		Prerequisites: ~heavy.fremen_combat, ~!factions.standard
		Description: combat-tank-f.description
	Tooltip:
		Name: Fremen Combat Tank
	Armament:
		Weapon: 80mm_fremen
	Armament@chaos_bomb_influence:
		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: 100
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Dock
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled && HiddeninSand
	Selectable:
		Class: tank_fremen
	-MustBeDestroyed:

combat_tank_corrino:
	Inherits: combat_tank_h
	Buildable:
		BuildPaletteOrder: 43
		Prerequisites: ~heavy.corrino_combat, ~!factions.standard
		Description: combat-tank-c.description
	Tooltip:
		Name: Corrino Combat Tank
	Health:
		HP: 30000
	Mobile:
		Speed: 69
		TurnSpeed: 20
		Locomotor: tank_corrino
	Turreted:
		TurnSpeed: 20
	Armament:
		Weapon: 80mm_corrino
	Armament@chaos_bomb_influence:
		Weapon: 80mm_corrino
	-ChangesHealth:
	SpeedMultiplier@huskslowdown:
		Modifier: 75
		RequiresCondition: huskslowdown
	SpeedMultiplier@hugehuskslowdown:
		Modifier: 75
		RequiresCondition: hugehuskslowdown
	SpawnActorOnDeath:
		Actor: combat_tank_corrino.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_corrino.husk02
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_corrino.husk03
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_corrino.husk04
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk04 && !worm_attack
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 95
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 95
	ReloadDelayMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 95
	WithColoredOverlay:
		Color: DC6C1512

combat_tank_cheap:
	Inherits: ^combat_tank
	Buildable:
		BuildPaletteOrder: 45
		BuildDuration: 400
		Prerequisites: ~!factions.standard, ~heavy.cheap_combat
		Description: combat-tank-s.description
	Valued:
		Cost: 600
	Tooltip:
		Name: Smuggler Combat Tank
	Mobile:
		Locomotor: tank
	Health:
		HP: 15000
	Mobile:
		Speed: 96
		TurnSpeed: 26
	Turreted:
		TurnSpeed: 26
	Armament:
		Weapon: 80mm_cheap
	Armament@chaos_bomb_influence:
		Weapon: 80mm_cheap
	SpawnActorOnDeath:
		Actor: combat_tank_cheap.husk
		RequiresCondition: Husk01 && !worm_attack
	SpawnActorOnDeath@husk02:
		Actor: combat_tank_cheap.husk02
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk02 && !worm_attack
	SpawnActorOnDeath@husk03:
		Actor: combat_tank_cheap.husk03
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk03 && !worm_attack
	SpawnActorOnDeath@husk04:
		Actor: combat_tank_cheap.husk04
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: Husk04 && !worm_attack
	FireProjectilesOnDeath@turret:
		Weapons: debris_turret.harkonnen
		Pieces: 1,1
		Range: 0c256, 0c512
		RequiresCondition: Husk01
	WithColoredOverlay:
		Color: DC6C1512

combat_tank_mercenary:
	Inherits: ^combat_tank
	-GrantRandomCondition:
	Buildable:
		BuildPaletteOrder: 47
		BuildDuration: 500
		Prerequisites: ~heavy.mercenary_combat, ~!factions.standard
		Description: combat-tank-m.description
	Tooltip:
		Name: Mercenary Combat Tank
	Valued:
		Cost: 800
	Health:
		HP: 35000
	Mobile:
		Speed: 60
		TurnSpeed: 18
		Locomotor: tank
	Turreted:
		TurnSpeed: 18
	Armament:
		Weapon: 80mm_double
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 320,64,0
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	Armament@2:
		Weapon: 80mm_double
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 320,-64,0
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: 80mm_double
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 320,64,0
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	Armament@2chaos_bomb_influence:
		Weapon: 80mm_double
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 320,-64,0
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
		RequiresCondition: chaos_bomb
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	SpawnActorOnDeath:
		Actor: combat_tank_mercenary.husk
		RequiresCondition: !worm_attack
	RenderSprites:
		PlayerPalette: player_r16

siege_tank:
	Buildable:
		Queue: Armor
		Prerequisites: upgrade.heavy, ~techlevel.medium
		BuildDuration: 500
		BuildDurationModifier: 100
		Description: siege-tank.description
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Defense
		InvalidTargets: Tanks
		Priority: 50
		RequiresCondition: ignore-creeps
	AutoTargetPriority@bot2:
		ValidTargets: Vehicle
		InvalidTargets: Tanks
		Priority: 10
		RequiresCondition: bot-owned
	Valued:
		Cost: 800
	Health:
		HP: 15000
	Armor:
		Type: heavy
	Mobile:
		Speed: 48
		TurnSpeed: 16
	Turreted:
		TurnSpeed: 16
		Offset: 0,0,-32
		PauseOnCondition: frozed
	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
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: 155mm
		Recoil: 150
		RecoilRecovery: 19
		LocalOffset: 512,0,320
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	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: 1c0, 3c0
	FireProjectilesOnDeath@turret:
		Weapons: derbisSiegetank.turret
		Pieces: 1, 1
		Range: 0c128, 0c384
	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
	GrantRandomCondition:
		Conditions: shrapnel_01, shrapnel_02, shrapnel_03
	Buildable:
		BuildDuration: 550
		Prerequisites: ~heavy.missile_tank, upgrade.heavy, research_centre, ~techlevel.high
		Description: missile-tank.description
	Valued:
		Cost: 900
	Mobile:
		Speed: 60
		TurnSpeed: 18
	Health:
		HP: 15000
	Armor:
		Type: heavy
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: mtank_pri
		LocalOffset: -128,128,171, -128,-128,171
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: mtank_pri
		LocalOffset: -128,128,171, -128,-128,171
		PauseOnCondition: frozed
	-RevealOnFire:
	FireProjectilesOnDeath@01:
		Weapons: Debris, Debris4, Debris3
		Pieces: 0,1
		Range: 1c0, 2c0
		RequiresCondition: shrapnel_01  && !worm_attack
	FireProjectilesOnDeath@02:
		Weapons: Debris3, Debris
		Pieces: 1,2
		Range: 0c5, 1c5
		RequiresCondition: shrapnel_02  && !worm_attack
	FireProjectilesOnDeath@02_02:
		Weapons: DerbisMissile
		Pieces: 0,2
		Range: 1c0, 3c0
		RequiresCondition: shrapnel_02 && !worm_attack
	FireProjectilesOnDeath@03:
		Weapons: DerbisMissile, Debris, Debris4, Debris3
		Pieces: 1,3
		Range: 0c5, 2c5
		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
	Buildable:
		Queue: Armor
		BuildPaletteOrder: 80
		Prerequisites: ~heavy.atreides, upgrade.heavy, research_centre, ~techlevel.high
		BuildDuration: 600
		Description: sonic-tank.description
	Valued:
		Cost: 1000
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 30000
	Armor:
		Type: invulnerable
	Mobile:
		TurnSpeed: 14
		Speed: 36
		Locomotor: tank
	HitShape:
		Type: Circle
			Radius: 384
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: Sound
		LocalOffset: 600,0,400
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: Sound
		LocalOffset: 600,0,400
		PauseOnCondition: frozed
	WithColoredOverlay@huskslowdown:
		Color: 99999933
		RequiresCondition: huskslowdown
	ExternalCondition@huskslowdown:
		Condition: huskslowdown
	SpeedMultiplier@huskslowdown:
		Modifier: 50
		RequiresCondition: huskslowdown
	WithColoredOverlay@hugehuskslowdown:
		Color: 66666633
		RequiresCondition: hugehuskslowdown
	ExternalCondition@hugehuskslowdown:
		Condition: hugehuskslowdown
	SpeedMultiplier@hugehuskslowdown:
		Modifier: 50
		RequiresCondition: hugehuskslowdown
	-RevealOnFire:
	SpawnActorOnDeath:
		RequiresCondition: !worm_attack

devastator:
	Buildable:
		BuildPaletteOrder: 130
		Prerequisites: ~heavy.harkonnen, upgrade.heavy, research_centre, ~techlevel.high
		BuildDuration: 650
		Description: devastator.description
	ExternalCondition:
		Condition: unitCapturated
	Valued:
		Cost: 1100
	Health:
		HP: 50000
	Armor:
		Type: heavy
	Mobile:
		TurnSpeed: 14
		Speed: 36
		Locomotor: devastator
		RequiresCondition: !overload
	RevealsShroud:
		Range: 5c512
	SpeedMultiplier@huskslowdown:
		Modifier: 75
		RequiresCondition: huskslowdown
	SpeedMultiplier@hugehuskslowdown:
		Modifier: 75
		RequiresCondition: hugehuskslowdown
	Armament:
		Weapon: DevBullet
		LocalOffset: 640,0,32
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
		RequiresCondition: !overload
	Armament@chaos_bomb_influence:
		Weapon: DevBullet
		LocalOffset: 640,0,32
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
		RequiresCondition: !overload && chaos_bomb && !already
	FireWarheadsOnDeath@OVERLOAD:
		Weapon: PlasmaExplosion
		EmptyWeapon: PlasmaExplosion
		RequiresCondition: meltdown
	GrantConditionOnDeploy@REACTOR:
		DeployedCondition: overload
		PauseOnCondition: overload || unitCapturated || frozed || paralyzedAlly
		RequiresCondition: !unitCapturated
	WithIdleOverlay@OVERLOAD:
		Sequence: active
		RequiresCondition: overload
	WithIdleOverlay@OVERLOAD2:
		Sequence: active-2
		RequiresCondition: overload
	KillsSelf@MELTDOWN:
		Delay: 125
		RequiresCondition: overload
		GrantsCondition: meltdown
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250
	-RevealOnFire:
	Selectable:
		DecorationBounds: 1408, 1216, 0, 0
	AmbientSound@onMeltDown:
		SoundFiles: audio/DevastatorMeltdown01.wav
		RequiresCondition: overload
		Interval: 1500
	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: 448
	AttractsWorms:
		Intensity: 700

deviator:
	AutoTargetPriority@bot:
		ValidTargets: Tank, Vehicle
		InvalidTargets: Infantry, Structure, Defense
		Priority: 50
		RequiresCondition: ignore-creeps
	-TemporaryOwnerManager:
	-ExternalCondition:
	-ExternalCondition@paralysisALLY:
	-GrantCondition@ALREADY:
	-RangeMultiplier@paralysisALLY:
	-InaccuracyMultiplier@paralysisALLY:
	-SpeedMultiplier@paralysisALLY:
	-RevealsShroudMultiplier@paralysisALLY:
	-DetectCloakedMultiplier@paralysisALLY:
	-WithDecoration@paralysisALLY:
	-Targetable:
	-Targetable@CAPTURED:
	Targetable@DEVIATOR:
		TargetTypes: Ground, Vehicle, C4
	Valued:
		Cost: 1000
	Buildable:
		BuildPaletteOrder: 90
		Prerequisites: ~heavy.ordos, upgrade.heavy, research_centre, ~techlevel.high
		BuildDuration: 600
		Description: deviator.description
	Mobile:
		Speed: 60
		TurnSpeed: 18
		PauseOnCondition: notmobile || frozed
	Health:
		HP: 15000
	Armor:
		Type: heavy
	RevealsShroud:
		Range: 5c512
	-RevealOnFire:
	Armament:
		Weapon: DeviatorMissile
		LocalOffset: -300,0,85
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: DeviatorMissile
		LocalOffset: -300,0,85
		PauseOnCondition: frozed
		RequiresCondition: chaos_bomb
	FireProjectilesOnDeath:
		Weapons: Debris4, Debris
		Pieces: 0,2
		Range: 0c512, 4c512
	SpawnActorOnDeath:
		RequiresCondition: !worm_attack
	FireWarheadsOnDeath:
		Weapon: DeviatorGas
		EmptyWeapon: DeviatorGas
	ExternalCondition@paralysisDEVIATOR:
		Condition: paralyzedDeviator
	RangeMultiplier@paralysisDEVIATOR:
		Modifier: 10
		RequiresCondition: paralyzedDeviator
	InaccuracyMultiplier@paralysisDEVIATOR:
		Modifier: 1
		RequiresCondition: paralyzedDeviator
	SpeedMultiplier@paralysisDEVIATOR:
		Modifier: 0
		RequiresCondition: paralyzedDeviator
	RevealsShroudMultiplier@paralysisDEVIATOR:
		Modifier: 0
		RequiresCondition: paralyzedDeviator
	WithDecoration@paralysisDEVIATOR:
		Image: pips
		Sequence: pip-skull
		ValidRelationships: Ally, Enemy, Neutral
		Palette: temperat
		Position: TopLeft
		Margin: 6, 7
		RequiresCondition: paralyzedDeviator
	AttackWander:
		WanderMoveRadius: 3
		AvoidTerrainTypes: Cliff, Rough
		RequiresCondition: chaos_bomb
	RejectsOrders@chaos_bomb_influence:
		RemoveOrders: true
		RequiresCondition: chaos_bomb
	RevealsShroudMultiplier@chaos_bomb_influence:
		Modifier: 0
		RequiresCondition: chaos_bomb
	WithDecoration@chaos_bomb_influence:
		Image: pips
		Sequence: pip-skullicon
		ValidRelationships: Ally, Enemy, Neutral
		Palette: effect
		Position: TopRight
		Margin: 6, 7
		RequiresCondition: chaos_bomb
	RevealOnDeath:
		Duration: 25
		RequiresCondition: !paralyzedDeviator && !chaos_bomb
	AttractsWorms:
		Intensity: 520

sand_tank:
	Inherits: combat_tank_fremen
	Buildable:
		BuildDuration: 600
		BuildPaletteOrder: 110
		Prerequisites: ~heavy.fremen, upgrade.heavy, research_centre, ~techlevel.high
		Description: sand-tank.description
	Health:
		HP: 30000
	Valued:
		Cost: 1000
	Tooltip:
		Name: Sand Tank
	Mobile:
		Speed: 78
		TurnSpeed: 22
		Locomotor: tank
	Turreted:
		TurnSpeed: 22
	Armament:
		Weapon: Fremen_Turret
		Recoil: 32
		RecoilRecovery: 8
		FireDelay: 1
	Armament@chaos_bomb_influence:
		Weapon: Fremen_Turret
		Recoil: 32
		RecoilRecovery: 8
		FireDelay: 1
	SpawnActorOnDeath:
		Actor: sand_tank.husk
		RequiresCondition: !worm_attack
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Selectable:
		Class: tank_fremen
	WithColoredOverlay:
		Color: 8172002E

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: bombardment-tank.description
	Health:
		HP: 15000
	Valued:
		Cost: 1000
	Tooltip:
		Name: Bombardment Tank
	Armor:
		Type: heavy
	HitShape:
		Type: Circle
			Radius: 384
	RevealsShroud:
		Range: 6c512
	Mobile:
		Speed: 69
		TurnSpeed: 20
		Locomotor: tank_corrino
	Turreted:
		TurnSpeed: 20
		Offset: -200,0,168
		PauseOnCondition: frozed
	AttackTurreted:
	WithMuzzleOverlay:
	WithSpriteTurret:
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	GrantConditionOnMovement:
		Condition: moved
		ValidMovementTypes: Horizontal, Turn
	Armament:
		Weapon: ClusterBombard
		LocalOffset: -248,128,168, -248,-128,168
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: ClusterBombard
		LocalOffset: -248,128,168, -248,-128,168
		PauseOnCondition: frozed
	SpawnActorOnDeath:
		Actor: bombardment_tank.husk
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: !worm_attack
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	WithColoredOverlay@huskslowdown:
		Color: 99999933
		RequiresCondition: huskslowdown
	ExternalCondition@huskslowdown:
		Condition: huskslowdown
	SpeedMultiplier@huskslowdown:
		Modifier: 75
		RequiresCondition: huskslowdown
	WithColoredOverlay@hugehuskslowdown:
		Color: 66666633
		RequiresCondition: hugehuskslowdown
	ExternalCondition@hugehuskslowdown:
		Condition: hugehuskslowdown
	SpeedMultiplier@hugehuskslowdown:
		Modifier: 75
		RequiresCondition: hugehuskslowdown
	SpeedMultiplier@HEAVYDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 95
	SpeedMultiplier@CRITDAMAGE:
		RequiresCondition: critical-damage
		Modifier: 95
	ReloadDelayMultiplier@CRITDAMAGE:
		RequiresCondition: heavy-damage
		Modifier: 95
	ReloadDelayMultiplier@moved:
		Modifier: 50
		RequiresCondition: !moved
	-RevealOnFire:
	WithColoredOverlay:
		Color: DC6C1512
	AttractsWorms:
		Intensity: 520

flamer:
	Inherits: ^Tank
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Vehicle
		InvalidTargets: Tanks
		Priority: 25
		RequiresCondition: ignore-creeps
	AutoTargetPriority@bot2:
		ValidTargets: Structure
		InvalidTargets: Defense
		Priority: 50
		RequiresCondition: bot-owned
	Buildable:
		Queue: Armor
		BuildDuration: 550
		BuildDurationModifier: 100
		BuildPaletteOrder: 70
		Prerequisites: ~heavy.smuggler, upgrade.heavy, research_centre
		Description: flamer.description
	Health:
		HP: 20000
	Valued:
		Cost: 900
	Tooltip:
		Name: Flamer
	Armor:
		Type: heavy
	Mobile:
		Speed: 87
		TurnSpeed: 24
	RevealsShroud:
		Range: 5c512
	Armament:
		Weapon: flamethrower
		LocalOffset: 100,0, 200
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: flamethrower
		LocalOffset: 100,0, 200
		PauseOnCondition: frozed
	AttackFrontal:
		FacingTolerance: 0
	SpawnActorOnDeath:
		Actor: flamer.husk
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-RevealOnFire:
	AttractsWorms:
		Intensity: 600

bison_tank:
	Inherits@GAINSEXPERIENCE: ^GainsExperience
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Inherits: ^Vehicle
	AutoTargetPriority@bot:
		InvalidTargets: Infantry
		ValidTargets: Vehicle, Tank, Defense, Structure
		Priority: 40
		RequiresCondition: ignore-creeps
	Buildable:
		Queue: Armor
		Prerequisites: ~heavy.mercenary, upgrade.heavy, research_centre, ~techlevel.high, ~!factions.standard
		BuildDuration: 600
		BuildDurationModifier: 100
		BuildPaletteOrder: 120
		Description: bison-tank.description
	Health:
		HP: 45000
	Valued:
		Cost: 1000
	Tooltip:
		Name: Bison Tank
	Armor:
		Type: heavy
	Mobile:
		Speed: 48
		TurnSpeed: 16
		Locomotor: tank
	RevealsShroud:
		Range: 5c512
	WithColoredOverlay@huskslowdown:
		Color: 99999933
		RequiresCondition: huskslowdown
	ExternalCondition@huskslowdown:
		Condition: huskslowdown
	SpeedMultiplier@huskslowdown:
		Modifier: 50
		RequiresCondition: huskslowdown
	WithColoredOverlay@hugehuskslowdown:
		Color: 66666633
		RequiresCondition: hugehuskslowdown
	ExternalCondition@hugehuskslowdown:
		Condition: hugehuskslowdown
	SpeedMultiplier@hugehuskslowdown:
		Modifier: 50
		RequiresCondition: hugehuskslowdown
	ReloadDelayMultiplier@HEAVYDAMAGE:
		Modifier: 134
		RequiresCondition: heavy-damage
	ReloadDelayMultiplier@CRITDAMAGE:
		Modifier: 147
		RequiresCondition: critical-damage
	HitShape:
		Type: Circle
			Radius: 448
	Armament:
		Weapon: 80mm_bison
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 475,100,75
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	Armament@2:
		Weapon: 80mm_bison
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 475,-100,75
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: 80mm_bison
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 475,100,75
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
	Armament@2chaos_bomb_influence:
		Weapon: 80mm_bison
		Recoil: 128
		RecoilRecovery: 32
		LocalOffset: 475,-100,75
		MuzzleSequence: muzzle
		PauseOnCondition: frozed
		RequiresCondition: chaos_bomb
	AttackFrontal:
		FacingTolerance: 0
	WithMuzzleOverlay:
		IgnoreOffset: true
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	SpawnActorOnDeath:
		Actor: bison_tank.Husk
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: !worm_attack
	-RevealOnFire:
	GrantConditionOnDamageState@badradius:
		Condition: badradius
		ValidDamageStates: Heavy, Critical
	RangeMultiplier@badradius:
		RequiresCondition: badradius
		Modifier: 82
	AttractsWorms:
		Intensity: 700

crawler:
	Inherits: quad
	-ActorLostNotification:
	-FireWarheadsOnDeath:
	Buildable:
		Queue: Vehicle
		Prerequisites: ~disabled, starport, ~light.harkonnen, ~techlevel.medium
		BuildPaletteOrder: 70
		Description: crawler.description
		BuildDuration: 650
	KillsSelf:
		Delay: 1
		GrantsCondition: delivered
	AutoTargetPriority@bot:
		ValidTargets: Tank, Vehicle, Infantry
		InvalidTargets: Structure, Defense
		Priority: 100
		RequiresCondition: ignore-creeps
	Valued:
		Cost: 1100
	Selectable:
		Class: crawler
	Health:
		HP: 20000
	Armor:
		Type: heavy
	Mobile:
		Speed: 60
		TurnSpeed: 18
		Locomotor: tank
	HitShape:
		Type: Circle
			Radius: 448
	RevealsShroud:
		Range: 6c512
	Tooltip:
		Name: Crawler
	Cargo:
		Types: Infantry
		MaxWeight: 5
		LoadingCondition: notmobile
		RequiresCondition: !frozed && !paralyzedAlly
	Armament:
		Weapon: slowlaserpointer
		LocalOffset: 0,75,150, 0,-75,150
		PauseOnCondition: frozed
	Armament@chaos_bomb_influence:
		Weapon: slowlaserpointer
		LocalOffset: 0,75,150, 0,-75,150
		PauseOnCondition: frozed
	AttackFrontal:
		FacingTolerance: 0
	RenderSprites:
		Image: crawler
	WithCargoPipsDecoration:
		Position: BottomLeft
		Margin: 1, 4
		RequiresSelection: true
	Armor:
		Type: heavy
	ProximityExternalCondition@dhealign:
		Condition: carrierhealing
		Range: 0c276
		ValidRelationships: Ally
	SpawnActorOnDeath:
		Actor: crawler_revived
		RequiresCondition: !worm_attack && delivered
	SpawnActorOnDeath@1:
		Actor: mercenary
		RequiresCondition: !worm_attack && delivered
	SpawnActorOnDeath@2:
		Actor: mercenary
		RequiresCondition: !worm_attack && delivered
	SpawnActorOnDeath@3:
		Actor: mercenary
		RequiresCondition: !worm_attack && delivered
	SpawnActorOnDeath@4:
		Actor: mercenary
		RequiresCondition: !worm_attack && delivered
	SpawnActorOnDeath@5:
		Actor: mercenary
		RequiresCondition: !worm_attack && delivered
	AttractsWorms:
		Intensity: 700

crawler_revived:
	Inherits: crawler
	ActorLostNotification:
	FireWarheadsOnDeath:
		Weapon: UnitExplodeLarge
		EmptyWeapon: UnitExplodeLarge
	-Buildable:
	-KillsSelf:
	-SpawnActorOnDeath:
	-SpawnActorOnDeath@1:
	-SpawnActorOnDeath@2:
	-SpawnActorOnDeath@3:
	-SpawnActorOnDeath@4:
	-SpawnActorOnDeath@5:
	SpawnActorOnDeath@0:
		Actor: crawler.husk
		OwnerType: InternalName
		EffectiveOwnerFromOwner: true
		RequiresCondition: !worm_attack

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: 100
		Description: light-inf.description
	Valued:
		Cost: 50
	Health:
		HP: 6000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 48
	Armament:
		Weapon: LMG
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: LMG
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	WithInfantryBody:
		-DefaultAttackSequence:
		AttackSequences:
			primary: shoot
	-RevealOnFire:

trooper:
	AutoTargetPriority@bot:
		InvalidTargets: Infantry
		ValidTargets: Vehicle, Tank, Defense, Structure
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		BuildPaletteOrder: 2
		Prerequisites: upgrade.barracks, ~techlevel.medium
		BuildDuration: 150
		Description: trooper.description
	Valued:
		Cost: 100
	Health:
		HP: 7000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 36
	Armament:
		Weapon: Bazooka
		LocalOffset: 128,0,256
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: Bazooka
		LocalOffset: 128,0,256
		PauseOnCondition: frozed || paralyzed
	TakeCover:
		ProneOffset: 324,0,-204
	WithInfantryBody:
		-DefaultAttackSequence:
		AttackSequences:
			primary: shoot
	-RevealOnFire:

engineer:
	Inherits@botLogic: ^BotLogicEngineer
	Buildable:
		Prerequisites: upgrade.barracks, ~techlevel.medium
		BuildDuration: 200
		BuildPaletteOrder: 3
		Description: engineer.description
	Valued:
		Cost: 250
	Health:
		HP: 7000
	RevealsShroud:
		Range: 3c520
	Mobile:
		Speed: 36
		PauseOnCondition: deployed || frozed
	InstantlyRepairs:
		Types: Building
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 512
		SkipMakeAnimation: true
		AllowedTerrainTypes: Sand, Spice, Dune, SpiceSand
		PauseOnCondition: frozed || paralyzed
	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
	-Armament@chaos_bomb_influence:

scout_infantry:
	Inherits: engineer
	Selectable:
		Class: scout
	Buildable:
		Prerequisites: upgrade.barracks, outpost, ~enhancedAirCombat, ~techlevel.medium
		BuildDuration: 150
		BuildPaletteOrder: 9
		Description: scout.description
	Tooltip:
		Name: Scout Infantry
	Valued:
		Cost: 125
	Health:
		HP: 6000
	RevealsShroud:
		Range: 3c768
	DetectCloaked:
		Range: 1c765
	DetectCloakedMultiplier@GrantConditionOnDeploy:
		RequiresCondition: deployed
		Modifier: 199
	Mobile:
		Speed: 48
		Locomotor: resistinf
		PauseOnCondition: deployed || frozed
	-InstantlyRepairs:
	-CaptureManager:
	-Captures:
	-Captures@Husk:
	-Captures@Cliff:
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 512
		UndeployOnMove: true
		SkipMakeAnimation: true
		AllowedTerrainTypes: Sand, Rock, Transition, Concrete, SpiceSand, Spice, SpiceBlobs, Dune, Rough
		PauseOnCondition: frozed || paralyzed
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	TakeCover:
		RequiresCondition: undeployed
	WithRangeCircle:
		RequiresCondition: deployed && !jammed && !paralyzed
		Range: 3c512
	-AmbientSound:
	-AttractsWorms:
	Cloak:
		InitialDelay: 100
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Dock
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled && !deployed
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	WithInfantryBody:
		RequiresCondition: undeployed
	-WithSpriteBody@DEPLOYED:
	-WithIdleOverlay@DEPLOYED:
	WithIdleOverlay@DETECTION:
		Sequence: detection
		RequiresCondition: deployed
	WithIdleOverlay@CIRCLE:
		Sequence: circle
		RequiresCondition: deployed
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	WithColoredOverlay:
		Color: 0F001F38
		RequiresCondition: undeployed
	-MustBeDestroyed:

grenadier:
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Defense, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		BuildPaletteOrder: 4
		Prerequisites: ~barracks.atreides, upgrade.barracks, high_tech_factory, ~techlevel.medium
		BuildDuration: 150
		Description: grenadier.description
	Valued:
		Cost: 75
	Health:
		HP: 6000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 48
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Armament:
		Weapon: grenade
		LocalOffset: 192,0,224
		FireDelay: 3
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: grenade
		LocalOffset: 192,0,224
		FireDelay: 3
		PauseOnCondition: frozed || paralyzed
	TakeCover:
		ProneOffset: 96,100,-64
	WithInfantryBody:
		DefaultAttackSequence: throw
	FireWarheadsOnDeath:
		Weapon: GrenDeath
		EmptyWeapon: GrenDeath
	-RevealOnFire:

sardaukar:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	Buildable:
		BuildDuration: 200
		BuildPaletteOrder: 7
		Prerequisites: ~barracks.corrino, upgrade.barracks, high_tech_factory, ~techlevel.medium
		Description: sardaukar.description
	Valued:
		Cost: 200
	Mobile:
		Speed: 36
		Locomotor: resistinf
	Health:
		HP: 8000
	RevealsShroud:
		Range: 4c768
	Armament@PRIMARY:
		Weapon: MP_Sardaukar_Weapon
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: MP_Sardaukar_Weapon
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	-Armament@SECONDARY:
	-RevealOnFire:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	TakeCover:
		SpeedModifier: 75
		RequiresCondition: !airdropped
	RenderSprites:
		Image: sardaukar
	UpdatesPlayerStatistics:
		OverrideActor: sardaukar
	GrantConditionOnMovement:
		Condition: airdropped
		ValidMovementTypes: Vertical
	QuantizeFacingsFromSequence:
		Sequence: stand
		RequiresCondition: !airdropped
	WithInfantryBody:
		RequiresCondition: !airdropped
	WithIdleOverlay@airdropped:
		Sequence: airdrop
		RequiresCondition: airdropped

-mpsardaukar:

saboteur:
	Inherits@selection: ^SelectableSupportUnit
	ScriptTags:
	Buildable:
		BuildPaletteOrder: 12
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: saboteur.description
	Valued:
		Cost: 250
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 5000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 48
		PauseOnCondition: SuicideAtt || frozed
	Demolition:
		DetonationDelay: 25
		Flashes: 2
		EnterBehaviour: Suicide
	-GrantConditionOnDamageState@UNCLOAK:
	-Cloak:
	-GrantChargedConditionOnToggle:
	Cloak@mute:
		InitialDelay: 25
		CloakDelay: 25
		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 || frozed || paralyzed
	KillsSelf@SuicideKillCount:
		Delay: 25
		RequiresCondition: SuicideAtt
		GrantsCondition: kamikadze
	TakeCover:
		RequiresCondition: !SuicideAtt
	GrantConditionOnDamageState@UNCLOAK:
		Condition: kamikadze
		ValidDamageStates: Critical
	AmbientSound@onSuicide:
		SoundFiles: audio/explodeSaboteurEmperor02.wav
		RequiresCondition: SuicideAtt
		Interval: 1500
	SpawnActorOnDeath@crater:
		Actor: crater_big
		RequiresCondition: kamikadze
		Offset: -1,0
	-MustBeDestroyed:
	RevealOnDeath:
		Duration: 50
	-Armament@chaos_bomb_influence:

ranger:
	Inherits: light_inf
	Buildable:
		BuildPaletteOrder: 14
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: ranger.description
	Valued:
		Cost: 250
	Tooltip:
		Name: Ranger
	AutoTarget:
		ScanRadius: 3
		InitialStance: HoldFire
		InitialStanceAI: AttackAnything
	Armament:
		Weapon: MP_Ranger_Weapon
		FireDelay: 3
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: MP_Ranger_Weapon
		FireDelay: 3
		PauseOnCondition: frozed || paralyzed
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Cloak:
		InitialDelay: 100
		CloakDelay: 100
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	-MustBeDestroyed:
	TakeCover:
		SpeedModifier: 75
	WithColoredOverlay:
		Color: ACDAFF30

assassin:
	AutoTargetPriority@bot:
		ValidTargets: Infantry
		InvalidTargets: Vehicle, Tank, Structure, Defense
		Priority: 50
		RequiresCondition: ignore-creeps
	Inherits: ^Infantry
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Valued:
		Cost: 225
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 8
		Prerequisites: ~barracks.harkonnen, upgrade.barracks, high_tech_factory, ~techlevel.medium
		BuildDuration: 200
		BuildDurationModifier: 100
		Description: assassin.description
	Tooltip:
		Name: Assassin
	Health:
		HP: 5000
	Mobile:
		Speed: 48
		Locomotor: resistinf
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: SniperRifle
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: SniperRifle
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	WithInfantryBody:
		DefaultAttackSequence: shoot
		MinIdleDelay: 100
		MaxIdleDelay: 200
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	Cloak:
		InitialDelay: 100
		CloakDelay: 100
		UncloakOn: Move, Attack, Unload, Infiltrate, Demolish, Damage
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-RevealOnFire:
	TakeCover:
		SpeedModifier: 75
	-MustBeDestroyed:

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
	WithRangeCircle:
		RequiresCondition: deployed && !jammed && !frozed && !paralyzed
		Range: 6c512
		Color:	FFFF0080
		BorderColor: 00000060
	WithRangeCircle@jammed:
		RequiresCondition: deployed && jammed && !frozed && !paralyzed
		Range: 3c256
		Color:	FFFF0080
		BorderColor: 00000060
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 5
		Prerequisites: ~barracks.mercenary, upgrade.barracks, ~techlevel.medium, high_tech_factory, ~!factions.standard
		BuildDuration: 150
		BuildDurationModifier: 100
		Description: mortar.description
	Valued:
		Cost: 150
	Tooltip:
		Name: Mortar Infantry
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 7000
	Mobile:
		Speed: 36
		PauseOnCondition: deployed || frozed
		RequireForceMoveCondition: !undeployed
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 768
		UndeployOnMove: true
		SkipMakeAnimation: false
		PauseOnCondition: frozed || paralyzed
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	TakeCover:
		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
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: 40mm_mortar
		LocalOffset: 0,100,200
		MuzzleSequence: muzzle
		PauseOnCondition: frozed || paralyzed
	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, Tank, Defense, Structure
		Priority: 40
		RequiresCondition: ignore-creeps
	Selectable:
		Priority: 10
		PriorityModifiers: Alt
	Buildable:
		BuildPaletteOrder: 15
		Prerequisites: ~disabled, barracks
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: hireling.description
		Queue: Infantry
	Valued:
		Cost: 250
	Tooltip:
		Name: Hireling
	Mobile:
		Speed: 36
		PauseOnCondition: deployed || frozed
		RequireForceMoveCondition: !undeployed
	TakeCover:
		SpeedModifier: 75
		RequiresCondition: undeployed
	RevealsShroud:
		Range: 3c520
		RequiresCondition: !deployed
	RevealsShroud@DEPLOYED:
		Range: 6c512
		RequiresCondition: deployed
	WithRangeCircle:
		RequiresCondition: deployed && !jammed && !frozed && !paralyzed
		Range: 6c512
		Color:	FFFF0080
		BorderColor: 00000060
	WithRangeCircle@jammed:
		RequiresCondition: deployed && jammed && !frozed && !paralyzed
		Range: 3c256
		Color:	FFFF0080
		BorderColor: 00000060
	Health:
		HP: 8000
	Armor:
		Type: none
	RangeMultiplier@DEPLOYED:
		RequiresCondition: deployed
		Modifier: 185
	Armament:
		Weapon: portable_cannon
		LocalOffset: 0,100,0
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: portable_cannon
		LocalOffset: 0,100,0
		MuzzleSequence: muzzle
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	WithMuzzleOverlay:
	GrantConditionOnDeploy:
		UndeployOnPickup: true
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		UndeployOnMove: true
		SkipMakeAnimation: false
		Facing: 768
		PauseOnCondition: frozed || paralyzed
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	WithInfantryBody:
		RequiresCondition: undeployed && !beforedeploy && !dummyfire
		DefaultAttackSequence: turret-shoot
	WithFacingSpriteBody:
		Sequence: invisible
		RequiresCondition: !undeployed
	Turreted:
		RealignDelay: 0
		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
	WithInfantryBody@Editor:
		RequiresCondition: !editorhack
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	AttackFrontal:
		OutsideRangeRequiresForceFire: False
		RequiresCondition: undeployed
	AttackTurreted:
		OutsideRangeRequiresForceFire: False
		RequiresCondition: deployed
	-RevealOnFire:

designator:
	Inherits: ^Infantry
	Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 11
		BuildDuration: 50
		BuildDurationModifier: 100
		Prerequisites: ~disabled, ~!factions.standard
		Description: designator.description
	Tooltip:
		Name: Target Designator
	RevealsShroud:
		Range: 4c768
	Valued:
		Cost: 250
	Health:
		HP: 7000
	Armament:
		Weapon: laserpointer
		LocalOffset: 360,0,240
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: laserpointer
		LocalOffset: 360,0,240
		PauseOnCondition: frozed || paralyzed
	Voiced:
		VoiceSet: GenericVoice
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	WithInfantryBody:
		DefaultAttackSequence: shoot
	-RevealOnFire:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	Mobile:
		Speed: 36
		Locomotor: resistinf
	TakeCover:
		SpeedModifier: 75

fremen:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	Buildable:
		BuildPaletteOrder: 13
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: fremen.description
	Valued:
		Cost: 250
	Tooltip:
		Name: Sietch Guardian
	Mobile:
		Speed: 48
	Health:
		HP: 6000
	TerrainModifiesDamage:
		TerrainModifier:
			Sand: 75
			SpiceSand: 75
			Spice: 75
			SpiceBlobs: 75
			Dune: 75
			Rough: 75
	RevealsShroud:
		Range: 6c768
	AutoTarget:
		ScanRadius: 5
		InitialStance: HoldFire
		InitialStanceAI: AttackAnything
	Armament@PRIMARY:
		Weapon: MP_Fremen_Weapon
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	Armament@chaos_bomb_influence:
		Weapon: MP_Fremen_Weapon
		FireDelay: 1
		PauseOnCondition: frozed || paralyzed
	-Armament@SECONDARY:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Cloak:
		InitialDelay: 100
		CloakDelay: 100
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled
	-RevealOnFire:
	TakeCover:
		SpeedModifier: 75
	WithColoredOverlay:
		Color: 8172002E

nsfremen:
	-Buildable:

fremen_warrior:
	Inherits: fremen
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 6
		Prerequisites: ~!factions.standard, ~barracks.fremen, upgrade.barracks, high_tech_factory, ~techlevel.medium
		BuildDuration: 150
		BuildDurationModifier: 100
		Description: warrior.description
	Valued:
		Cost: 175
	Tooltip:
		Name: Arrakis Warrior
	RevealsShroud:
		Range: 4c768
	AutoTarget:
		ScanRadius: 4
		InitialStance: Defend
		InitialStanceAI: AttackAnything
	Armament@PRIMARY:
		Weapon: MP_Arrakis_Weapon
	Armament@chaos_bomb_influence:
		Weapon: MP_Arrakis_Weapon
	-Cloak:
	-GrantConditionOnDamageState@UNCLOAK:
	TakeCover:
		SpeedModifier: 50
	-WithColoredOverlay:
	MustBeDestroyed:

thumper:
	GrantConditionOnTerrain@forBotonly:
		TerrainTypes: Sand, Spice, Dune, SpiceSand
		Condition: desert_terain
	Inherits@botlogic: ^botDeployLogic
	-GrantConditionOnAttack@beforedeploy:
	-WithIdleOverlay@botdeployanim:
	Inherits@selection: ^SelectableSupportUnit
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 16
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: thumper.description
	AttackFrontal@deploytargeting:
		FacingTolerance: 0
	Tooltip:
		Name: Worm Rider
	Valued:
		Cost: 250
	Health:
		HP: 6000
	RevealsShroud:
		Range: 3c768
	Mobile:
		Speed: 48
		PauseOnCondition: deployed
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	GrantConditionOnDamageState@UNCLOAK:
		Condition: cloak-force-disabled
		ValidDamageStates: Critical
	Cloak:
		InitialDelay: 100
		CloakDelay: 100
		UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage
		IsPlayerPalette: true
		RequiresCondition: !cloak-force-disabled && !deployed
	GrantConditionOnDeploy:
		DeployedCondition: deployed
		UndeployedCondition: undeployed
		Facing: 512
		AllowedTerrainTypes: Sand, Spice, Dune, SpiceSand
		PauseOnCondition: deployed || frozed || paralyzed
		UndeployOnMove: false
	KillsSelf:
		Delay: 1500
		GrantsCondition: spawnWorm
		RequiresCondition: deployed && desert_terain
	SpawnActorOnDeath:
		Actor: mp_sandworm
		RequiresCondition: spawnWorm
		SkipMakeAnimations: 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: 40
		RequiresCondition: deployed && desert_terain
	Voiced:
		VoiceSet: FremenVoice
	DamageMultiplier@GrantConditionOnDeploy:
		Modifier: 75
		RequiresCondition: deployed
	SpeedMultiplier@wormeated:
		Modifier: 100
		RequiresCondition: stop
	SpeedMultiplier@worm_eating:
		Modifier: 100
		RequiresCondition: worm_attack
	WithColoredOverlay:
		Color: 8172002E
	ActorLostNotification:
		RequiresCondition: !spawnWorm
	-MustBeDestroyed:
	-Armament@chaos_bomb_influence:

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: Circle
			Radius: 576
	Armor:
		Type: wood
	RenderSprites:
		Palette: terrain
	Mobile:
		Speed: 60
		TurnSpeed: 26
		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
		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
	AttractsWorms:
		Intensity: 0
		Falloff: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
		Spread: 0
		RequiresCondition: dispose

sandworm:
	Inherits@1: ^SpriteActor
	HitShape:
		Type: Circle
			Radius: 512
	Armor:
		Type: wood
	Mobile:
		Speed: 48
		Locomotor: worm

carryall.reinforce:
	Inherits: ^Plane
	HitShape:
		Type: Circle
			Radius: 576
	Valued:
		Cost: 1000
	Cargo:
		MaxWeight: 10
	ParaDrop:
		DropRange: 4c0
	Buildable:
		BuildDuration: 750
		Description: carryall-reinforce.description
	UpdatesPlayerStatistics:
		AddToAssetsValue: false
	Tooltip:
		Name: Carryall
	Health:
		HP: 45000
	Armor:
		Type: light
	Aircraft:
		CruiseAltitude: 2160
		CruisingCondition: cruising
		Speed: 165
		TurnSpeed: 20
		LandableTerrainTypes: Sand, Rock, Transition, Spice, SpiceSand, Dune, Concrete
		Repulsable: False
		AirborneCondition: airborne
		CanSlide: True
		VTOL: true
		IdleTurnSpeed: 10
		IdleSpeed: 165
	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
	HiddenUnderFog:
		AlwaysVisibleRelationships: Ally
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

carryall.reinforce.for.thumper:
	Inherits: carryall.reinforce
	ParaDrop:
		DropRange: 0c512
	Aircraft:
		CruiseAltitude: 1680

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, Damage, Dock
		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: 165
		TurnSpeed: 20
	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: 6
		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: 512
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

ornithopter.bomber:
	Inherits: ornithopter
	RenderSprites:
		Image: ornithopter
	Health:
		HP: 15000
	Aircraft:
		Speed: 225
		CruiseAltitude: 1920
		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
	AttackBomber:
		FacingTolerance: 8
	Armament:
		Weapon: chaosbomb
	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: 6
		Repulsable: False
		CruiseAltitude: 1920
	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
		FireDelay: 1
	Aircraft:
		Speed: 225
		TurnSpeed: 6
		Repulsable: False
		CruiseAltitude: 1920
	Valued:
		Cost: 500

frigate.harkonnen:
	Inherits: carryall.reinforce_with_sound
	RenderSprites:
		Image: frigate.harkonnen
	Buildable:
		Queue: Aircraft
		BuildDuration: 1000
		BuildDurationModifier: 100
		BuildPaletteOrder: 120
		Prerequisites: upgrade.hightech, barracks
		Description: infantry-reinforcements.description
	Valued:
		Cost: 1500
	Health:
		HP: 45000
	Armor:
		Type: light
	Aircraft:
		IdleBehavior: Land
		Speed: 165
		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:
		RequiresCondition: !timerstart

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

ornithopter_s:
	Inherits: ornithopter
	RenderSprites:
		Image: ornithopter_s
	-AttackBomber:
	Aircraft:
		AltitudeVelocity: 8c0
	Tooltip:
		Name: Scout Ornithopter
	Buildable:
		Queue: Aircraft
		BuildDuration: 1250
		BuildDurationModifier: 100
		BuildPaletteOrder: 140
		Description: scout-ornithopter.description 
		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: 24
		IdleTurnSpeed: 6
		IdleSpeed: 225
		Repulsable: False
		CruiseAltitude: 2400
		AirborneCondition: airborne
		CanSlide: False
	Valued:
		Cost: 2000
	RevealsShroud@airborne:
		Range: 7c512
		Type: GroundPosition
		RequiresCondition: airborne
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250
	CashTrickler:
		Interval: 1500
		InitialDelay: 1490
		Amount:	1000
		UseResourceStorage: True
	KillsSelf:
		Delay: 1500
		GrantsCondition: finished
	ActorLostNotification:
		RequiresCondition: !finished
	FireProjectilesOnDeath@derbis:
		Weapons: Debris, Debris2, debris_vehicle01
		Pieces: 1, 3
		Range: 0c512, 2c0
		RequiresCondition: !finished
	SpawnActorOnDeath:
		Actor: ornithopter.husk
		RequiresCondition: !finished
