Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve explosives. #137

Closed
2 tasks done
kindaro opened this issue Sep 30, 2021 · 1 comment
Closed
2 tasks done

Improve explosives. #137

kindaro opened this issue Sep 30, 2021 · 1 comment

Comments

@kindaro
Copy link
Collaborator

kindaro commented Sep 30, 2021

There are some features that the standardized explosives #113 do not yet have.

  • Chain reaction: an explosion triggers all the other explosives in the range.
  • Trigger delay: some explosives do not explode immediately upon triggering, but with a slight delay.

Particularly, mines #99 should have these features. Possibly also grenades #98.

@olefasting
Copy link
Member

olefasting commented Oct 25, 2021

I have added both of these to the TriggeredEffect variant of WeaponEffectKind, which should typically be used for armed explosives. I have also added is_explosion to the CircleCollider variant of WeaponEffectKind, which should be used for explosions (triggered by the aforementioned TriggeredEffect). This will set off any TriggeredEffect instances that have Explosion as a valid trigger criteria, if they are within the radius of the explosion's collider.
I have also added Projectile as a trigger criteria, so that you can shoot explosives to trigger them....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants