#
#in MP saudarkars use M_LMG_H and M_HMG_H insted without H
# Armament@something are basicly 2 more weapons, they shoot at same time.
# @muzzle is just barrel effect. No damage.
# Warhead@3Concrete damage only to concrete
# Warhead@3Eff: probably just sprites
#DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath - effects sprite triggers for units which are attacked 
#CruiseAltitude: how far can missle follow ?

^MG:
	ReloadDelay: 36
	Range: 3c0
	Report: MGUN2.WAV
	Projectile: InstantHit
		Inaccuracy: 128
		InaccuracyType: PerCellIncrement
		Blockable: true
	Warhead@1Dam: SpreadDamage
		Damage: 1500
		Spread: 480
		Falloff: 100, 0
		Versus:
			wall: 10
			building: 30
			buildingWeak: 40
			wood: 50
			light: 35
			heavy: 10
			invulnerable: 0
			cy: 10
			harvester: 25
		DamageTypes: Prone50Percent, TriggerProne, BulletDeath
		DamageCalculationType: ClosestTargetablePosition
	Warhead@2Eff: CreateEffect
		Explosions: piffs
		ImpactActors: false
	Warhead@3Concrete: DamagesConcrete
		Damage: 1250
	Warhead@test: LeaveSmudge #still didnt work fuck
		SmudgeType: Building
		InvalidTargets: Vehicle, Structure

LMG:
	Inherits: ^MG

Fremen_S:
	Inherits: ^MG
	ReloadDelay: 48
	Report: FREMODD1.WAV
	Warhead@2Eff: CreateEffect
		Explosions: small_explosion

M_LMG:
	Inherits: ^MG
	ReloadDelay: 48
	ValidTargets: Infantry

M_LMG_H:
	Inherits: M_LMG # Saudarkars vs infatry weapon
	ReloadDelay: 45

M_HMG:
	Inherits: ^MG
	ReloadDelay: 48
	Range: 3c512
	Report: 20MMGUN1.WAV
	InvalidTargets: Infantry
	Warhead@1Dam: SpreadDamage
		Damage: 2800
		Spread: 512
		Versus:
			none: 25
			wall: 60
			building: 50
			buildingWeak: 60
			wood: 65
			light: 60
			heavy: 70
			invulnerable: 0
			cy: 20
			harvester: 50
	Warhead@3Concrete: DamagesConcrete
		Damage: 625

M_HMG_H:
	Inherits: M_HMG # Saudarkars vs Vehicles weapon
	ReloadDelay: 55

Fremen_L:
	Inherits: M_HMG
	Report: BAZOOK2.WAV
	Warhead@1Dam: SpreadDamage
		DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
	Warhead@2Eff: CreateEffect
		Explosions: small_explosion

HMG:
	Inherits: ^MG
	ReloadDelay: 24
	Range: 3c200
	Report: 20MMGUN1.WAV
	Projectile: InstantHit
		Inaccuracy: 135
	Warhead@1Dam: SpreadDamage
		Damage: 2160
		Spread: 700
		Versus:
			wall: 10
			none: 120
			building: 30
			buildingWeak: 40
			wood: 60
			light: 30
			heavy: 10
			invulnerable: 0
			cy: 10
			harvester: 25
	Warhead@3Concrete: DamagesConcrete
		Damage: 1800

HMGo:
	Inherits: HMG
	ReloadDelay: 21

HMG_muzzle:
	ReloadDelay: 20 #sprite effect only

HMGo_muzzle:
	ReloadDelay: 17 #sprite effect only ordos raider


110mm_Gun:
	Inherits: ^Cannon
	ReloadDelay: 150
	Burst: 5
	BurstDelays: 15
	Range: 6c0
	Report: TURRET1.WAV
	Projectile: Bullet
		Speed: 875
		Blockable: false
		InaccuracyType: Absolute
	Warhead@1Dam: SpreadDamage
		Damage: 3510
		Versus:
			none: 80
			wall: 50
			light: 60
			building: 60
			wood: 80
			heavy: 30
			invulnerable: 0
			cy: 20
			harvester: 50

^Cannon:
	ReloadDelay: 60
	Range: 4c112
	Report: MEDTANK1.WAV
	Projectile: Bullet
		Speed: 562
		Inaccuracy: 128
		InaccuracyType: PerCellIncrement
	Warhead@1Dam: SpreadDamage
		Damage: 3510 #10% more that others
		Spread: 512
		Falloff: 100, 0
		Versus:
			none: 20
			wall: 50
			building: 60
			buildingWeak: 70
			wood: 80
			heavy: 80
			invulnerable: 0
			cy: 20
			harvester: 50
		DamageCalculationType: ClosestTargetablePosition

80mm_A:
	Inherits: ^Cannon
	Projectile: Bullet
		Inaccuracy: 105
	Range: 5c112

80mm_H:
	Inherits: ^Cannon
	ReloadDelay: 66

80mm_O:
	Range: 4c0
	Inherits: ^Cannon
	ReloadDelay: 54

155mm:
	Inherits: ^Cannon
	ReloadDelay: 105
	Range: 8c256
	MinRange: 2c852
	Projectile: Bullet
		Inaccuracy: 200 #changed param
		Speed: 192
		LaunchAngle: 85
		ContrailLength: 10
	Warhead@1Dam: SpreadDamage
		Damage: 5200
		Spread: 0c512
		Falloff: 100, 60, 30, 10, 0
		Versus:
			none: 125
			wall: 100
			building: 100
			buildingWeak: 110
			wood: 70
			light: 50
			heavy: 20
			invulnerable: 0
			cy: 60
			harvester: 50
		DamageTypes: ExplosionDeath, Prone50Percent
	Warhead@triggerProne: TargetDamage
		Damage: 1
		Spread: 1c512
		DamageTypes: TriggerProne, ExplosionDeath
	Warhead@2Smu: LeaveSmudge
		SmudgeType: SandCrater, RockCrater
DevBullet:
	Range: 4c112
	ReloadDelay: 80
		Speed: 281
	Warhead@1Dam: SpreadDamage
		Damage: 7800
		Spread: 1c112
		Versus:
			none: 80
			wall: 100
			building: 80
			buildingWeak: 80
			wood: 100
			heavy: 100
			invulnerable: 0
			cy: 50
			harvester: 100

^Rocket:
	ReloadDelay: 55
	Range: 3c256
	Report: ROCKET1.WAV
	Projectile: Bullet
		Blockable: true
		Speed: 310
		Inaccuracy: 128
	Warhead@1Dam: SpreadDamage
		Damage: 3600
		Spread: 600
		Falloff: 100, 0
		Versus:
			none: 8
			wall: 50
			building: 40
			buildingWeak: 50
			wood: 45
			light: 70
			heavy: 100
			invulnerable: 0
			cy: 20
			harvester: 70

Bazooka:
	Inherits: ^Rocket
	Warhead@1Dam: SpreadDamage
		Damage: 3600

Rocket:
	Inherits: ^Rocket
	ReloadDelay: 50
	Burst: 2
	BurstDelays: 10
	Range: 4c0
	Projectile: Bullet
		Speed: 350
		Inaccuracy: 150
	Warhead@1Dam: SpreadDamage
		Damage: 3000 # more dmg more cost and building time
		Spread: 600
		Versus:
			none: 25
			wall: 60
			building: 50 #0.3 decrease
			buildingWeak: 60
			wood: 65
			light: 90
			heavy: 50
			invulnerable: 0
			cy: 20
			harvester: 60

^Missile:
	Inherits: ^Rocket
	ReloadDelay: 72
	Range: 8c512
	MinRange: 0c512
	Projectile: Missile
		Inaccuracy: 150
		InaccuracyType: Absolute 
		HorizontalRateOfTurn: 22
		RangeLimit: 9c614
		CruiseAltitude: 1c0
		Blockable: false
		MinimumLaunchAngle: 64
		VerticalRateOfTurn: 30
		Speed: 288
	Warhead@1Dam: SpreadDamage
		Damage: 3240
		Spread: 645
		Falloff: 100, 10
		Versus:
			none: 13
			wall: 75
			building: 60
			buildingWeak: 70
			wood: 65
			light: 85
			heavy: 100
			invulnerable: 0
			cy: 30
			harvester: 60
