^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: 50
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 0
	WithColoredOverlay@black:
		Color: 3E202080
		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
		FallRate: 25
	HitShape:
		Type: Circle
			Radius: 128
	TerrainModifiesDamage:
		TerrainModifier:
			Rough: 75
	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
	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
		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: 320
	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
	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: 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
	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
	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

^Plane:
	ExternalCondition@jammed:
		Condition: jammed
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 55
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 5
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed

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: 31
	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
		RequiresCondition: !unitCapturated

harvester:
	Buildable:
		Queue: Armor
		Prerequisites: refinery
		BuildDuration: 700
		Description: harvester.description
	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: 448
	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
	DockClientManager:

trike:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	AutoTargetPriority@bot:
		ValidTargets: Infantry, Structure
		InvalidTargets: Tank
		Priority: 50
		RequiresCondition: ignore-creeps
	Buildable:
		Prerequisites: ~light.trike
		BuildDuration: 200
		Description: trike.description
	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: 1
		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: raider.description
	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:
		FireDelay: 1
		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: stealth-raider.description
	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
		PauseOnCondition: unitCapturated
		RequiresCondition: !unitCapturated
	WithIdleOverlay@DEPLOYED:
		Sequence: deployed
		RequiresCondition: deployed_raider
	DetectCloaked:
		Range: 1c768
		RequiresCondition: deployed_raider
	SpeedMultiplier@DEPLOYED:
		RequiresCondition: deployed_raider
		Modifier: 110
	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:
		Locomotor: light_vehicle
		TurnSpeed: 28
		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-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
	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: missile-tank.description
	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: sonic-tank.description
	Valued:
		Cost: 1000
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	Health:
		HP: 30000
	Armor:
		Type: invulnerable
	Mobile:
		TurnSpeed: 12
		Speed: 31
		Locomotor: tank
	HitShape:
		Type: Circle
			Radius: 384
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: Sound
		LocalOffset: 600,0,427
	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: 12
		Speed: 31
		Locomotor: devastator
		RequiresCondition: !overload
		PauseOnCondition: notmobile
	RevealsShroud:
		Range: 5c512
	SpeedMultiplier@huskslowdown:
		Modifier: 75
		RequiresCondition: huskslowdown
	SpeedMultiplier@hugehuskslowdown:
		Modifier: 75
		RequiresCondition: hugehuskslowdown
	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
		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

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: deviator.description
	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
	WithDecoration@skullFromRA:
		Image: pips
		Sequence: pip-jammer
		Palette: disabled
		Position: TopLeft
		RequiresCondition: unitCapturated

^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: 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: combat-tank-a.description
	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: combat-tank-h.description
	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: combat-tank-o.description
	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_fremen:
	Inherits: ^combat_tank
	-GrantRandomCondition:
	Buildable:
		BuildPaletteOrder: 41
		BuildDuration: 450
		Prerequisites: ~heavy.fremen_tank, ~!factions.standard
		Description: combat-tank-f.description
	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: tank_fremen

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: 64
		TurnSpeed: 18
		Locomotor: tank_corrino
	Turreted:
		TurnSpeed: 18
	Armament:
		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
		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_cheap:
	Inherits: ^combat_tank
	Buildable:
		BuildPaletteOrder: 45
		BuildDuration: 400
		Prerequisites: ~!factions.standard, ~heavy.cheap_tank
		Description: combat-tank-s.description
	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_mercenary:
	Inherits: ^combat_tank
	-GrantRandomCondition:
	Buildable:
		BuildPaletteOrder: 47
		BuildDuration: 500
		Prerequisites: ~heavy.mercenary_tank, ~!factions.standard
		Description: combat-tank-m.description
	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, Tank, Defense, Structure
		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: bison-tank.description
	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
	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@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: 640
	Valued:
		Cost: 1500
	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: 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
	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, 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: 576
	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: 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: 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: 10
		Repulsable: False
		CruiseAltitude: 1920
	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: light-inf.description
	Valued:
		Cost: 50
	Health:
		HP: 6000
	RevealsShroud:
		Range: 4c768
	Mobile:
		Speed: 43
	Armament:
		Weapon: LMG
		FireDelay: 1
	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: 100
		Description: trooper.description
	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: engineer.description
	Valued:
		Cost: 250
	Health:
		HP: 7000
	RevealsShroud:
		Range: 3c520
	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: 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:
		Locomotor: resistinf
		Speed: 43
		PauseOnCondition: deployed
	-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
	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
	-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: 100
		Description: grenadier.description
	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:

sardaukar:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	Buildable:
		BuildDuration: 150
		BuildPaletteOrder: 7
		Prerequisites: ~barracks.corrino, upgrade.barracks, high_tech_factory, ~techlevel.medium
		Description: sardaukar.description
	Valued:
		Cost: 200
	Mobile:
		Locomotor: resistinf
		Speed: 31
	RevealsShroud:
		Range: 4c768
	Armament@PRIMARY:
		Weapon: MP_Sardaukar_Weapon
		FireDelay: 1
	-Armament@SECONDARY:
	-RevealOnFire:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	TakeCover:
		SpeedModifier: 75
	RenderSprites:
		Image: sardaukar
	UpdatesPlayerStatistics:
		OverrideActor: sardaukar

-mpsardaukar:

saboteur:
	Inherits@selection: ^SelectableSupportUnit
	ScriptTags:
	Buildable:
		BuildPaletteOrder: 13
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: saboteur.description
	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
		Interval: 1500
	SpawnActorOnDeath@crater:
		Actor: crater_big
		RequiresCondition: kamikadze
		Offset: -1,0
	-MustBeDestroyed:
	RevealOnDeath:
		Duration: 50

fremen:
	Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
	Buildable:
		BuildPaletteOrder: 14
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: fremen.description
	Mobile:
		Speed: 43
	Valued:
		Cost: 250
	Tooltip:
		Name: Ranger
	Health:
		HP: 6000
	RevealsShroud:
		Range: 4c768
	AutoTarget:
		ScanRadius: 3
		InitialStance: HoldFire
		InitialStanceAI: AttackAnything
	Armament@PRIMARY:
		Weapon: MP_Fremen_Weapon
		FireDelay: 3
	-Armament@SECONDARY:
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 250
	Cloak:
		InitialDelay: 25
		CloakDelay: 100
		IsPlayerPalette: true
	-RevealOnFire:
	Voiced:
		VoiceSet: InfantryVoice
	TakeCover:
		SpeedModifier: 75

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: 150
		BuildDurationModifier: 100
		Description: assassin.description
	Tooltip:
		Name: Assassin
	Health:
		HP: 5000
	Mobile:
		Speed: 43
		Locomotor: resistinf
	RevealsShroud:
		Range: 6c512
	Armament:
		Weapon: SniperRifle
		FireDelay: 1
	AttackFrontal:
		FacingTolerance: 0
	WithInfantryBody:
		DefaultAttackSequence: shoot
		MinIdleDelay: 90
		MaxIdleDelay: 200
	ChangesHealth@regen:
		Step: 0
		PercentageStep: 1
		Delay: 25
		StartIfBelow: 50
		DamageCooldown: 250
	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
	UpdatesPlayerStatistics:
		AddToArmyValue: true
	-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: mortar.description
	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, 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: 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
		FireDelay: 1
	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:

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
		FireDelay: 1
	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: 4
		InitialStance: Defend
		InitialStanceAI: AttackAnything
	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: warrior.description
	TerrainModifiesDamage:
		TerrainModifier:
			Sand: 75
			SpiceSand: 75
			Spice: 75
			SpiceBlobs: 75
			Dune: 75
			Rough: 75
	Armament@PRIMARY:
		Weapon: MP_Fedaykin_Weapon
		FireDelay: 1
	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:
	Inherits: thumper
	Buildable:
		Queue: Infantry
		BuildDuration: 50
		BuildDurationModifier: 100
		BuildPaletteOrder: 16
		Description: rider.description
	AttackFrontal@deploytargeting:
		FacingTolerance: 0
	-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
	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: 1500
		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, -768
			BottomRight: 512, 768
	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
	AttractsWorms:
		Intensity: 0

sandworm:
	Inherits@1: ^SpriteActor
	HitShape:
		Type: Circle
			Radius: 512
	Armor:
		Type: wood

