^Husk:
	Health:
		HP: 15000

^VehicleHusk:
	Inherits: ^Husk
	Interactable:
	CaptureManager:
	Capturable:
		Types: husk
	Husk:
		AllowedTerrain: Sand, Rock, Transition, Concrete, Spice, SpiceSand, SpiceBlobs, Dune
	FireWarheadsOnDeath:
		Weapon: huskExplode01
		EmptyWeapon: huskExplode01
		Chance: 70
	Crushable:
		CrushClasses: vehicle
		WarnProbability: 0
		CrushedByFriendlies: true
		CrushSound: WORM.WAV
	WithIdleOverlay@Burns:
		Image: fire_slow
		Sequence: 1_loop
		StartSequence: 1_start
		IsDecoration: True
		RequiresCondition: decoration1 || decoration3
	ChangesHealth:
		Step: -35
		StartIfBelow: 101
		Delay: 5
	FloatingSpriteEmitter@SMOKE:
		Image: smoke3
		Lifetime: 10, 20
		Speed: 7
		Gravity: 50
		SpawnFrequency: 2, 10
		RandomFacing: true
		RandomRate: 4
		Offset: 0, 0, 200
		TurnRate: 3
		Duration: 500
		RequiresCondition: decoration2 || decoration3
	GrantRandomCondition:
	TransformOnCapture:
		ForceHealthPercentage: 5
	InfiltrateForTransform:
		Types: Husk
		ForceHealthPercentage: 5
	FireWarheadsOnDeath@husk:
		Weapon: HuskDeath
		EmptyWeapon: HuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML1.WAV

mcv.husk:
	Health:
		HP: 15000
	TransformOnCapture:
		IntoActor: engineer
	InfiltrateForTransform:
		IntoActor: engineer
	GivesCashOnCapture:
		Amount: 1000
	FireWarheadsOnDeath@husk:
		Weapon: HugeHuskDeath
		EmptyWeapon: HugeHuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML3.WAV

harvester.husk:
	Health:
		HP: 15000
	TransformOnCapture:
		IntoActor: harvester
	FireWarheadsOnDeath@husk:
		Weapon: HugeHuskDeath
		EmptyWeapon: HugeHuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML3.WAV

^combat_tank.husk:
	Inherits: ^VehicleHusk
	Health:
		HP: 12000
	Tooltip:
		Name: Combat Tank (Destroyed)
	ThrowsParticle@turret:
		Anim: turret
		TurnSpeed: 10
	FireWarheadsOnDeath@husk:
		Weapon: HuskDeath
		EmptyWeapon: HuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML1.WAV

combat_tank_a.husk:
	Inherits: ^combat_tank.husk
	InfiltrateForTransform:
		IntoActor: combat_tank_a
	-ThrowsParticle@turret:

combat_tank_a.husk02:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_a
	InfiltrateForTransform:
		IntoActor: combat_tank_a
	Health:
		HP: 10000
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokeFromRA01loop
		IsDecoration: True
	ThrowsParticle@turret:

combat_tank_a.husk03:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_a
	InfiltrateForTransform:
		IntoActor: combat_tank_a
	Health:
		HP: 13000
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokeFromRA01loop
		IsDecoration: True
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 0c112
		MaxThrowRange: 1c768
		MinThrowAngle: 30
		MaxThrowAngle: 50
		Velocity: 50
		TurnSpeed: 50

combat_tank_a.husk04:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_a
	InfiltrateForTransform:
		IntoActor: combat_tank_a
	Health:
		HP: 9000
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		StartSequence: smokLandFromRA_Open
		Palette: disabled
		IsDecoration: True
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 0c512
		MaxThrowRange: 1c768
		MinThrowAngle: 50
		MaxThrowAngle: 70
		Velocity: 40
		TurnSpeed: 100

combat_tank_h.husk:
	Inherits: ^combat_tank.husk
	-ThrowsParticle@turret:

