Posted by: brncao - Friday, March 9, 2012 5:00:52 PM
I'm able to set up the unit and the weapon, but for some reason, as soon as the jet bomber drops a couple bombs (24 in total), it turns while dropping. It does not fly straight and head towards the enemy target. I'd expect it to fly straight and deliver all its payload before turning and heading back to the airfield. AcceptableAimDelta = 180 ;so that it can continue to drop bombs even when the target is behind. AttackRange = 400 ;while in range, start & continue dropping. Just in case anyone suggests making the value smaller to get closer, that doesn't solve the early turning issue. The velocity locomotor on the projectile is 0 so that it falls straight down.

Posted by: CommieDog - Friday, March 9, 2012 7:00:06 PM
How did you code the carpet bomb attack? It sounds like you used a Weapon for it.

Posted by: brncao - Friday, March 9, 2012 8:09:14 PM
yes. It's the PRIMARY weapon used for this jet bomber. [code]Weapon MigCarpetBombWeapon PrimaryDamage = 0.1 PrimaryDamageRadius = 50.0 AttackRange = 400.0 AcceptableAimDelta = 180 DamageType = EXPLOSION DeathType = EXPLODED WeaponSpeed = 99999 ProjectileObject = CarpetBombProjectile FireFX = FX_AuroraBombLaunch RadiusDamageAffects = ALLIES ENEMIES NEUTRALS NOT_SIMILAR ClipSize = 24 ClipReloadTime = 20000 DelayBetweenShots = 120 AutoReloadsClip = RETURN_TO_BASE ShowsAmmoPips = Yes ;ProjectileCollidesWith = STRUCTURES End [/code]