You can't really do it based on height, but you can easily check for their downward momentum.
In pseudo-code, it would sound a bit like this:
Hook PlayerThink, with player:
Check if player meets the conditions to be affected by our changes (playing as the right character, etc.)
If not defined yet, define a variable to store player's "previous" Z momentum for comparison. Say... player.prevmomZ. We'll need it.
If player has landed (here's one way to check that), and player.prevmomZ (IMPORTANT: account for flipped gravity here!) is less than, say, -16*FRACUNIT...
...then spawn dust particles around the player (multiple ways here, but I'd use this one).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.