allow server to control player angles as in Hack and Slash mod\nclient's player model stands up straight\nmouse and joystick work properly in chase_active 2 and 3 modes

This commit is contained in:
Seth Galbraith 2001-12-11 20:49:10 +00:00
parent e9690c8ee9
commit 8a47406dcd
5 changed files with 32 additions and 26 deletions

View file

@ -780,7 +780,13 @@ Chase_Update (void)
}
// mouse and joystick controllers add to movement
// IN_Move (&cmd); // problem - mouse strafe movement is weird
dir[1] = cl.viewangles[1] - camera_angles[1]; dir[0] = 0; dir[2] = 0;
AngleVectors (dir, forward, right, up);
VectorScale (forward, viewdelta.position[2] * m_forward->value, forward);
VectorScale (right, viewdelta.position[0] * m_side->value, right);
VectorAdd (forward, right, dir);
cmd.forwardmove += dir[0];
cmd.sidemove -= dir[1];
dir[1] = camera_angles[1]; dir[0] = 0; dir[2] = 0;
AngleVectors (dir, forward, right, up);