Derbis:
	Inherits: Debris
	Warhead@1Dam: SpreadDamage
		AffectsParent: False

empty_shell01:
	ReloadDelay: 60
	Range: 6c0
	ValidTargets: Infantry, Vehicle, Building, Wall, Ground, Water, Air
	Projectile: Bullet
		Speed: 50, 70
		Inaccuracy: 1c512
		InaccuracyType: PerCellIncrement
		LaunchAngle: 91, 140
		Image: empty_shell01
		Shadow: true
	Warhead@effect: CreateEffect
		Explosions: empty_shell_frame_01


debris_vehicle01:
	Inherits: Debris2
	Projectile: Bullet
		Image: shrapnel_vehicle01
	Warhead: CreateEffect
		Explosions: tiny_explosion
		ImpactSoundChance: 50
		ImpactActors: false
		ImpactSounds: audio/new_DerbisHeavy01.wav, audio/new_DerbisHeavy02.wav, audio/new_derbisLight01.wav, audio/new_derbisHeavy_bounce02.wav

debris_vehicle02:
	Inherits: Debris3
	Projectile: Bullet
		Image: shrapnel_vehicle02
		BounceSound: audio/new_derbisLight_bounce01.wav
		BounceCount: 2
	Warhead: CreateEffect
		Explosions: tiny_explosion
		ImpactSoundChance: 50
		ImpactActors: false
		ImpactSounds: audio/new_DerbisHeavy01.wav, audio/new_DerbisHeavy02.wav, audio/new_derbisHeave_bounce01.wav, audio/new_derbisHeavy_bounce02.wav

debris_harvester_wheel01:
	Inherits: Debris3
	Projectile: Bullet
		Image: harvester_wheel01
		BounceCount: 2
	Warhead: CreateEffect
		Explosions: tiny_explosion
		ImpactSoundChance: 50
		ImpactActors: false
		ImpactSounds: audio/new_DerbisHeavy01.wav, audio/new_DerbisHeavy02.wav, audio/new_derbisHeave_bounce01.wav, audio/new_derbisHeavy_bounce02.wav

debris_harvester_wheel02:
	Inherits: Debris3
	Projectile: Bullet
		Image: harvester_wheel02
		BounceSound: audio/new_DerbisHeavy02.wav
		BounceCount: 1
		TrailImage: bazooka_trail2
		TrailInterval: 2
	Warhead: CreateEffect
		Explosions: tiny_explosion
		ImpactSoundChance: 50
		ImpactActors: false
		ImpactSounds: audio/new_DerbisHeavy01.wav, audio/new_DerbisHeavy02.wav, audio/new_derbisLight01.wav, audio/new_Cliff_Destroyed.wav


^derbis.turret:
	ReloadDelay: 60
	Range: 0c512
	Projectile: Bullet
		Image: siege_turret_husk_anim
		Speed: 50, 70
		Inaccuracy: 200
		Blockable: true
		LaunchAngle: 40, 150
		BounceCount: 2
		Shadow: true
		BounceRangeModifier: 20
		BounceSound: audio/new_DerbisHeavy02.wav
	Warhead: CreateEffect
		Explosions: tiny_explosion
		ImpactSoundChance: 50
		ImpactActors: false
		ImpactSounds: audio/new_DerbisHeavy01.wav, audio/new_DerbisHeavy02.wav, audio/new_derbisLight01.wav
	Warhead@dmg: SpreadDamage
		Damage: 4000
		Spread: 500
		Falloff: 100, 0
		Versus:
			none: 100
			wall: 10
			building: 10
			wood: 10
			light: 20
			heavy: 5
			invulnerable: 5
			cy: 5
			harvester: 5
		DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath

derbisSiegetank.turret:
	Inherits: ^derbis.turret
	Warhead: CreateEffect
		Explosions: siege_turret_frame01, siege_turret_frame02, siege_turret_frame03, siege_turret_frame04, siege_turret_frame05

debris_turret.atreides:
	Inherits: ^derbis.turret
	Projectile: Bullet
		Image: tank_turrethusk_anim.atreides
	Warhead: CreateEffect
		Explosions: atreidis_turret_frame01, atreidis_turret_frame02, atreidis_turret_frame03, atreidis_turret_frame04

debris_turret01.atreides:
	Inherits: debris_turret.atreides
	Projectile: Bullet
		Image: tank_turrethusk_anim01.atreides

debris_turret.harkonnen:
	Inherits: ^derbis.turret
	Projectile: Bullet
		Image: tank_turrethusk_anim.harkonnen
	Warhead: CreateEffect
		Explosions: harkonnen_turret_frame01, harkonnen_turret_frame02, harkonnen_turret_frame03, harkonnen_turret_frame04

debris_turret01.harkonnen:
	Inherits: debris_turret.harkonnen
	Projectile: Bullet
		Image: tank_turrethusk_anim01.harkonnen

