Raptor007 / aq2-tng

Action Quake 2: The Next Generation. Raptor007's sandbox for testing changes. When verified stable, this code is pushed to the official aq2-tng repo:
https://github.com/aq2-tng/aq2-tng/tree/bots
4 stars 2 forks source link

Don't allow kicking each other at the same time. #49

Closed Raptor007 closed 7 years ago

Raptor007 commented 7 years ago

This never happened in 1.52, but happens frequently in TNG.

Raptor007 commented 7 years ago

I could just set tr.ent->client->jumping = 0 in kick_attack or check if ent->attacker == tr.ent && ent->attacker_mod == MOD_KICK to prevent the victim from kicking back, but 1.52 didn't do it that way and I want to make sure I'm not giving an advantage to lower client numbers.

Raptor007 commented 7 years ago

I think the difference is that kick_attack was handled by ClientThink in 1.52, but is handled by ClientBeginServerFrame in TNG.

Raptor007 commented 7 years ago

Fixed: https://github.com/Raptor007/aq2-tng/commit/ae11d38411e3b6980b1eb02ee65a62a62af4bccc https://github.com/Raptor007/aq2-tng/commit/6bce0f152dd34ee48c922c74a5a2ef43679197ba