From: MirceaKitsune Date: Sat, 28 Jan 2012 21:47:15 +0000 (+0200) Subject: Player leaning: Reverse acceleration angle, so players lean forward rather than back... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=01f8714cfd975351385cde7162aa0d1f27b57bdc;p=voretournament%2Fvoretournament.git Player leaning: Reverse acceleration angle, so players lean forward rather than back when walking. More realistic and correct --- 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