Log inGet started
World

Blast Kit: Explosion Area Damage, Knockback and Juice in One Call

Branchmain
Branchesmain
Commitb5025c046a

README.md

blastKit.api

One-call explosions, called by a game's weapons, bombs, barrels and boss attacks.

  • at(pos, opts) plays the explosion effect, then damages and knocks back everything within radius with distance falloff, through the health module handed to use (SecondWind or similar) and an optional onHit callback. Returns the hits nearest first.
  • query(pos, opts) answers the same hits without hurting anyone.
  • use({ health, juice, effect }) hands in the health system, the juice module (juiceKit's explosionLarge by default) and any extra effect; backends() reports which are set.