Tue Jun 05, 2012 10:20 pm by mh
This is another one of those little Quake annoyances - when you load a previously saved game your viewangles are incorrect - you're normally looking straight forward instead of in the actual direction you were looking, which may have been up or down. Let's fix it.
Find Host_Spawn_f and declare at the top:
Scroll down to the line where svc_setangle is sent (near the bottom) and add this between the MSG_WriteByte and the for loop:
- Code:
sendangle = sv.loadgame ? ent->v.v_angle : ent->v.angles;
Finally, change the body of the for loop to this:
- Code:
MSG_WriteAngle (&host_client->message, sendangle[i]);
Done - now when you reload you'll be looking in the correct direction. Easy as pie.
Like the fifth day of playing 24-hour Scrabble when you don't want to use any letters because each one means a world to you because you're so deranged.