#****************************************************************************
#**
#**  File     : /cdimage/lua/modules/Hawkeyeprojectiles.lua
#**  Author(s): Lt_Hawkeye
#**
#**  Summary  :
#**
#**  Copyright © 2005 Gas Powered Games, Inc.  All rights reserved.
#****************************************************************************
#------------------------------------------------------------------------
#  Lt_hawkeye's Custom Projectiles
#------------------------------------------------------------------------
local Projectile = import('/lua/sim/projectile.lua').Projectile
local DefaultProjectileFile = import('/lua/sim/defaultprojectiles.lua')
local EmitterProjectile = DefaultProjectileFile.EmitterProjectile
local OnWaterEntryEmitterProjectile = DefaultProjectileFile.OnWaterEntryEmitterProjectile
local SingleBeamProjectile = DefaultProjectileFile.SingleBeamProjectile
local SinglePolyTrailProjectile = DefaultProjectileFile.SinglePolyTrailProjectile
local MultiPolyTrailProjectile = DefaultProjectileFile.MultiPolyTrailProjectile
local SingleCompositeEmitterProjectile = DefaultProjectileFile.SingleCompositeEmitterProjectile
local MultiCompositeEmitterProjectile = DefaultProjectileFile.MultiCompositeEmitterProjectile
local Explosion = import('/lua/defaultexplosions.lua')
local EffectTemplate = import('/lua/EffectTemplates.lua')
local DepthCharge = import('/lua/defaultantiprojectile.lua').DepthCharge
local util = import('/lua/utilities.lua')

#------------------------------------------------------------------------
#  AEON MINI-CZAR MISSILE PROJECTILES
#------------------------------------------------------------------------
HawkeyeAirGroundMissileProjectile = Class(SinglePolyTrailProjectile) {
    PolyTrail = '/effects/emitters/aeon_missile_trail_01_emit.bp',

    FxImpactUnit = EffectTemplate.AMissileHit01,
    FxImpactProp = EffectTemplate.AMissileHit01,
    FxImpactNone = EffectTemplate.AMissileHit01,
    FxImpactLand = EffectTemplate.AMissileHit01,
    FxImpactUnderWater = {},
}

#------------------------------------------------------------------------
#  Exavier's UEF Napalm Cannon Shell
#------------------------------------------------------------------------
HawkNapalmShellProjectile = Class(SinglePolyTrailProjectile) {
    FxTrails = EffectTemplate.TPlasmaCannonLightMunition,
    PolyTrailOffset = 0,
    PolyTrail = EffectTemplate.TPlasmaCannonLightPolyTrail,
    # Hit Effects
    FxImpactUnit = EffectTemplate.TNapalmHvyCarpetBombHitUnit01,
    FxImpactProp = EffectTemplate.TNapalmHvyCarpetBombHitUnit01,
    FxImpactLand = EffectTemplate.TNapalmHvyCarpetBombHitLand01,
    FxTrailOffset = 0.5,
    FxImpactUnderWater = {},
}
#------------------------------------------------------------------------
#  Rebel ARTILLERY PROJECILES
#------------------------------------------------------------------------
RebelArtilleryProtonProjectile = Class(MultiPolyTrailProjectile) {
    PolyTrails = {
		EffectTemplate.CProtonCannonPolyTrail,
		'/effects/emitters/default_polytrail_01_emit.bp',
	},
	PolyTrailOffset = {0,0},
    FxTrails = EffectTemplate.CProtonCannonFXTrail01,
    # Hit Effects
    FxImpactUnit = EffectTemplate.CProtonArtilleryHit01,
    FxUnitHitScale = 0.8,
    FxImpactProp = EffectTemplate.CProtonArtilleryHit01,
    FxPropHitScale = 0.8,    
    FxImpactLand = EffectTemplate.CProtonArtilleryHit01,
    FxLandHitScale = 0.8,
    FxImpactUnderWater = {},
}