debris_turret.ordos:
	Inherits: ^derbis.turret
	Projectile: Bullet
		Image: tank_turrethusk_anim.ordos
	Warhead: CreateEffect
		Explosions: ordos_turret_frame01, ordos_turret_frame02, ordos_turret_frame03, ordos_turret_frame04

derbisRock01:
	Inherits: Debris
	Projectile: Bullet
	Warhead@3Eff: CreateEffect
		Explosions: tiny_explosion
		ImpactActors: false
		ImpactSoundChance: 20
		ImpactSounds: audio/new_derbisRock01.wav, audio/new_derbisRock02.wav, audio/new_derbisLight01.wav, audio/new_DerbisHeavy01.wav, audio/new_DerbisHeavy02.wav

derbisRock02:
	Inherits: Debris2
	Projectile: Bullet
		Image: shrapnel_rock02
		-TrailImage:
		Speed: 64, 90
		LaunchAngle: 20, 60
	Warhead@3Eff: CreateEffect
		Explosions: tiny_explosion
		ImpactActors: false
		ImpactSoundChance: 30
		ImpactSounds: audio/new_derbisRock01.wav, audio/new_derbisRock02.wav, audio/new_derbisRock03.wav

derbisRock03:
	Inherits: Debris3
	Projectile: Bullet
		Image: shrapnel_rock01
		BounceSound: audio/new_derbisRock02.wav
		Speed: 40, 70
		LaunchAngle: 40, 110
		-TrailImage:
	Warhead@3Eff: CreateEffect
		Explosions: tiny_explosion
		ImpactActors: false
		ImpactSoundChance: 20
		ImpactSounds: audio/new_derbisRock01.wav, audio/new_derbisRock03.wav



UnitExplodeMed:
	Warhead@2Eff: CreateEffect
		ImpactSounds: audio/new_DerbisHeavy01.wav, audio/EBoD_MortarExplosion.wav, EXPLSML2.WAV
		ImpactSoundChance: 20
		Delay: 10
		ImpactActors: false
	Warhead@explosiondmg: SpreadDamage
		Damage: 1000
		Falloff: 100, 80
		DamageTypes: TriggerProne, SmallExplosionDeath
		DamageCalculationType: ClosestTargetablePosition
		Spread: 1c002
			none: 100
			wall: 20
			building: 20
			wood: 50
			light: 50
			heavy: 20
			concrete: 100
			invulnerable: 20
			cy: 20
			harvester: 30

BuildingExplode:
	Warhead@1Eff: CreateEffect
		Explosions: building
		ImpactActors: false
		Delay: 0
	Warhead@Smudges: LeaveSmudge
		SmudgeType: Building_smudge
		Size: 2,2

cliffExplode01:
	Warhead@1Eff: CreateEffect
		Explosions: building
		ImpactActors: false
		Delay: 0
		ImpactSounds: audio/new_Cliff_Destroyed.wav
	Warhead@rockAvalanche: GrantExternalCondition
		Condition: rock_avalanche
		Range: 1c500

buildingExplosions02:
	Warhead@2Eff: CreateEffect
		Explosions: self_destruct
		ImpactActors: false
		ImpactSounds: EXPLSML1.WAV
		Delay: 10
		Inaccuracy: 0c512
	Warhead@3Eff: CreateEffect
		Explosions: large_explosion
		ImpactActors: false
		ImpactSounds: audio/ExplosionBuildingLightResonance01.wav
		Delay: 10
		Inaccuracy: 1c0

buildingExplosions03:
	Warhead@4Eff: CreateEffect
		Explosions: building, self_destruct, large_explosion
		ImpactActors: false
		ImpactSounds: audio/new_DerbisBigExplosion01.wav
		ImpactSoundChance: 60
		Inaccuracy: 1c512
		Delay: 10

buildingExplosions04_big:
	Warhead@4Eff: CreateEffect
		Explosions: building, self_destruct, large_explosion
		ImpactActors: false
		ImpactSounds: audio/bigxplosion17.wav
		Inaccuracy: 1c512
		Delay: 0

buildingExplosions05:
	Warhead@3Eff: CreateEffect
		Explosions: building
		ImpactActors: false
		ImpactSounds: audio/explosion_large_2.wav
		Inaccuracy: 1c512
		Delay: 10

buildingBigExplosion:
	Inherits: PlasmaExplosion
	Warhead@1Dam: SpreadDamage
		Spread: 1c500
		Damage: 5000
		Falloff: 100, 50
		ValidRelationships: Neutral, Enemy, Ally
	Warhead@flash: FlashEffect
		FlashType: flash
		Duration: 20
	Warhead@concrete: DamagesConcrete
		Damage: 10000
		AffectsParent: true
	-Warhead@3Smu:
	-Warhead@4Smu:

huskExplode01:
	Warhead@1Eff: CreateEffect
		Explosions: building, self_destruct
		ImpactSounds: EXPLHG2.WAV , audio/EBoD_MortarExplosion.wav, EXPLSML1.WAV
		ImpactActors: false
		ImpactSoundChance: 70


ExplosionWithDamege_large:
	Inherits: UnitExplodeLarge
	Warhead@dmg: SpreadDamage
		Damage: 2500
		Spread: 1c512
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath

ExplosionAircraft:
	Warhead@sound: CreateEffect
		Explosions: building
		ImpactSounds: EXPLLG3.WAV
		Inaccuracy: 1c0
	Warhead@eff: CreateEffect
		Explosions: large_explosion
		ImpactSounds: audio/bigxplosion17.wav
		ImpactActors: false
		Delay: 10
	Warhead@areadmg: TargetDamage
		Spread: 1c512
		Damage: 7500
		DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
		Versus:
			none: 100
			light: 70
			heavy: 60
			building: 90
			harvester: 50
			wood: 100
			wall: 80
			invulnerable: 60
			cy: 80

ExplosionFrigate:
	Inherits: ExplosionAircraft
	Warhead@eff: CreateEffect
		Explosions: large_explosion
		ImpactSounds: audio/explosion_large_2.wav
		ImpactActors: false
		Delay: 10
	Warhead@areadmg: SpreadDamage
		Spread: 2c0
		Damage: 25000
		Falloff: 100 , 10
		DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
		Versus:
			none: 100
			light: 70
			heavy: 60
			building: 90
			harvester: 50
			wood: 100
			wall: 80
			invulnerable: 60
			cy: 80

worm_explode:
	Warhead@3Eff: CreateEffect
		Explosions: worm_explode
		ImpactSounds: WORM.WAV
	Warhead@4Eff: CreateEffect
		Explosions: worm_explode_smoke
	Warhead@rockAvalanche: GrantExternalCondition
		Condition: rock_avalanche
		Range: 0c002

worm_disapier:
	Warhead@eff: CreateEffect
		Explosions: wormdisapier

WormJaw:
	ReloadDelay: 10
	InvalidTargets: Structure, Infantry, ^SpriteActor
	Range: 1c512
	Warhead@NeededForTargeting: TargetDamage
		InvalidTargets: Structure, Infantry, ^SpriteActor

chaosambiencesounds:
	ReloadDelay: 20
	InvalidTargets: Structure
	Range: 3c512
	Projectile: Bullet
	Warhead@NeededForTargeting: TargetDamage
		InvalidTargets: Structure
	Warhead@sounds: CreateEffect
		ImpactSoundChance: 5
		ImpactSounds: audio/EBoD_normal_dying_3.wav audio/burn_dying_6.wav, audio/burn_dying_6.wav, audio/burn_dying_1.wav

flamer_explosion_big:
	Warhead@damagedarea1: SpreadDamage
		Spread: 1c600
		Falloff: 100, 25
		Damage: 7000
		Versus:
			none: 100
			wall: 15
			building: 30
			wood: 100
			light: 100
			heavy: 15
			invulnerable: 15
			cy: 15
			harvester: 45
		DamageTypes: FireDeath
	Warhead@effec1: CreateEffect
		Explosions: napalm_big
		ExplosionPalette: temperat
		ImpactSounds: NAPALM1.WAV
	Warhead@4Concrete: DamagesConcrete
		Damage: 700
	Warhead@spiceburner: DestroyResource
		Delay: 5
		Size: 0,0
	Warhead@Condition: GrantExternalCondition
		Condition: burning
		Duration: 50
		Range: 1c600

flamer_explosion_small:
	Warhead@damagedarea1: SpreadDamage
		Delay: 5
		Spread: 640
		Damage: 1400
		Falloff: 100, 25
		Versus:
			none: 100
			wall: 15
			building: 30
			wood: 100
			light: 100
			heavy: 15
			invulnerable: 15
			cy: 15
			harvester: 45
		DamageTypes: Prone50Percent, TriggerProne, FireDeath
	Warhead@effec1: CreateEffect
		Delay: 5
		Explosions: napalm_big
		ExplosionPalette: temperat
		ImpactSounds: FLAMER1.WAV, audio/flamethrower.wav
		ImpactSoundChance: 50
	Warhead@4Concrete: DamagesConcrete
		Damage: 280
	Warhead@spiceburner: DestroyResource
		Delay: 5
		Size: 0,0
	Warhead@Condition: GrantExternalCondition
		Condition: burning
		Duration: 50
		Range: 640

flamer_explosion_small02:
	Inherits: flamer_explosion_small
	Warhead@damagedarea1: SpreadDamage
		Delay: 10
	Warhead@effec1: CreateEffect
		Delay: 10

flamer_explosion_small03:
	Inherits: flamer_explosion_small
	Warhead@damagedarea1: SpreadDamage
		Delay: 15
	Warhead@effec1: CreateEffect
		Delay: 15
