Haydoggo / Beach-Escape

MIT License
0 stars 0 forks source link

Fix the Tack Shooter #36

Closed diarmuidtherat closed 7 months ago

diarmuidtherat commented 7 months ago
  1. it continues shooting after its target has died
  2. the hitbox it shoots remains active until a fish passes through them, which is why "1" is even a problem; the tack shooter can stack as many hitboxes around itself as it continues shooting, often instakilling the next fish that gets close.
plexsoup commented 7 months ago

I've added duration_in_ticks to "projectiles", so they shouldn't hang around longer than needed. The "projectile" on the tack shooter has no velocity, so it just sits there, but with the new duration of 1 tick, it should go away. Hopefully that fixes the damage stacking problem.

I couldn't verify that it continues shooting after the target is dead. Still testing.