combat_tank_h.husk02:
	Inherits: ^combat_tank.husk
	Health:
		HP: 13000
	TransformOnCapture:
		IntoActor: combat_tank_h
	InfiltrateForTransform:
		IntoActor: combat_tank_h
	WithIdleOverlay@Burns:
		Image: fire
		Sequence: 2
		IsDecoration: True
	ThrowsParticle@turret:

combat_tank_h.husk03:
	Inherits: ^combat_tank.husk
	Health:
		HP: 11000
	InfiltrateForTransform:
		IntoActor: combat_tank_h
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokeFromRA01loop
		IsDecoration: True
	TransformOnCapture:
		IntoActor: combat_tank_h
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 0c512
		MaxThrowRange: 4c768
		MinThrowAngle: 20
		MaxThrowAngle: 100
		Velocity: 50
		TurnSpeed: 50

combat_tank_h.husk04:
	Inherits: ^combat_tank.husk
	Health:
		HP: 9000
	TransformOnCapture:
		IntoActor: combat_tank_h
	InfiltrateForTransform:
		IntoActor: combat_tank_h
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		StartSequence: smokLandFromRA_Open
		Palette: disabled
		IsDecoration: True
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 0c512
		MaxThrowRange: 3c768
		MinThrowAngle: 70
		MaxThrowAngle: 150
		Velocity: 40
		TurnSpeed: 20

combat_tank_o.husk:
	Inherits: ^combat_tank.husk
	-ThrowsParticle@turret:

combat_tank_o.husk02:
	Inherits: ^combat_tank.husk
	Health:
		HP: 15000
	TransformOnCapture:
		IntoActor: combat_tank_o
	InfiltrateForTransform:
		IntoActor: combat_tank_o
	WithIdleOverlay@Burns:
		Image: fire
		Sequence: 2
		IsDecoration: True
	-ThrowsParticle@turret:

combat_tank_o.husk03:
	Inherits: ^combat_tank.husk
	Health:
		HP: 9000
	TransformOnCapture:
		IntoActor: combat_tank_o
	InfiltrateForTransform:
		IntoActor: combat_tank_o
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokeFromRA01loop
		IsDecoration: True
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 1c0
		MaxThrowRange: 3c768
		MinThrowAngle: 30
		MaxThrowAngle: 80
		Velocity: 50
		TurnSpeed: 50

combat_tank_o.husk04:
	Inherits: ^combat_tank.husk
	Health:
		HP: 12000
	TransformOnCapture:
		IntoActor: combat_tank_o
	InfiltrateForTransform:
		IntoActor: combat_tank_o
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		StartSequence: smokLandFromRA_Open
		Palette: disabled
		IsDecoration: True
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 0c512
		MaxThrowRange: 3c768
		MinThrowAngle: 60
		MaxThrowAngle: 120
		Velocity: 40
		TurnSpeed: 20

combat_tank_fremen.husk:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_fremen
	InfiltrateForTransform:
		IntoActor: combat_tank_fremen

combat_tank_corrino.husk:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_corrino
	InfiltrateForTransform:
		IntoActor: combat_tank_corrino

combat_tank_corrino.husk02:
	Inherits: ^combat_tank.husk
	Health:
		HP: 13000
	TransformOnCapture:
		IntoActor: combat_tank_corrino
	WithIdleOverlay@Burns:
		Image: fire
		Sequence: 2
		IsDecoration: True
	ThrowsParticle@turret:
	InfiltrateForTransform:
		IntoActor: combat_tank_corrino

combat_tank_corrino.husk03:
	Inherits: ^combat_tank.husk
	Health:
		HP: 11000
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokeFromRA01loop
		IsDecoration: True
	TransformOnCapture:
		IntoActor: combat_tank_corrino
	InfiltrateForTransform:
		IntoActor: combat_tank_corrino
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 0c512
		MaxThrowRange: 4c768
		MinThrowAngle: 20
		MaxThrowAngle: 100
		Velocity: 50
		TurnSpeed: 50

combat_tank_corrino.husk04:
	Inherits: ^combat_tank.husk
	Health:
		HP: 9000
	TransformOnCapture:
		IntoActor: combat_tank_corrino
	InfiltrateForTransform:
		IntoActor: combat_tank_corrino
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		StartSequence: smokLandFromRA_Open
		Palette: disabled
		IsDecoration: True
	ThrowsParticle@turret:
		Anim: turret
		MinThrowRange: 0c512
		MaxThrowRange: 3c768
		MinThrowAngle: 70
		MaxThrowAngle: 150
		Velocity: 40
		TurnSpeed: 20

combat_tank_cheap.husk:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_cheap
	InfiltrateForTransform:
		IntoActor: combat_tank_cheap

combat_tank_cheap.husk02:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_cheap
	InfiltrateForTransform:
		IntoActor: combat_tank_cheap
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokeFromRA01loop
		IsDecoration: True
	ThrowsParticle@debris01:
		Anim: tankdebris01
		MaxThrowRange: 2c512
		MinThrowRange: 1c0
	ThrowsParticle@debris02:
		Anim: tankdebris02
		MinThrowAngle: 80
		MaxThrowAngle: 200

combat_tank_cheap.husk03:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_cheap
	InfiltrateForTransform:
		IntoActor: combat_tank_cheap
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smokeFromRA01loop
		IsDecoration: True
	ThrowsParticle@turret:
	ThrowsParticle@debris02:
		Anim: tankdebris02
		MinThrowAngle: 80
		MaxThrowAngle: 200
	ThrowsParticle@debris03:
		Anim: tankdebris03
		MinThrowAngle: 30
		MaxThrowAngle: 150
	ThrowsParticle@debris04:
		Anim: tankdebris04

combat_tank_cheap.husk04:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_cheap
	InfiltrateForTransform:
		IntoActor: combat_tank_cheap
	ThrowsParticle@debris03:
		Anim: tankdebris03
		MinThrowAngle: 30
		MaxThrowAngle: 150
	ThrowsParticle@debris04:
		Anim: tankdebris04

combat_tank_mercenary.husk:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: combat_tank_mercenary
	InfiltrateForTransform:
		IntoActor: combat_tank_mercenary
	RenderSprites:
		PlayerPalette: player_r16
	WithIdleOverlay@Burns:
		Palette: d2k

siege_tank.husk:
	Inherits: ^VehicleHusk
	Health:
		HP: 10000
	Tooltip:
		Name: Siege Tank (Destroyed)
	TransformOnCapture:
		IntoActor: siege_tank
	InfiltrateForTransform:
		IntoActor: siege_tank
	WithIdleOverlay@Burns:
		Image: fire
		StartSequence: 2
		Sequence: 1
		IsDecoration: True

missile_tank.husk:
	Inherits: ^VehicleHusk
	Health:
		HP: 10000
	TransformOnCapture:
		IntoActor: missile_tank
	ThrowsParticle@turret:
		Anim: turret
		TurnSpeed: 10
	ThrowsParticle@debris01:
		Anim: tankdebris01
		MaxThrowRange: 2c512
		MinThrowRange: 1c0
	ThrowsParticle@debris02:
		Anim: tankdebris02
		MinThrowAngle: 80
		MaxThrowAngle: 200
	ThrowsParticle@debris03:
		Anim: tankdebris03
		MinThrowAngle: 30
		MaxThrowAngle: 150
	ThrowsParticle@debris04:
		Anim: tankdebris04
	FireWarheadsOnDeath@husk:
		Weapon: HuskDeath
		EmptyWeapon: HuskDeath

sonic_tank.husk:
	Inherits: ^VehicleHusk
	WithIdleOverlay@Burns:
		Image: fire_slow
		Sequence: 1
		IsDecoration: True
	ThrowsParticle@turret:
		Anim: turret
		MaxThrowRange: 1c224
		MinThrowRange: 0c512
	ThrowsParticle@debris01:
		Anim: tankdebris01
	ThrowsParticle@debris02:
		Anim: tankdebris02
	ThrowsParticle@debris03:
		Anim: tankdebris03
	ThrowsParticle@debris04:
		Anim: tankdebris04

