From e2da52c1f357aaddf5d857f73d1288684c5ee0bf Mon Sep 17 00:00:00 2001 From: cypress Date: Mon, 1 Jan 2024 15:41:22 -0500 Subject: [PATCH] SERVER: Fix hard-coded view ofs restriction for Dolphin Dive --- source/server/weapons/weapon_core.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index 012e831..af338e0 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -1564,7 +1564,10 @@ void() Change_Stance = { void() dolphin_dive = //naievil { - if (self.stance != 2 || self.view_ofs_z != 32) + if (self.stance != 2) + return; + if ((map_compatibility_mode == MAP_COMPAT_BETA && self.view_ofs_z != VIEW_OFS_QK[2]) || + (!map_compatibility_mode && self.view_ofs_z != VIEW_OFS_HL[2])) return; if (self.flags & FL_WATERJUMP) return;