First Person Fix: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
---- | ---- | ||
<pre>Hah, thanks for giving me a reason to hunt this one down. The Forsaken testers have been after me a while to fix it... anyways... here you go. A fix. | <pre>Hah, thanks for giving me a reason to hunt this one down. | ||
The Forsaken testers have been after me a while to fix it... | |||
anyways... here you go. A fix. | |||
Step 1: In PlayerState.h around line 34 change: | Step 1: In PlayerState.h around line 34 change: | ||
Line 20: | Line 22: | ||
Enjoy! | Enjoy! | ||
P.S. The cause of this is in baseplayer_shared when calling EyeAngles. It returns pl.v_angle which is initialized to a zero-vector. By enabling it to be sent over the network this resolves the issue.</pre> | P.S. The cause of this is in baseplayer_shared when calling EyeAngles. | ||
It returns pl.v_angle which is initialized to a zero-vector. | |||
By enabling it to be sent over the network this resolves the issue.</pre> |
Revision as of 18:37, 31 January 2006
This fix is taken from the HL Coders mail list.
The orignal text was writen by "Ben Everett" obike@thecodevault.net
Hah, thanks for giving me a reason to hunt this one down. The Forsaken testers have been after me a while to fix it... anyways... here you go. A fix. Step 1: In PlayerState.h around line 34 change: QAngle v_angle; To CNetworkQAngle(v_angle); Step 2: In player.cpp around line 6484 add in after sending the dead flag: SendPropQAngles (SENDINFO(v_angle), 13), Step 3: In c_baseplayer.cpp around line 85 add in after receiving the dead flag: RecvPropQAngles (RECVINFO(v_angle)), Enjoy! P.S. The cause of this is in baseplayer_shared when calling EyeAngles. It returns pl.v_angle which is initialized to a zero-vector. By enabling it to be sent over the network this resolves the issue.