Debris:
	ReloadDelay: 60
	Range: 2c768
	Projectile: Bullet
		Speed: 32, 64
		LaunchAngle: 64, 128
		Inaccuracy: 192
		Image: shrapnel
		Shadow: true
		BounceCount: 2
		BounceRangeModifier: 4
		Blockable: false
	Warhead@1Dam: SpreadDamage
		AffectsParent: False
		Damage: 1500
		Spread: 500
		Falloff: 100, 0
		Versus:
			none: 25
			wall: 50
			building: 50
			wood: 100
			light: 100
			heavy: 75
			concrete: 100
			invulnerable: 75
			cy: 75
			harvester: 50

Debris2:
	Inherits: Debris
	Projectile: Bullet
		Image: shrapnel2
		TrailImage: small_trail
		TrailInterval: 1
	Warhead@1Dam: SpreadDamage
		Damage: 2500
		Spread: 1c0
		Versus:
			none: 100
			wall: 10
			building: 60
			wood: 80
			light: 40
			heavy: 30
			concrete: 80
			invulnerable: 30
			cy: 30
			harvester: 20
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
	Warhead@4Concrete: DamagesConcrete
		Damage: 2500

DerbisSiegetank:
	Inherits: Debris2
	Projectile: Bullet
		Speed: 48, 64
		Inaccuracy: 256
	Warhead@1Dam: SpreadDamage
		Damage: 2850
		Spread: 1c0
		Versus:
			none: 100
			wall: 60
			building: 60
			wood: 80
			light: 40
			heavy: 20
			invulnerable: 20
			cy: 20
			harvester: 20
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
	Warhead@3Eff: CreateEffect
		Explosions: med_explosion
		ImpactSounds: EXPLMD2.WAV

DerbisMissile:
	Inherits: ^Missile
	-Report:
	Projectile: Missile
		HorizontalRateOfTurn: 20
		VerticalRateOfTurn: 20
		MinimumLaunchAngle: 120
		MaximumLaunchAngle: 240
		CruiseAltitude: 0
		ExplodeWhenEmpty: true
		Speed: 288
		RangeLimit: 6c512

empty_shell01:
	ReloadDelay: 60
	Range: 6c0
	ValidTargets: Infantry, Vehicle, Building, Wall, Ground, Water, Air
	Projectile: Bullet
		Speed: 48, 72
		Inaccuracy: 512
		InaccuracyType: PerCellIncrement
		LaunchAngle: 80, 120
		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: 48, 72
		Inaccuracy: 128
		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: 20
			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: 25
		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, 88
		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, 72
		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: 25
		Delay: 10
		ImpactActors: false
	Warhead@explosiondmg: SpreadDamage
		Damage: 1000
		Falloff: 100, 80
		DamageTypes: TriggerProne, SmallExplosionDeath
		DamageCalculationType: ClosestTargetablePosition
		Spread: 1c0
			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: 1c024

buildingExplosions03:
	Warhead@4Eff: CreateEffect
		Explosions: building, self_destruct, large_explosion
		ImpactActors: false
		ImpactSounds: audio/new_DerbisBigExplosion01.wav
		ImpactSoundChance: 50
		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

SaboteurSmallExplosion:
	Inherits: PlasmaSaboteur
	Warhead@1Dam: SpreadDamage
		Spread: 2c240
		Delay: 1
		Damage: 15275
		Falloff: 100, 0
	Warhead@flash: FlashEffect
		FlashType: flash
		Duration: 25
	Warhead@concrete: DamagesConcrete
		Damage: 12200
		AffectsParent: true
	Warhead@5Shake: ShakeScreen
		Duration: 5
		Intensity: 5
		Multiplier: 1,1
	Warhead@6ResorceKill: DestroyResource
		Delay: 1
		Size: 1,0
	-Warhead@SmugleUnder3:
	-Warhead@3Smu:
	-Warhead@4Smu:

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

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

ExplosionAircraft:
	Warhead@sound: CreateEffect
		Explosions: building
		ImpactSounds: EXPLLG3.WAV
		Inaccuracy: 1c024
	Warhead@eff: CreateEffect
		Explosions: large_explosion
		ImpactSounds: audio/bigxplosion17.wav
		ImpactActors: false
		Delay: 10
	Warhead@areadmg: TargetDamage
		Spread: 1c5
		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

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

flamer_explosion_small:
	Warhead@damagedarea1: SpreadDamage
		Delay: 5
		Spread: 960
		Damage: 2155
		Falloff: 100, 25
		Versus:
			none: 100
			wall: 20
			building: 30
			wood: 100
			light: 100
			heavy: 20
			invulnerable: 20
			cy: 20
			harvester: 50
		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: 430
	Warhead@spiceburner: DestroyResource
		Delay: 5
		Size: 0,0
	Warhead@Condition: GrantExternalCondition
		Condition: burning
		Duration: 50
		Range: 960

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

flamer_explosion_small04:
	Inherits: flamer_explosion_small
	Warhead@damagedarea1: SpreadDamage
		Delay: 20
	Warhead@effec1: CreateEffect
		Delay: 20

flamer_explosion_small05:
	Inherits: flamer_explosion_small
	Warhead@damagedarea1: SpreadDamage
		Delay: 25
		Spread: 960
		Damage: 1400
	Warhead@effec1: CreateEffect
		Delay: 25
		Explosions: napalm_small
		ImpactSoundChance: 25
	Warhead@4Concrete: DamagesConcrete
		Damage: 280
	Warhead@Condition: GrantExternalCondition
		Condition: burning
		Duration: 50
		Range: 624

CrateExplosion:
	Warhead@1Dam: SpreadDamage
		Damage: 12500
		Spread: 0c498
		Falloff: 100, 0
		Versus:
			none: 100
			wall: 100
			building: 100
			wood: 100
			light: 100
			heavy: 100
			invulnerable: 100
			cy: 100
			harvester: 100
		AffectsParent: true
		DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
		DamageCalculationType: HitShape
	Warhead@2Eff: CreateEffect
		Explosions: large_explosion
		ImpactSounds: EXPLSML4.WAV
		ImpactActors: false
	Warhead@2Concrete: DamagesConcrete
		Damage: 12500
