ezquake-source icon indicating copy to clipboard operation
ezquake-source copied to clipboard

SMARTSPAWN: Do not fire with +attack to spawn

Open JosephPecoraro opened this issue 2 years ago • 5 comments

Adds: cl_smartspawn

  • 0 disabled (default)
  • 1 enabled

Description: When dead, +attack will spawn and immediately -attack to prevent weapon firing when spawning.

Rationale: A best practice is to spawn without shooting. Spawning by shooting has numerous disadvantages:

  • wastes ammo
  • prevents an aimed shot for at least one reload cycle
  • can accidentally hurt or kill a teammate (Murphy's Law)
  • may reveal your spawn location via bullet impacts on a far wall to an enemy that otherwise would not know
  • inadvertently distorts a players true sg efficiency as most spawn shots are misses

Solution: Add a command, like cl_smartjump, that better matches the player's intended behavior.

Implementation: When a player is dead, an attack command (+attack / +fire) is treated as a jump instead of an attack.

Rulesets: Allowed by all. This is easily achievable with weapon scripts.

JosephPecoraro avatar Jul 27 '22 03:07 JosephPecoraro

50% of why I did this is so that dracs will stop messaging me about it.

JosephPecoraro avatar Jul 27 '22 03:07 JosephPecoraro

Might need an update to release-notes-latest.md.

JosephPecoraro avatar Jul 27 '22 03:07 JosephPecoraro

This might be a wellcome change to some people. But is somewhat hardcoding a behavior in the engine that is really a gamelogic issue in progs.dat Is the programming in QuakeC by the mod that define what means to be dead and revive. This programming usually add a cooldown after the revive, so you can't shot immediately. If this fails, is a bug in the mod, not the engine.

Anyway since is optional and off by default, I don't see any problem with this other than feature creep.

teiman avatar Jul 27 '22 07:07 teiman

What is the purpose of this? When you die, just hit the jump instead of fire if you don't want to shoot. Simple... Why would we need this at all? I want a fire button to fire. Always. Not a modified behavior based on some conditions

tcsabina avatar Oct 08 '22 19:10 tcsabina

If the implementation of this is the same as in unezQuake, then it needs some tweaking, there it works for +attack but +fire will still cause you to shoot when spawning

zigg1zagg1 avatar Oct 09 '22 16:10 zigg1zagg1

Not using +attack to spawn has always been part of the skillset and the gameplay. Some games you Want to use it to try and get the last frag in an even game… Sometimes you kill and enemy, sometimes you fkup and kill a teammate. It’s part of the game.

jite avatar Nov 26 '22 18:11 jite

alright! Last nail in the coffin for this PR was the comment from dimman. Closing.

tcsabina avatar Nov 28 '22 12:11 tcsabina