cmann1 / dustmod-issues

Dustmod issue tracker
0 stars 0 forks source link

Hit-outcome manipulation #66

Closed JonatanWaern closed 2 years ago

JonatanWaern commented 2 years ago

Being able to change a hitbox outcome to miss, parry, hit (change to hit a bit redundant but), etc.. Which would actually affect both controllables (attacker and attacked) correctly based on the new outcome.

If it's sufficient, then a setter of hit_outcome in hitbox. I suspect this is too late though, and there'd need to be another callback that triggers a bit earlier that modifies how the hitbox hit-check actually happens.

JonatanWaern commented 2 years ago

A followup on this is that this could allow custom-made non-square hitboxes, if we indeed can callback and manipulate how the hitbox interaction is done.

cmann1 commented 2 years ago

These should now be possible with the new hit_outcome setter and on_hit_filter_callback added to hitbox in the next release.