devastator.husk:
	Inherits: ^VehicleHusk
	Health:
		HP: 15000
	Tooltip:
		Name: Devastator (Destroyed)
	TransformOnCapture:
		IntoActor: devastator
	FireWarheadsOnDeath@husk:
		Weapon: HugeHuskDeath
		EmptyWeapon: HugeHuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML3.WAV

deviator.husk:
	Inherits: ^VehicleHusk
	Health:
		HP: 10000
	ProximityExternalCondition@isHuskAlive:
		Condition: devation_husk_still_alive
		Range: 2c112
		MaximumVerticalOffset: 1c0
		AffectsParent: true
		ValidRelationships: Ally, Neutral, Enemy
	Tooltip:
		Name: Deviator (Destroyed)
	TransformOnCapture:
		IntoActor: deviator
	WithIdleOverlay@Burns:
		Image: smoke_m
		Sequence: smoke_player
		IsPlayerPalette: True
		IsDecoration: True
		Offset: -100, -200, 312
	FireWarheadsOnDeath:
		Chance: 100
	FireWarheadsOnDeath@husk:
		Weapon: HuskDeath
		EmptyWeapon: HuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML1.WAV

sand_tank.husk:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: sand_tank
	InfiltrateForTransform:
		IntoActor: sand_tank
	Tooltip:
		Name: Sand Tank (Destroyed)

bombardment_tank.husk:
	Inherits: ^VehicleHusk
	Health:
		HP: 10000
	Tooltip:
		Name: Bombardment Tank (Destroyed)
	TransformOnCapture:
		IntoActor: bombardment_tank
	InfiltrateForTransform:
		IntoActor: bombardment_tank
	ThrowsParticle@turret:
		Anim: turret
		TurnSpeed: 10
	ThrowsParticle@debris01:
		Anim: tankdebris01
		MaxThrowRange: 2c512
		MinThrowRange: 1c0
	ThrowsParticle@debris02:
		Anim: tankdebris02
		MinThrowAngle: 80
		MaxThrowAngle: 200
	ThrowsParticle@debris03:
		Anim: tankdebris03
		MinThrowAngle: 30
		MaxThrowAngle: 150
	ThrowsParticle@debris04:
		Anim: tankdebris04

flamer.husk:
	Inherits: ^VehicleHusk
	Tooltip:
		Name: Flamer (Destroyed)
	ThrowsParticle@debris01:
		Anim: tankdebris01
	ThrowsParticle@debris02:
		Anim: tankdebris02
	ThrowsParticle@debris03:
		Anim: tankdebris03
	ThrowsParticle@debris04:
		Anim: tankdebris04
	TransformOnCapture:
		IntoActor: flamer
	InfiltrateForTransform:
		IntoActor: flamer
	Health:
		HP: 20000
	ChangesHealth:
		Step: -10000
		StartIfBelow: 101
		Delay: 1
	FireWarheadsOnDeath@big:
		Weapon: flamer_explosion_big
		EmptyWeapon: flamer_explosion_big
	FireWarheadsOnDeath@small1:
		Offset: 640,-640,0
		Weapon: flamer_explosion_small
		EmptyWeapon: flamer_explosion_small
	FireWarheadsOnDeath@small2:
		Offset: 640,640,0
		Weapon: flamer_explosion_small02
		EmptyWeapon: flamer_explosion_small02
	FireWarheadsOnDeath@small3:
		Offset: -640,640,0
		Weapon: flamer_explosion_small03
		EmptyWeapon: flamer_explosion_small03
	FireWarheadsOnDeath@small4:
		Offset: -640,-640,0
		Weapon: flamer_explosion_small04
		EmptyWeapon: flamer_explosion_small04
	FireWarheadsOnDeath@small5:
		Offset: 0,0,0
		Weapon: flamer_explosion_small05
		EmptyWeapon: flamer_explosion_small05

