@Rowey / @Doompants
Your observations are correct, the Ahwassa can do more than 7000 damage crash damage.
OnKilled = function(self, instigator, type, overkillRatio)
self.detector = CreateCollisionDetector(self)
self.Trash:Add(self.detector)
self.detector:WatchBone('Nose_Extent')
self.detector:WatchBone('Right_Wing_Extent')
self.detector:WatchBone('Left_Wing_Extent')
self.detector:WatchBone('Tail_Extent')
self.detector:EnableTerrainCheck(true)
self.detector:Enable()
SAirUnit.OnKilled(self, instigator, type, overkillRatio)
end,
OnAnimTerrainCollision = function(self, bone,x,y,z)
DamageArea(self, {x,y,z}, 5, 1000, 'Default', true, false) --- <-- additional damage
explosion.CreateDefaultHitExplosionAtBone( self, bone, 5.0 )
explosion.CreateDebrisProjectiles(self, explosion.GetAverageBoundingXYZRadius(self), {self:GetUnitSizes()})
end,
When killed it adds various terrain detection detectors to various bones (points) of the unit. When those intersect with the terrain they create a flash and do an additional 1000 damage.