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

chasecam viewangle #77

Closed m4son closed 4 years ago

m4son commented 5 years ago

When leaving chasecam, spectators previous angle is restored instead of last player chased angle.

Raptor007 commented 5 years ago

I think this is the same as bug #24. I should take another crack at solving it.

m4son commented 4 years ago

After some time testing, this commit from maniac, broke viewangles when leaving chasecam https://github.com/aq2-tng/aq2-tng/commit/1f2ab927a61a1669996a858eda07d0c874fd0484#diff-d28e9c6c4bd174fbd6765f4e4b8acc95 Please look, it is a really annoying thing.

Raptor007 commented 4 years ago

Thanks for tracking this down. I have a hunch it's because he moved a bunch of code in UpdateChaseCam into the if (!(game.serverfeatures & GMF_CLIENTNUM)) block, which I don't think would be true on any modern q2pro server. For example, chase_mode == 2 previously considered delta_angles and it no longer does.

Leaving this "before" version as a reminder for myself: https://github.com/aq2-tng/aq2-tng/blob/b5e077d6bff051c1c54542f106e1ebd6bd828810/source/g_chase.c

Raptor007 commented 4 years ago

This might be solved now: https://github.com/Raptor007/aq2-tng/commit/103580106e3345604af26e3243d0418efeb33953