Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Erebus Alpha on April 18, 2016, 10:32:49 pm
-
I have some beam cannons with the "no pierce shields" flag, and some capital ships with the "surface shields" flag and $Shield Impact Explosion set.
However, when the beam cannons hit, they keep using their normal $Impact Explosion. This is persistent across capital ship turret beams and fighter gunpoint beams. All non-beam weapons correctly use the assigned $Shield Impact Explosion.
-
Looks like several of the new shield-related features I've added, such as shield impact explosions, only work with regular weapons, not beams. This particular one should be easy to fix though, I'll see what I can do.
For interested coders: this is because beam collisions don't go through ship_weapon_check_collision(), only beam_collide_ship(), whereas all that new stuff exists only in the former. As said, shield impact explosions ought to be easy to fix, model point shields shouldn't be affected, but auto spread shields might be annoying to port over.