Merge branch 'blankart-dev' into 32p
This commit is contained in:
commit
c03ae540b5
7 changed files with 24 additions and 21 deletions
|
|
@ -500,7 +500,7 @@ consvar_t cv_kartstacking_bubble_speedboost = CVAR_INIT ("vanillaboost_bubble_sp
|
|||
consvar_t cv_kartstacking_bubble_accelboost = CVAR_INIT ("vanillaboost_bubble_accelboost", "4.0", CV_NETVAR|CV_CHEAT|CV_FLOAT, CV_Unsigned, NULL);
|
||||
consvar_t cv_kartstacking_bubble_stackable = CVAR_INIT ("vanillaboost_bubble_stackable", "Off", CV_NETVAR, CV_OnOff, NULL);
|
||||
|
||||
consvar_t cv_kartstacking_flame_speedval = CVAR_INIT ("vanillaboost_flame_speedval", "0.90", CV_NETVAR|CV_CHEAT|CV_FLOAT, CV_Unsigned, NULL);
|
||||
consvar_t cv_kartstacking_flame_speedval = CVAR_INIT ("vanillaboost_flame_speedval", "0.25", CV_NETVAR|CV_CHEAT|CV_FLOAT, CV_Unsigned, NULL);
|
||||
consvar_t cv_kartstacking_flame_accelboost = CVAR_INIT ("vanillaboost_flame_accelboost", "6.0", CV_NETVAR|CV_CHEAT|CV_FLOAT, CV_Unsigned, NULL);
|
||||
consvar_t cv_kartstacking_flame_stackable = CVAR_INIT ("vanillaboost_flame_stackable", "Off", CV_NETVAR, CV_OnOff, NULL);
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ consvar_t cv_addons_search_case = CVAR_INIT ("addons_search_case", "No", CV_SAVE
|
|||
static CV_PossibleValue_t addons_search_type_cons_t[] = {{0, "Start"}, {1, "Anywhere"}, {0, NULL}};
|
||||
consvar_t cv_addons_search_type = CVAR_INIT ("addons_search_type", "Anywhere", CV_SAVE, addons_search_type_cons_t, NULL);
|
||||
|
||||
char menupath[1024];
|
||||
char menupath[MAXFILEPATH];
|
||||
size_t menupathindex[menudepth];
|
||||
size_t menudepthleft = menudepth;
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ filestatus_t filesearch(char *filename, const char *startpath, UINT64 wantedhash
|
|||
int found = 0;
|
||||
char *searchname = strdup(filename);
|
||||
int depthleft = maxsearchdepth;
|
||||
char searchpath[1024];
|
||||
char searchpath[MAXFILEPATH];
|
||||
size_t *searchpathindex;
|
||||
|
||||
dirhandle = (DIR**) malloc(maxsearchdepth * sizeof (DIR*));
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ filestatus_t filesearch(char *filename, const char *startpath, UINT64 wantedhash
|
|||
|
||||
#define menudepth 20
|
||||
|
||||
extern char menupath[1024];
|
||||
#define MAXFILEPATH 1024
|
||||
extern char menupath[MAXFILEPATH];
|
||||
extern size_t menupathindex[menudepth];
|
||||
extern size_t menudepthleft;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
#include "doomstat.h"
|
||||
#include "d_event.h"
|
||||
#include "m_textinput.h"
|
||||
#include "filesrch.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
@ -91,7 +92,7 @@ typedef enum {
|
|||
} menudemotype_e;
|
||||
|
||||
struct menudemo_t {
|
||||
char filepath[256];
|
||||
char filepath[MAXFILEPATH];
|
||||
menudemotype_e type;
|
||||
|
||||
char title[65]; // Null-terminated for string prints
|
||||
|
|
|
|||
23
src/k_kart.c
23
src/k_kart.c
|
|
@ -919,6 +919,14 @@ static void K_UpdateOffroad(player_t *player)
|
|||
|
||||
offroad = offroadstrength / (TICRATE/2);
|
||||
|
||||
if (player->flamestore)
|
||||
{
|
||||
// flame shield doesn't resist offroad, but slows its effect
|
||||
// it doesn't suffer the offroad speedboost cut; increase offroadstrength to compensate
|
||||
offroad = 2*offroad/3;
|
||||
offroadstrength *= 2;
|
||||
}
|
||||
|
||||
player->offroad += offroad;
|
||||
}
|
||||
|
||||
|
|
@ -2319,8 +2327,8 @@ void K_SpawnWaterTrail(mobj_t *mobj)
|
|||
|
||||
static fixed_t K_FlameShieldDashVar(INT32 val)
|
||||
{
|
||||
// 1 second = 15% + ????% top speed
|
||||
return (FRACUNIT/6) + (((val * (FRACUNIT)) / TICRATE) / 2);
|
||||
// 1 second = base% + ~16.8% top speed
|
||||
return FixedMul(val * 500, FixedDiv(FRACUNIT, FRACUNIT + val*FRACUNIT/60));
|
||||
}
|
||||
|
||||
static inline fixed_t K_GetProjectileSpeed(void)
|
||||
|
|
@ -2652,14 +2660,7 @@ static void K_GetKartBoostPower(player_t *player)
|
|||
if (player->flamestore) // Flame Shield dash
|
||||
{
|
||||
fixed_t dash = K_FlameShieldDashVar(player->flamedash);
|
||||
fixed_t intermediate = 0;
|
||||
fixed_t boost = 0;
|
||||
fixed_t val = FLAMESPEEDVAL; // Rim idea: diminish starts around 1.2x sneaker speed and plateaus around 1.4-1.5x
|
||||
|
||||
intermediate = FixedDiv(FixedMul(val, FRACUNIT*-1/2) - FRACUNIT/4,-val+FRACUNIT/2);
|
||||
boost = FixedMul(val,(FRACUNIT-FixedDiv(FRACUNIT,(dash+intermediate))));
|
||||
|
||||
K_DoBoost(player, boost, FLAMEACCELBOOST, FLAMESTACKABLE, FLAMESTACKABLE);
|
||||
K_DoBoost(player, FLAMESPEEDVAL + dash, FLAMEACCELBOOST, FLAMESTACKABLE, FLAMESTACKABLE);
|
||||
}
|
||||
|
||||
if (player->startboost) // Startup Boost
|
||||
|
|
@ -2730,7 +2731,7 @@ static void K_GetKartBoostPower(player_t *player)
|
|||
// value smoothing
|
||||
if (K_StackingActive())
|
||||
{
|
||||
if (player->offroad && K_ApplyOffroad(player))
|
||||
if (player->offroad && K_ApplyOffroad(player) && !player->flamestore)
|
||||
{
|
||||
player->speedboost = max(finalspeedboost, player->speedboost)/2;
|
||||
player->accelboost = max(finalaccelboost, player->accelboost)/2;
|
||||
|
|
|
|||
|
|
@ -3327,7 +3327,7 @@ INT32 MR_Addons(INT32 choice)
|
|||
if (cv_addons_option.value == 3 && *cv_addons_folder.string != '\0')
|
||||
pathname = cv_addons_folder.string;
|
||||
|
||||
strlcpy(menupath, pathname, 1024);
|
||||
strlcpy(menupath, pathname, MAXFILEPATH);
|
||||
menupathindex[(menudepthleft = menudepth-1)] = strlen(menupath) + 1;
|
||||
|
||||
if (menupath[menupathindex[menudepthleft]-2] != PATHSEP[0])
|
||||
|
|
@ -3425,9 +3425,9 @@ static void M_DrawTemperature(INT32 x, fixed_t t)
|
|||
static char *M_AddonsHeaderPath(void)
|
||||
{
|
||||
UINT32 len;
|
||||
static char header[1024];
|
||||
static char header[MAXFILEPATH];
|
||||
|
||||
strlcpy(header, va("%s folder%s", cv_addons_option.string, menupath+menupathindex[menudepth-1]-1), 1024);
|
||||
strlcpy(header, va("%s folder%s", cv_addons_option.string, menupath+menupathindex[menudepth-1]-1), MAXFILEPATH);
|
||||
len = strlen(header);
|
||||
if (len > 34)
|
||||
{
|
||||
|
|
@ -3830,7 +3830,7 @@ static void PrepReplayList(void)
|
|||
else
|
||||
{
|
||||
demolist[i].type = MD_NOTLOADED;
|
||||
snprintf(demolist[i].filepath, 1024, "%s%s", menupath, dirmenu[i] + DIR_STRING);
|
||||
snprintf(demolist[i].filepath, MAXFILEPATH, "%s%s", menupath, dirmenu[i] + DIR_STRING);
|
||||
sprintf(demolist[i].title, ".....");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -510,7 +510,7 @@ INT32 P_GivePlayerRings(player_t *player, INT32 num_rings)
|
|||
if (test > player->ringmax) // Caps at 20 rings, sorry!
|
||||
num_rings -= (test-player->ringmax);
|
||||
else if (test < player->ringmin) // Chaotix ring debt!
|
||||
num_rings -= (test+player->ringmin);
|
||||
num_rings -= (test-player->ringmin);
|
||||
|
||||
player->rings += num_rings;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue