From a542f7d12148c36aa1a5544eb7bf40cdf37ea914 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Mon, 15 Aug 2022 07:03:30 -0700 Subject: [PATCH] WEAPON_GAUSS: Adjust the force applied to the players' velocity to make jumps easier. --- src/shared/w_gauss.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shared/w_gauss.qc b/src/shared/w_gauss.qc index 5ac03ac..502bc64 100644 --- a/src/shared/w_gauss.qc +++ b/src/shared/w_gauss.qc @@ -139,11 +139,13 @@ void w_gauss_fire(player pl, int one) if (one) { return; } else { + int iForce = (int)rint((bound(5, pl.ammo_gauss_volume, 10) * 20)); + /* Apply force */ if (pl.flags & FL_ONGROUND) { - pl.velocity += v_forward * (-iDamage * 2); + pl.velocity += v_forward * (-iForce * 2); } else { - pl.velocity += v_forward * (-iDamage * 4); + pl.velocity += v_forward * (-iForce * 4); } }