Spielerando

Stop players from swapping weapons to fire again right away

Fire, switch to another weapon, switch back, and fire again with no wait: a trick every shooter player finds in a day. This entry shows where the wait must live so that switching costs time and never saves any.

Why this works

A wait belongs to the thing that caused it, not to the person holding it. If the weapon remembers when it will be ready, no amount of swapping can change that, and the cost of switching can simply be added on top.

When not to use it

Skip it when quick switching is a skill you want to reward, as in a game built around swapping between tools mid-fight. Then let the swap itself be the cost and shorten the equip time instead of hiding it.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 24 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 "Stop players from swapping weapons to fire again right away" (read_entry weapon-swap-cannot-skip-cooldown) 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