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

distance tracking #78

Open m4son opened 5 years ago

m4son commented 5 years ago

In some old fork from Thomas Edwardsson there is a distance command which tracks player velocity while playing.

Right now stats list shows accuracy, maybe we could add distance covered there. To show it on the scoreboard at the end would be cool too.

Raptor007 commented 5 years ago

That sounds pretty easy to track in p_client.c ClientThink, which processes player movements.

https://github.com/Raptor007/aq2-tng/blob/bots/source/p_client.c#L3042