spire:
	Inherits: quad
	Buildable:
		Prerequisites: upgrade.light, outpost, ~enhancedAirCombat
		BuildDuration: 300
		BuildDurationModifier: 100
		BuildPaletteOrder: 65
		Description: rover.description
	Valued:
		Cost: 500
	Selectable:
		Class: spire
	Health:
		HP: 11000
	Tooltip:
		Name: Rover
	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: striker.description
	Valued:
		Cost: 550
	Tooltip:
		Name: Striker
	Health:
		HP: 13000
	Armor:
		Type: light
	Mobile:
		Locomotor: light_vehicle
		Speed: 100
		TurnSpeed: 28
	RevealsShroud:
		Range: 5c512
	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: hunter.description
	Tooltip:
		Name: Hunter
	Valued:
		Cost: 350
	Selectable:
		Class: hunter
	Mobile:
		Locomotor: light_vehicle
		TurnSpeed: 32
		Speed: 115
	Turreted:
		TurnSpeed: 32
		Offset: -200,0,30
		RealignDelay: 0
	-AttackFrontal:
	WithMuzzleOverlay:
	AttackTurreted:
	WithSpriteTurret:
	RevealsShroud:
		Range: 5c512
	Armament@damage:
		FireDelay: 1
		Weapon: HMGhunter
		LocalOffset: -450,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: jammer.description
	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
		ChargedCondition: cooldown
	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:
	WithColoredOverlay@cooldown:
		Color: 00000052
		RequiresCondition: !cooldown
	-MustBeDestroyed:

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
	Mobile:
		Speed: 64
		TurnSpeed: 18
		Locomotor: tank_corrino
	HitShape:
		Type: Circle
			Radius: 384
	RevealsShroud:
		Range: 6c512
	Turreted:
		TurnSpeed: 18
		Offset: -200,0,170
	AttackTurreted:
	WithMuzzleOverlay:
	WithSpriteTurret:
	FireWarheadsOnDeath:
		Weapon: UnitExplodeMed
		EmptyWeapon: UnitExplodeMed
	GrantConditionOnMovement:
		Condition: moved
		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
	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:
	ReloadDelayMultiplier@moved:
		Modifier: 50
		RequiresCondition: !moved
	-RevealOnFire:
	WithColoredOverlay:
		Color: DC6C1512

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: 82
		TurnSpeed: 22
	RevealsShroud:
		Range: 5c512
	AttackFrontal:
		FacingTolerance: 0
	Armament:
		Weapon: flamethrower
		LocalOffset: 100,0, 200
	SpawnActorOnDeath:
		Actor: flamer.husk
	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: infantry-reinforcements.description
	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: 2640
		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

thumper:
	GrantConditionOnTerrain@forBotonly:
		TerrainTypes: Sand, Spice, Dune, SpiceSand
		Condition: desert_terain
	Inherits@botlogic: ^botDeployLogic
	-GrantConditionOnAttack@beforedeploy:
	-WithIdleOverlay@botdeployanim:
	Buildable:
		Queue: Infantry
		BuildPaletteOrder: 12
		Prerequisites: ~disabled
		BuildDuration: 50
		BuildDurationModifier: 100
		Description: thumper.description
	Inherits@selection: ^SelectableSupportUnit
	RevealsShroud:
		Range: 3c768
	Tooltip:
		Name: Fremen Thumper
	Valued:
		Cost: 250
	Health:
		HP: 5000
	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
	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: 750
		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
	Parachutable:
		FallRate: 75
	-MustBeDestroyed:

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: 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: 25
		IdleTurnSpeed: 5
		IdleSpeed: 225
		Repulsable: False
		CruiseAltitude: 2400
		AirborneCondition: airborne
		CanSlide: False
	Valued:
		Cost: 1500
	RevealsShroud@airborne:
		Range: 7c512
		Type: GroundPosition
		RequiresCondition: airborne
	ChangesHealth:
		Step: 100
		Delay: 5
		StartIfBelow: 50
		DamageCooldown: 250

nsfremen:
	-Buildable:

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: 55
		TurnSpeed: 16
		Locomotor: tank
	HitShape:
		Type: Circle
			Radius: 448
	RevealsShroud:
		Range: 6c512
	Tooltip:
		Name: Crawler
	Cargo:
		Types: Infantry
		MaxWeight: 5
		LoadingCondition: notmobile
	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
	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

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

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