bison_tank.husk:
	Inherits: ^combat_tank.husk
	TransformOnCapture:
		IntoActor: bison_tank
	InfiltrateForTransform:
		IntoActor: bison_tank
	Tooltip:
		Name: Bison Tank (Destroyed)
	-ThrowsParticle@turret:
	RenderSprites:
		PlayerPalette: player_r16
	WithIdleOverlay@Burns:
		Palette: d2k
	WithColoredOverlay@destroyed:
		Color: 30303030
	FireWarheadsOnDeath@husk:
		Weapon: HugeHuskDeath
		EmptyWeapon: HugeHuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML3.WAV

crawler.husk:
	Inherits: ^VehicleHusk
	Health:
		HP: 15000
	Tooltip:
		Name: Crawler (Destroyed)
	TransformOnCapture:
		IntoActor: crawler_revived
	InfiltrateForTransform:
		IntoActor: crawler_revived
	FireWarheadsOnDeath@husk:
		Weapon: HugeHuskDeath
		EmptyWeapon: HugeHuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML3.WAV

^AircraftHusk:
	FallsToEarth:
		Explosion: ExplosionAircraft
	HitShape:
		Type: Rectangle
			TopLeft: -512, -512
			BottomRight: 512, 512
	TransformOnCapture:
		IntoActor: engineer
		ForceHealthPercentage: 5
	InfiltrateForTransform:
		IntoActor: engineer
		ForceHealthPercentage: 5

carryall.husk:
	Inherits: ^AircraftHusk
	Tooltip:
		Name: Carryall (Destroyed)
	Aircraft:
		TurnSpeed: 4
		Speed: 105
		CanSlide: True
		VTOL: true
	RenderSprites:
		Image: carryall
	FallsToEarth:
		MaximumSpinSpeed: 14
		Explosion: ExplosionAircraft
	AmbientSound:
		SoundFiles: audio/explosion_Carryall.wav
		Interval: 5000
	SpawnActorOnDeath@carry:
		Actor: carryall.husk_on_land
		OwnerType: InternalName
	SpawnActorOnDeath@debris:
		Actor: dummyShrapnelThrower_carryall
		OwnerType: InternalName
	Contrail@1:
		Offset: -300,-383,0
		StartColor: 00000050
		StartColorUsePlayerColor: false
	Contrail@2:
		Offset: -598,383,0
		StartColor: 00000050
		StartColorUsePlayerColor: false

ornithopter.bomberhusk:
	Inherits: ornithopter.husk
	RenderSprites:
		Image: ornithopter
	FallsToEarth:
		Velocity: 0c40
		MaximumSpinSpeed: 1
	SpawnActorOnDeath:
		Actor: dummyShrapnelThrower
	FireWarheadsOnDeath@gas:
		Weapon: chaosbomb_from_husk
		EmptyWeapon: chaosbomb_from_husk

ornithopter.husk:
	Inherits: ^AircraftHusk
	Tooltip:
		Name: Ornithopter (Destroyed)
	Aircraft:
		TurnSpeed: 20
		Speed: 165
	FallsToEarth:
		MaximumSpinSpeed: 1
		Explosion: ExplosionAircraft
		Velocity: 0c35
	RenderSprites:
		Image: ornithopter
	Contrail@1:
		Offset: -192,-384,0
		StartColor: 00000050
		StartColorUsePlayerColor: false
	Contrail@2:
		Offset: -192,384,0
		StartColor: 00000050
		StartColorUsePlayerColor: false
	SpawnActorOnDeath:
		Actor: dummyShrapnelThrower

carryall.huskVTOL_reinforce:
	Inherits: carryall.huskVTOL
	SpawnActorOnDeath:
		Actor: carryall.husk_on_land
		OwnerType: InternalName
	SpawnActorOnDeath@debris:
		Actor: dummyShrapnelThrower_carryall
		OwnerType: InternalName

frigate.husk:
	Inherits: carryall.husk
	RenderSprites:
		Image: frigate.harkonnen
	Aircraft:
		Speed: 165
	FallsToEarth:
		MaximumSpinSpeed: 0
		Explosion: ExplosionFrigate
	Contrail@01:
		ZOffset: -100
	Contrail@02:
		ZOffset: -100
	Contrail@03:
		Offset: -0,0,-300
		ZOffset: -100
		StartWidth: 0c120
		StartColor: 00000050
		StartColorUsePlayerColor: false
	SpawnActorOnDeath@carry:
		Actor: frigate.husk_on_land
		OwnerType: InternalName

frigate.huskvtol:
	Inherits: carryall.huskVTOL_reinforce
	RenderSprites:
		Image: frigate.harkonnen
	SpawnActorOnDeath:
		Actor: frigate.husk_on_land
	FallsToEarth:
		Explosion: ExplosionFrigate

carryall.husk_on_land:
	Inherits: ^VehicleHusk
	-TransformOnCapture:
	Health:
		HP: 15000
	WithIdleOverlay@Burns:
		Image: fire_slow
		Sequence: 1
		IsDecoration: True
		Palette: effect
	WithIdleOverlay@Smoke:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		StartSequence: smokLandFromRA_Open
		Palette: disabled
		IsDecoration: True
		Offset: 512, -512, 0
	RenderSprites:
		Image: carryall.husk_on_land
	Tooltip:
		Name: Carryall (Destroyed)
	FireProjectilesOnDeath:
		Weapons: Debris3, Debris4
		Pieces: 1, 4
		Range: 1c0, 3c0
	GivesCashOnCapture:
		Amount: 500
	TransformOnCapture:
		IntoActor: engineer
		ForceHealthPercentage: 5
	InfiltrateForTransform:
		IntoActor: engineer
		ForceHealthPercentage: 5
	FireWarheadsOnDeath@husk:
		Weapon: HugeHuskDeath
		EmptyWeapon: HugeHuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML3.WAV
	Targetable:
		TargetTypes: Ground, Vehicle, Husk
		RequiresForceFire: true

frigate.husk_on_land:
	Inherits: carryall.husk_on_land
	RenderSprites:
		Image: frigate.husk
	Tooltip:
		Name: Frigate (Destroyed)
	WithIdleOverlay@Smoke:
		Offset: -1000, -600, 0
	GivesCashOnCapture:
		Amount: 500
	FireWarheadsOnDeath@husk:
		Weapon: HugeHuskDeath
		EmptyWeapon: HugeHuskDeath
	Crushable@husk:
		CrushClasses: husk
		CrushedByFriendlies: true
		CrushSound: EXPLSML3.WAV
	Targetable:
		TargetTypes: Ground, Vehicle, Husk
		RequiresForceFire: true
	
carryall.huskVTOL:
	Inherits: ^AircraftHusk
	Tooltip:
		Name: Carryall (Destroyed)
	FallsToEarth:
	Aircraft:
		TurnSpeed: 10
		CanSlide: True
		VTOL: true
	RenderSprites:
		Image: carryall
	SpawnActorOnDeath@debris:
		Actor: dummyShrapnelThrower_carryall
		OwnerType: InternalName

^BuildingHusk:
	Inherits@1: ^SpriteActor
	GrantRandomCondition:
		Conditions: decoration01, decoration02, decoration03
	Interactable:
	Health:
		HP: 10000
	Armor:
		Type: building
	FrozenUnderFog:
	Tooltip:
		GenericName: Destroyed Building
	WithSpriteBody:
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -512, -512
			BottomRight: 512, 512
	MapEditorData:
		Categories: Husk
	Targetable:
		TargetTypes: Ground, Vehicle
		RequiresForceFire: true
	Building:
		Dimensions: 1,1
		Footprint: x
		TerrainTypes: Rock, Concrete
	WithColoredOverlay@darker:
		Color: 00000050
	WithBuildingBib:
	ChangesHealth:
		Step: -70
		StartIfBelow: 101
		Delay: 4
	ChangesHealth@damageidle:
		Step: -160
		StartIfBelow: 50
		Delay: 4
	Tooltip:
		Name: Building (destroyed)