mtank_pri:
	Inherits: ^Missile
	ReloadDelay: 145
	Burst: 2
	BurstDelays: 30
	Range: 8c0
	MinRange: 1c512
	ValidTargets: Ground, Air
	Projectile: Missile
		RangeLimit: 10c204
	Warhead@1Dam: SpreadDamage
		Damage: 5300
		ValidTargets: Ground, Air

MissleTowerNew:
	Inherits: mtank_pri
	Range: 7c512
	MinRange: 0c512
	Projectile: Missile
		VerticalRateOfTurn: 40
	-MinRange:


DeviatorMissile:
	Inherits: ^Missile
	ReloadDelay: 192
	Range: 5c980
	Projectile: Missile
		RangeLimit: 6c512
		Inaccuracy: 96
	Warhead@1Dam: SpreadDamage
		Damage: 2000
		Spread: 480
		Versus:
			none: 100
			wall: 100
			building: 100
			buildingWeak: 115
			wood: 100
			light: 100
			heavy: 100
			invulnerable: 0
			cy: 50
			harvester: 100
	Warhead@5OwnerChange: ChangeOwner
		Range: 512
		Duration: 300
		InvalidTargets: Infantry, Structure
	Warhead@Trigger: GrantExternalCondition
		Condition: unitCapturated
		Duration: 300

DeviatorGas:	
	Warhead@5OwnerChange: ChangeOwner
		Range: 2c0
		Duration: 160
		InvalidTargets: Infantry, Structure
	Warhead@3Eff: CreateEffect
		Explosions: deviator
		ExplosionPalette: deviatorgas	
		UsePlayerPalette: true




Sound:
	ReloadDelay: 100
	Range: 6c0
	Report: SONIC1.WAV
	Projectile: AreaBeam
		Speed: 0c856
		Inaccuracy: 128
		InaccuracyType: PerCellIncrement
		Duration: 6 # Has a length of 1c512
		DamageInterval: 2 # 3 hits 4 at FallOff edges
		Width: 0c650
		Shape: Flat
		Falloff: 10, 100, 100, 30, 0
		Range: 0,  4c0, 5c512, 10c0
		BeyondTargetRange: 1c0
		Color: 00FFFFC8
	Warhead@1Dam: SpreadDamage
		Range: 0, 32
		Falloff: 100, 100
		Damage: 1032
		AffectsParent: false
		ValidRelationships: Neutral, Enemy
		Versus:
			none: 200
			wall: 140
			building: 120
			buildingWeak: 130
			wood: 110
			light: 130
			heavy: 60
			invulnerable: 0
			cy: 90
			harvester: 130
		DamageTypes: Prone50Percent, TriggerProne, SoundDeath
	Warhead@2Dam: SpreadDamage
		Range: 0, 32
		Falloff: 100, 100
		Damage: 1032
		AffectsParent: false
		ValidRelationships:  Ally
		Versus:
			none: 180
			wall: 140
			building: 120
			buildingWeak: 130
			wood: 110
			light: 130
			heavy: 60
			invulnerable: 0
			cy: 90
			harvester: 130
	Warhead@3Concrete: DamagesConcrete
		Damage: 1720

OrniBomb:
	ReloadDelay: 25
	Burst: 5
	BurstDelays: 6
	Range: 3c0
	Report: OrniBomb01.wav
	Projectile: GravityBomb
		Image: BOMBS
		Velocity: 0, 0, -64
		Acceleration: 0, 0, 0
		Shadow: true
	Warhead@1Dam: SpreadDamage
		Damage: 9000 #400 in original, reduce when bombers can do multiple passes
		Spread: 2c0
		Falloff: 100, 0
		Versus:
			none: 30
			wall: 170
			building: 80
			buildingWeak: 100
			wood: 100
			light: 110
			heavy: 120
			invulnerable: 0
			cy: 30
			harvester: 60

DeathHand:
	Warhead@Cluster: FireCluster
		Weapon: DeathHandCluster
		RandomClusterCount: 36
		Dimensions: 6,6
		Footprint: xXxXxX xxXXxx xXXXXx xxXXxx xXxxXx XxXxXx
	Warhead@2Eff: CreateEffect
		Explosions: nuke
		ImpactSounds: bigexplosion01.wav
		ImpactActors: false
	Warhead@Shake: ShakeScreen
		Duration: 20
		Intensity: 5
		Multiplier: 1,1

