From 44e5dc34c0cfe2105627f2604f227bb68ce3375c Mon Sep 17 00:00:00 2001 From: Wizzard <25581244+Wizzard@users.noreply.toomuchslop.com> Date: Thu, 21 Sep 2023 00:12:50 -0400 Subject: [PATCH] DOD specific aiming --- src/features/aim.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/features/aim.c b/src/features/aim.c index be3391d..1f5b3ca 100644 --- a/src/features/aim.c +++ b/src/features/aim.c @@ -11,6 +11,8 @@ #define HL1_HEAD_OFFSET 25.f #define CS16_HEAD_OFFSET 22.f #define CS16_HORIZONTAL_OFFSET 8.0f +#define DOD_HEAD_OFFSET 22.f +#define DOD_HORIZONTAL_OFFSET 8.0f /* Scale factor for aim punch */ #define AIM_PUNCH_MULT 2 @@ -54,6 +56,9 @@ static vec3_t get_closest_delta(vec3_t viewangles) { if (IsCS16()) { head_pos.z += CS16_HEAD_OFFSET; head_pos.x += CS16_HORIZONTAL_OFFSET; + } else if (IsDayOfDefeat()) { + head_pos.z += DOD_HEAD_OFFSET; + head_pos.x += DOD_HORIZONTAL_OFFSET; } else { head_pos.z += HL1_HEAD_OFFSET; }