wind_trap.husk_passable:
	Inherits: ^BuildingHusk
	RenderSprites:
		Image: wind_trap_husk_passable
	Health:
		HP: 15000
	Building:
		Footprint: __ __ __
		Dimensions: 2,3
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -1024, -1024
			BottomRight: 1024, 1024
	WithIdleOverlay@smoke:
		Image: smoke_big
		Sequence: loop
		StartSequence: start
		Palette: disabled
		IsDecoration: True
		Offset: 0, 0, 312
		RequiresCondition: decoration02 || decoration03
	WithIdleOverlay@fire2:
		Image: fire_slow
		StartSequence: 1
		Sequence: 2
		IsDecoration: True
		Offset: 0,-512,0
		RequiresCondition: decoration01
	ThrowsParticle@debris01:
		Anim: debris01
		MinThrowRange: 1c115
		MaxThrowRange: 3c0
	ThrowsParticle@debris02:
		Anim: debris02
		MinThrowRange: 1c115
		MaxThrowRange: 2c0
	ThrowsParticle@debris03:
		Anim: debris03
		MinThrowRange: 2c115
		MaxThrowRange: 5c0
	ThrowsParticle@debris04:
		Anim: debris04

wind_trap.husk:
	Inherits: ^BuildingHusk
	RenderSprites:
		Image: wind_trap_husk.ordos
		FactionImages:
			atreides: wind_trap_husk.atreides
			harkonnen: wind_trap_husk.harkonnen
	Health:
		HP: 27000
	Building:
		Footprint: xx xx ==
		Dimensions: 2,3
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -1024, -1024
			BottomRight: 1024, 1024
	WithIdleOverlay@smoke:
		Image: smoke_big
		Sequence: loop
		StartSequence: start
		Palette: disabled
		IsDecoration: True
		Offset: 250, 0, 312
		RequiresCondition: decoration02 || decoration03
	WithIdleOverlay@fire:
		Image: fire_fromts
		Palette: effect
		Sequence: 1
		IsDecoration: True
		Offset: 2000, 0, 0
		RequiresCondition: decoration01 || decoration02
	WithIdleOverlay@fire2:
		Image: fire_slow
		StartSequence: 1
		Sequence: 2
		IsDecoration: True
		Offset: 0,-512,0
		RequiresCondition: decoration01 || decoration03

refinery_ruins:
	Inherits: ^BuildingHusk
	Building:
		Dimensions: 3,3
		Footprint: ___ ___ ___
		LocalCenterOffset: 0,-512,0
	WithIdleOverlay@smokeSmall:
		Image: smoke_m
		StartSequence: smokeFromRA01idle
		Sequence: smokeFromRA01loop
		IsDecoration: True
		Offset: 1024, 1500, 0
		Palette: huskPalette
		RequiresCondition: decoration01 ||  decoration02
	WithIdleOverlay@smokeCenter:
		Image: smoke_m
		StartSequence: smokeFromRA01idle
		Sequence: smokeFromRA01loop
		IsDecoration: True
		Offset: 0, 0, -1024
		Palette: huskPalette
		RequiresCondition: decoration03 || decoration02

refinery_ruins_inverted:
	Inherits: refinery_ruins
	Building:
		LocalCenterOffset: 0,512,0

refinery_husk.ordos:
	Inherits: ^BuildingHusk
	RenderSprites:
		Image: refinery_husk.ordos
	WithIdleOverlay@front:
		Sequence: idle-front
	WithIdleOverlay@top:
		Sequence: idle-top
	Building:
		Dimensions: 3,3
		Footprint: =xx x=x ___
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -512, -1024
			BottomRight: 1536, 0
	HitShape@BOTTOM:
		Type: Rectangle
			TopLeft: -1536, 0
			BottomRight: 512, 1024
	WithIdleOverlay@smoke:
		Image: smoke_big
		Sequence: loop
		StartSequence: start
		Palette: disabled
		IsDecoration: True
		Offset: 1400, 600, 0
		RequiresCondition: decoration01 || decoration02
	WithIdleOverlay@smoke2:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		StartSequence: smokLandFromRA_Open
		Palette: disabled
		IsDecoration: True
		Offset: -1024,-400,0
		RequiresCondition: decoration02 || decoration03
	WithIdleOverlay@fire2:
		Image: fire_slow
		StartSequence: 1
		Sequence: 2
		IsDecoration: True
		Offset: 0,-1024,0
		RequiresCondition: decoration01 || decoration03
	SpawnActorOnDeath@ruins:
		Actor: refinery_ruins

