DOD specific aiming

This commit is contained in:
Wizzard 2023-09-21 00:12:50 -04:00
parent 17b4e4e3a3
commit 44e5dc34c0
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,8 @@
#define HL1_HEAD_OFFSET 25.f #define HL1_HEAD_OFFSET 25.f
#define CS16_HEAD_OFFSET 22.f #define CS16_HEAD_OFFSET 22.f
#define CS16_HORIZONTAL_OFFSET 8.0f #define CS16_HORIZONTAL_OFFSET 8.0f
#define DOD_HEAD_OFFSET 22.f
#define DOD_HORIZONTAL_OFFSET 8.0f
/* Scale factor for aim punch */ /* Scale factor for aim punch */
#define AIM_PUNCH_MULT 2 #define AIM_PUNCH_MULT 2
@ -54,6 +56,9 @@ static vec3_t get_closest_delta(vec3_t viewangles) {
if (IsCS16()) { if (IsCS16()) {
head_pos.z += CS16_HEAD_OFFSET; head_pos.z += CS16_HEAD_OFFSET;
head_pos.x += CS16_HORIZONTAL_OFFSET; head_pos.x += CS16_HORIZONTAL_OFFSET;
} else if (IsDayOfDefeat()) {
head_pos.z += DOD_HEAD_OFFSET;
head_pos.x += DOD_HORIZONTAL_OFFSET;
} else { } else {
head_pos.z += HL1_HEAD_OFFSET; head_pos.z += HL1_HEAD_OFFSET;
} }