DeathHandCluster:
	Inherits: Debris2
	Range: 7c0
	Report: bigexplosion01.wav
	Projectile: Bullet
		Image: 120mm
		Speed: 96
		LaunchAngle: 0, 32
		Inaccuracy: 1c512
		BounceCount: 0
	Warhead@1Dam: SpreadDamage
		Damage: 8000
		Spread: 1c700
		Versus:
			none: 120
			wall: 170
			building: 60
			buildingWeak: 80
			wood: 100
			light: 70
			heavy: 30
			invulnerable: 0
			cy: 25
			harvester: 60
	Warhead@3Eff: CreateEffect
		Explosions: large_explosion
		ImpactSounds: EXPLSML4.WAV, EXPLSML1.WAV, EXPLSML2.WAV

grenade:
	ReloadDelay: 65
	Range: 4c0
	Projectile: Bullet
		Speed: 160
		Blockable: false
		LaunchAngle: 128
		Inaccuracy: 128
		InaccuracyType: PerCellIncrement
		Image: grenade
		Shadow: true
	Warhead@1Dam: SpreadDamage
		Damage: 1700
		Spread: 1c0
		Falloff: 100, 0
		Versus:
			none: 125
			building: 60
			buildingWeak: 80
			wall: 50
			wood: 70
			light: 40
			heavy: 20
			invulnerable: 0
			cy: 30
			harvester: 30

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

DeathHandClusterDebris:
	Inherits: Debris2
	Range: 7c0
	Projectile: Bullet
		Image: 120mm
		TrailImage: small_trail2
		Speed: 50, 70
		LaunchAngle: 150, 220
		Inaccuracy: 2c512
		BounceCount: 1
		ContrailLength: 0
	Warhead@1Dam: SpreadDamage
		Damage: 4000
		Spread: 1c562
		Versus:
			none: 150
			wall: 80
			building: 100
			buildingWeak: 100
			wood: 150
			light: 130
			heavy: 80
			invulnerable: 0
			cy: 80
			harvester: 100
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
		DamageCalculationType: ClosestTargetablePosition
	Warhead@2Smu: LeaveSmudge
		SmudgeType: SandCrater, RockCrater
		InvalidTargets: Vehicle, Structure
	Warhead@3Eff: CreateEffect
		Explosions: large_explosion, building, wall_explosion
		ImpactSounds: EXPLSML4.WAV
	Warhead@4Concrete: DamagesConcrete
		Damage: 4500

DerbisDeviator:
	Inherits: Debris2
	Warhead@3Eff: CreateEffect
		Explosions: deviator
		ExplosionPalette: deviatorgas
		UsePlayerPalette: true
	Warhead@5OwnerChange: ChangeOwner
		Range: 1c0
		Duration: 120

DerbisDeviator_big:
	Projectile: Bullet
		Speed: 32, 64
		Blockable: false
		LaunchAngle: 20, 60
		Inaccuracy: 0
		BounceCount: 0
	Inherits: DerbisDeviator
		Warhead@5OwnerChange: ChangeOwner
		Range: 2c512
		Duration: 150

Derbis:
	Warhead@1Dam: SpreadDamage
		AffectsParent: False

DerbisSiegetank:
	Inherits: Debris2
	Projectile: Bullet
		Speed: 40, 60
		Inaccuracy: 3c256
	Warhead@1Dam: SpreadDamage
		Damage: 2500
		Spread: 1c512
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
	Warhead@3Eff: CreateEffect
		Explosions: med_explosion
		ImpactSounds: EXPLMD2.WAV

DerbisMissile:
	Inherits: ^Missile
	-Report:
	Projectile: Missile
		HorizontalRateOfTurn: 20
		MinimumLaunchAngle: 120
		MaximumLaunchAngle: 250
		VerticalRateOfTurn: 20
		CruiseAltitude: 0
		ExplodeWhenEmpty: false
		Speed: 250
	Warhead@1Dam: SpreadDamage
		Spread: 1c0

PlasmaExplosion:
	Warhead@1Dam: SpreadDamage
		Damage: 20000
		Spread: 6c0
		Falloff: 100, 20
		ValidRelationships: Neutral, Enemy
		Versus:
			None: 100
			Wood: 100
			Light: 100
			Heavy: 100
			invulnerable: 0
			Concrete: 60
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
		DamageCalculationType: ClosestTargetablePosition
	Warhead@2Dam: SpreadDamage
		Damage: 20000
		Spread: 6c0
		Falloff: 100, 20
		ValidRelationships: Ally
		Versus:
			None: 100
			Wood: 100
			Light: 100
			Heavy: 100
			invulnerable: 0
			Concrete: 60
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
		DamageCalculationType: ClosestTargetablePosition
	Warhead@2Smu: LeaveSmudge
		SmudgeType: SandCrater, RockCrater
		Size: 3,3
		Chance: 100
	Warhead@SmugleUnder1: LeaveSmudge
		SmudgeType: SandCrater, RockCrater
		Size: 1,1
		Chance: 100
	Warhead@SmugleUnder2: LeaveSmudge
		SmudgeType: SandCrater, RockCrater
		Size: 2,2
		Chance: 80
	Warhead@SmugleUnder3: LeaveSmudge
		SmudgeType: SSandCrater, RockCrater
		Size: 4,4
		Chance: 90
	Warhead@3Smu: LeaveSmudge
		SmudgeType: SandCrater, RockCrater
		Size: 5,5
		Delay: 3
		Chance: 90
	Warhead@4Smu: LeaveSmudge
		SmudgeType: SandCrater, RockCrater
		Size: 6,6
		Delay: 6
		Chance: 80
	Warhead@3Eff: CreateEffect
		Explosions: devastator
		ImpactSounds: EXPLMD1.WAV
	Warhead@soundEff4: CreateEffect
		ImpactSounds: new_DeathHandnew.wav, bigxplosion02.wav
		Delay: 0
	Warhead@4Concrete: DamagesConcrete
		Damage: 20000
	Warhead@5Shake: ShakeScreen
		Duration: 15
		Intensity:10
		Multiplier: 2,2
	Warhead@6ResorceKill: DestroyResource
		Size: 6

PlasmaSaboteur:
	Inherits: PlasmaExplosion
	Warhead@1Dam: SpreadDamage
		Spread: 3c0
		Damage: 20000
		Falloff: 100, 50, 20
		ValidRelationships: Neutral, Enemy, Ally
	Warhead@additionalinfantrydmg: SpreadDamage
		Spread: 6c512
		Damage: 10000
		Delay: 5
		Falloff: 100, 20
		Versus:
			none: 100
			building: 0
			buildingWeak: 0
			wall: 10
			wood: 20
			light: 30
			heavy: 10
			invulnerable: 0
			cy: 0
			harvester: 0
	Warhead@Sound: CreateEffect
		ImpactSounds: EXPLMD1.WAV
	-Warhead@2Dam:
	Warhead@6ResorceKill: DestroyResource
		Size: 6

HarvesterSpiceExplosion:
	Projectile: Bullet
		Speed: 40, 65
		Blockable: false
		LaunchAngle: 60, 90
		TrailImage: large_trail
		Image: 120mm
	Warhead@1Dam: SpreadDamage
		Damage: 750
		Spread: 1c0
		Falloff: 100, 0
		Versus:
			none: 90
			wall: 5
			building: 65
			buildingWeak: 70
			wood: 50
			light: 40
			heavy: 30
			invulnerable: 0
			cy: 20
			harvester: 25
		DamageTypes: Prone50Percent, TriggerProne, ExplosionDeath
		DamageCalculationType: ClosestTargetablePosition
		AffectsParent: false
	Warhead@2Res: CreateResource
		AddsResourceType: Spice
		Size: 1
	Warhead@3Eff: CreateEffect
		Explosions: med_explosion
		ImpactActors: false

GrenDeath:
	Warhead@1Dam: SpreadDamage
		Damage: 1800
		Spread: 1c112

SardDeath:
	Warhead@1Dam: SpreadDamage
		Damage: 4500
		Spread: 625
		Versus:
			none: 10
			wall: 75
			building: 60
			wood: 65
			light: 80
			heavy: 100
			invulnerable: 0
			cy: 30
			harvester: 50