refinery_husk_inverted.ordos:
	Inherits: refinery_husk.ordos
	Building:
		Footprint: ___ =xx x=x
		LocalCenterOffset: 0,512,0
	SpawnActorOnDeath@ruins:
		Actor: refinery_ruins_inverted

refinery_husk.atreides:
	Inherits: ^BuildingHusk
	RenderSprites:
		Image: refinery_husk.atreides
	WithIdleOverlay@front:
		Sequence: idle-front
	WithIdleOverlay@top:
		Sequence: idle-top
	Building:
		Footprint: =xx xx= ===
		Dimensions: 3,3
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -512, -1024
			BottomRight: 1536, 0
	HitShape@BOTTOM:
		Type: Rectangle
			TopLeft: -1536, 0
			BottomRight: 512, 1024
	WithIdleOverlay@smoke:
		Image: smoke_big
		Sequence: loop
		StartSequence: start
		Palette: disabled
		IsDecoration: True
		Offset: -500,-700, 0
		RequiresCondition: decoration01 || decoration03
	WithIdleOverlay@smoke2:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		StartSequence: smokLandFromRA_Open
		Palette: disabled
		IsDecoration: True
		Offset: -800,-400,0
		RequiresCondition: decoration02 || decoration03
	WithIdleOverlay@fire2:
		Image: fire_slow
		StartSequence: 1
		Sequence: 2
		IsDecoration: True
		Offset: 1400, 600, 0
		RequiresCondition: decoration01 || decoration03  || decoration02
	SpawnActorOnDeath@ruins:
		Actor: refinery_ruins

refinery_husk_inverted.atreides:
	Inherits: refinery_husk.atreides
	Building:
		Footprint: ___ =xx x=x
		LocalCenterOffset: 0,512,0
	SpawnActorOnDeath@ruins:
		Actor: refinery_ruins_inverted

refinery_husk.harkonnen:
	Inherits: ^BuildingHusk
	RenderSprites:
		Image: refinery_husk.harkonnen
	WithIdleOverlay@front:
		Sequence: idle-front
	WithIdleOverlay@top:
		Sequence: idle-top
	Building:
		Footprint: =xx =x= =X=
		Dimensions: 3,3
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -512, -1024
			BottomRight: 1536, 0
	HitShape@BOTTOM:
		Type: Rectangle
			TopLeft: -1536, 0
			BottomRight: 512, 1024
	WithIdleOverlay@smokeLeft:
		Image: smoke_big
		Sequence: loop
		StartSequence: start
		Palette: disabled
		IsDecoration: True
		Offset: 1024, 1500, 500
		RequiresCondition: decoration01 || decoration02
	WithIdleOverlay@smoke2:
		Image: smoke_m
		Sequence: smokLandFromR_idle
		Palette: disabled
		IsDecoration: True
		Offset: -1024,-700,0
		RequiresCondition: decoration02 || decoration03 || decoration01
	WithIdleOverlay@smokeSmall:
		Image: smoke_m
		StartSequence: smokeFromRA01idle
		Sequence: smokeFromRA01loop
		IsDecoration: True
		Offset: 1024, 1500, 0
		Palette: huskPalette
		RequiresCondition: decoration01 || decoration03 || decoration02
	WithIdleOverlay@fire2:
		Image: fire_slow
		StartSequence: 1
		Sequence: 2
		IsDecoration: True
		Offset: 1024, 1000, 0
		RequiresCondition: decoration03  || decoration02
	SpawnActorOnDeath@ruins:
		Actor: refinery_ruins

refinery_husk_inverted.harkonnen:
	Inherits: refinery_husk.harkonnen
	Building:
		Footprint: ___ =xx x=x
		LocalCenterOffset: 0,512,0
	SpawnActorOnDeath@ruins:
		Actor: refinery_ruins_inverted
