From 01f8714cfd975351385cde7162aa0d1f27b57bdc Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 28 Jan 2012 23:47:15 +0200 Subject: [PATCH] Player leaning: Reverse acceleration angle, so players lean forward rather than back when walking. More realistic and correct --- data/qcsrc/server/cl_client.qc | 2 +- docs/TODO.txt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 29d6582c..039017cf 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2613,7 +2613,7 @@ void PlayerPreThink (void) accel_y = bound(-cvar("g_leanplayer_acceleration_max"), accel_y, cvar("g_leanplayer_acceleration_max")); accel_z = bound(-cvar("g_leanplayer_acceleration_max"), accel_z, cvar("g_leanplayer_acceleration_max")); - L0_x = vlen(accel); + L0_x = vlen(accel) * -1; L0_y = L1_y = vectoyaw(accel); L0 = AnglesTransform_FromAngles(L0); diff --git a/docs/TODO.txt b/docs/TODO.txt index 0d9edcbd..033df879 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -125,5 +125,3 @@ - 0.7 | 0.8 BUG: Gibbed dead bodies seem to keep throwing gibs infinitely on dedicated servers. - 0.8: Chat portraits for all models. - -- 0.7 | 0.8: Player leaning - Reverse angle on acceleration leaning \ No newline at end of file -- 2.39.2