Spielerando

A shotgun blast that pushes you back, without turning into free flight

Recoil in the air is a great trick until a player stays aloft by firing again and again, or until the push slows someone who is already flying faster. Here is a push that works on the ground and in the air and still has a clear upper limit.

Why this works

Recoil is a push the player should feel, not an engine. Because the push adds up only to a ceiling, a few shots give a useful hop, while holding the trigger gets nowhere, and a character already moving faster is never slowed by the rule.

When not to use it

Wrong for a game where the weapon is a movement tool on purpose, like a rocket-jump arena; a low ceiling would feel like a bug there. It is also unnecessary for weapons so weak that no push is felt. Tune the strength per weapon instead.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 20 lines of example code with 4 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "A shotgun blast that pushes you back, without turning into free flight" (read_entry air-recoil-push-with-ceiling) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP