mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-29 16:01:44 +00:00
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:
parent
e9690c8ee9
commit
8a47406dcd
5 changed files with 32 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue