From 40eda0e74911b37c27c0fcc7a8b48888ac0a96f1 Mon Sep 17 00:00:00 2001 From: mazmazz Date: Tue, 14 Aug 2018 20:42:20 -0400 Subject: [PATCH 1/2] Nerf jumping --- src/p_user.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 12a09a23e..b18b0927e 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -3965,7 +3965,7 @@ void P_DoJump(player_t *player, boolean soundandstate) } } else if (maptol & TOL_NIGHTS) - player->mo->momz = 24*FRACUNIT; + player->mo->momz = 18*FRACUNIT; else if (player->powers[pw_super]) { player->mo->momz = 13*FRACUNIT; @@ -4006,6 +4006,9 @@ void P_DoJump(player_t *player, boolean soundandstate) if (player->charflags & SF_MULTIABILITY && player->charability == CA_DOUBLEJUMP) factor -= max(0, player->secondjump * player->jumpfactor / ((player->actionspd >> FRACBITS) + 1)); // Reduce the jump height each time + if (maptol & TOL_NIGHTS) + factor = player->jumpfactor; // all skins jump the same + P_SetObjectMomZ(player->mo, FixedMul(factor, player->mo->momz), false); // Custom height // set just an eensy above the ground From 6a3b41ea6f0568e5964417f529d873fe3b4b043d Mon Sep 17 00:00:00 2001 From: mazmazz Date: Wed, 21 Nov 2018 21:21:36 -0500 Subject: [PATCH 2/2] Let skins jump their regular strength variances in NiGHTS --- src/p_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index b18b0927e..3a8b09c76 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4006,8 +4006,8 @@ void P_DoJump(player_t *player, boolean soundandstate) if (player->charflags & SF_MULTIABILITY && player->charability == CA_DOUBLEJUMP) factor -= max(0, player->secondjump * player->jumpfactor / ((player->actionspd >> FRACBITS) + 1)); // Reduce the jump height each time - if (maptol & TOL_NIGHTS) - factor = player->jumpfactor; // all skins jump the same + //if (maptol & TOL_NIGHTS) + // factor = player->jumpfactor; // all skins jump the same. if you nerf jumping abilities, you may want this. P_SetObjectMomZ(player->mo, FixedMul(factor, player->mo->momz), false); // Custom height