From 1e576fb61ff6b882ec0cdf13e3fc5ffd7654e5aa Mon Sep 17 00:00:00 2001 From: ZTsukei Date: Mon, 17 Apr 2017 21:27:15 -0400 Subject: [PATCH] v1.3.07 ------- Changed the drift spark formula from: 51 + player->kartspeed; To: 43 + player->kartspeed*2 + (10 - player->kartweight); This allows an extreme heavy/accel to get sparks more often than an extreme light/speed character. Other extremes should be roughly where they were before. --- src/doomdef.h | 10 +++++----- src/k_kart.c | 4 ++-- src/p_mobj.c | 5 +++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/doomdef.h b/src/doomdef.h index ce1fb971..d996daf5 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -143,16 +143,16 @@ extern FILE *logstream; #define DEVELOP // Disable this for release builds to remove excessive cheat commands and enable MD5 checking and stuff, all in one go. :3 #ifdef DEVELOP #define VERSION 103 // Game version -#define SUBVERSION 6 // more precise version number +#define SUBVERSION 7 // more precise version number #define VERSIONSTRING "Development EXE" -#define VERSIONSTRINGW "v1.3.06" +#define VERSIONSTRINGW "v1.3.07" // most interface strings are ignored in development mode. // we use comprevision and compbranch instead. #else #define VERSION 103 // Game version -#define SUBVERSION 6 // more precise version number -#define VERSIONSTRING "DevEXE v1.3.06" -#define VERSIONSTRINGW L"v1.3.06" +#define SUBVERSION 7 // more precise version number +#define VERSIONSTRING "DevEXE v1.3.07" +#define VERSIONSTRINGW L"v1.3.07" // Hey! If you change this, add 1 to the MODVERSION below! // Otherwise we can't force updates! #endif diff --git a/src/k_kart.c b/src/k_kart.c index 596e47ea..f273b0a3 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -1970,8 +1970,8 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue) static void K_KartDrift(player_t *player, boolean onground) { // IF YOU CHANGE THESE: MAKE SURE YOU UPDATE THE SAME VALUES IN p_mobjc, "case MT_DRIFT:" - fixed_t dsone = 51 + player->kartspeed; // 52 - 60 - fixed_t dstwo = dsone*2; // 104 - 120 + fixed_t dsone = 43 + player->kartspeed*2 + (10 - player->kartweight); // 46 - 70 + fixed_t dstwo = dsone*2; // 92 - 140 // Drifting is actually straffing + automatic turning. // Holding the Jump button will enable drifting. diff --git a/src/p_mobj.c b/src/p_mobj.c index 6a756d94..2dac0c7d 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -6405,8 +6405,9 @@ void P_MobjThinker(mobj_t *mobj) //{ SRB2kart mobs case MT_DRIFT: { - fixed_t dsone = 51 + mobj->target->player->kartspeed; // 52 - 60 - fixed_t dstwo = dsone*2; // 104 - 120 + fixed_t dsone = 43 + mobj->target->player->kartspeed*2 + + (10 - mobj->target->player->kartweight); // 46 - 70 + fixed_t dstwo = dsone*2; // 92 - 140 if ((mobj->target && mobj->target->player && mobj->target->player->mo && mobj->target->player->health > 0 && !mobj->target->player->spectator) && (mobj->type == MT_DRIFT && mobj->target->player->kartstuff[k_driftcharge] >= dsone)) {