diff --git a/src/d_net.h b/src/d_net.h index f170cdf05..739b4f2fb 100644 --- a/src/d_net.h +++ b/src/d_net.h @@ -27,7 +27,6 @@ extern "C" { // SINT8 is used for nodes sometimes >:( #define MAXNETNODES 127 #define BROADCASTADDR MAXNETNODES -#define NETSPLITSCREEN // Kart's splitscreen netgame feature #define STATLENGTH (TICRATE*2) diff --git a/src/d_netcmd.h b/src/d_netcmd.h index c28df3e7d..c9520f1a7 100644 --- a/src/d_netcmd.h +++ b/src/d_netcmd.h @@ -93,11 +93,6 @@ extern consvar_t cv_pause; extern consvar_t cv_restrictskinchange, cv_allowteamchange, cv_ingamecap, cv_respawntime; extern consvar_t cv_spectatorreentry, cv_antigrief; -/*extern consvar_t cv_teleporters, cv_superring, cv_supersneakers, cv_invincibility; -extern consvar_t cv_jumpshield, cv_watershield, cv_ringshield, cv_forceshield, cv_bombshield; -extern consvar_t cv_1up, cv_eggmanbox; -extern consvar_t cv_recycler;*/ - // SRB2kart items extern consvar_t cv_sneaker, cv_rocketsneaker, cv_invincibility, cv_banana; extern consvar_t cv_eggmanmonitor, cv_orbinaut, cv_jawz, cv_mine; diff --git a/src/dehacked.c b/src/dehacked.c index c35092a91..323261243 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -43,6 +43,9 @@ #include "m_cond.h" +// idk how PUSHGETTER works, but this is unused +static UINT8 ultimatemode = false; + #define REQUIRE_MATHLIB_GUID "{748fcbc8-6480-4013-ac4e-7afce6cab766}" // Free slot names diff --git a/src/g_game.c b/src/g_game.c index 662f0a228..eba9dbd5b 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -62,7 +62,6 @@ gameaction_t gameaction = 0; gamestate_t gamestate = GS_NULL; -UINT8 ultimatemode = false; boolean botingame = false; UINT8 botskin = 0; @@ -3406,7 +3405,7 @@ static void G_DoContinued(void) token = 0; // Reset # of lives - pl->lives = (ultimatemode) ? 1 : 3; + pl->lives = 3; D_MapChange(gamemap, gametype, false, false, 0, false, false); diff --git a/src/g_state.h b/src/g_state.h index f9f1babd3..02d876d49 100644 --- a/src/g_state.h +++ b/src/g_state.h @@ -52,7 +52,6 @@ typedef enum } gameaction_t; extern gamestate_t gamestate; -extern UINT8 ultimatemode; // was sk_insane extern gameaction_t gameaction; extern boolean botingame; diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 713ee5fa2..14b74290e 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -3698,7 +3698,7 @@ static void HWR_SplitSprite(gl_vissprite_t *spr, const boolean papersprite) wallVerts[1].y = endbot; // The x and y only need to be adjusted in the case that it's not a papersprite - if (cv_glspritebillboarding.value && sprmo && !papersprite) + if (cv_glspritebillboarding.value && !papersprite) { // Get the x and z of the vertices so billboarding draws correctly realheight = realbot - realtop; diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 21d49d5e4..a2472ae8c 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -1581,7 +1581,6 @@ static void HU_drawMiniChat(void) y = chaty - charheight*(msglines+1); -#ifdef NETSPLITSCREEN if (splitscreen) { y -= BASEVIDHEIGHT/2; @@ -1589,7 +1588,6 @@ static void HU_drawMiniChat(void) y += 16; } else -#endif y -= (cv_kartspeedometer.value ? 16 : 0); dx = 0; @@ -1687,18 +1685,15 @@ static void HU_drawChatLog(INT32 offset) if (chat_scroll > chat_maxscroll) chat_scroll = chat_maxscroll; -#ifdef NETSPLITSCREEN if (splitscreen) { boxh = max(6, boxh/2); if (splitscreen > 1) boxw = max(64, boxw/2); } -#endif y = chaty - offset*charheight - (chat_scroll*charheight) - boxh*charheight - 12; -#ifdef NETSPLITSCREEN if (splitscreen) { y -= BASEVIDHEIGHT/2; @@ -1706,7 +1701,6 @@ static void HU_drawChatLog(INT32 offset) y += 16; } else -#endif y -= (cv_kartspeedometer.value ? 16 : 0); @@ -1821,7 +1815,6 @@ static void HU_DrawChat(void) const char *talk = ntalk; const char *mute = "Chat has been muted."; -#ifdef NETSPLITSCREEN if (splitscreen) { y -= BASEVIDHEIGHT/2; @@ -1832,7 +1825,6 @@ static void HU_DrawChat(void) } } else -#endif y -= (cv_kartspeedometer.value ? 16 : 0); if (teamtalk) @@ -1933,7 +1925,7 @@ static void HU_DrawChat(void) INT32 count = 0; INT32 p_dispy = chaty - charheight - 1; size_t longest_name_length = 0; -#ifdef NETSPLITSCREEN + if (splitscreen) { p_dispy -= BASEVIDHEIGHT/2; @@ -1941,13 +1933,13 @@ static void HU_DrawChat(void) p_dispy += 16; } else -#endif p_dispy -= (cv_kartspeedometer.value ? 16 : 0); // Find longest player name, for drawing background for /pm list later for (i = 0; i < MAXPLAYERS; i++) { - if (!playeringame[i]) continue; + if (!playeringame[i]) + continue; longest_name_length = max(longest_name_length, strlen(player_names[i])); } @@ -2050,7 +2042,6 @@ static void HU_DrawChat(void) skip = 0; -#ifdef NETSPLITSCREEN if (splitscreen) { suggesty -= BASEVIDHEIGHT/2; @@ -2058,7 +2049,6 @@ static void HU_DrawChat(void) suggesty += 16; } else -#endif suggesty -= (cv_kartspeedometer.value ? 16 : 0); while ((suggest = M_FindEmote(complete, complete_len, skip)) != NULL) diff --git a/src/hu_stuff.h b/src/hu_stuff.h index 85ff630f5..8ba4bce19 100644 --- a/src/hu_stuff.h +++ b/src/hu_stuff.h @@ -68,12 +68,7 @@ typedef struct #define HU_MAXMSGLEN 223 #define HU_MSGBUFSIZE 255 #define MAX_CHAT_BUFSIZE 256 // that's enough messages, right? We'll delete the older ones when that gets out of hand. -#define NETSPLITSCREEN // why the hell WOULDN'T we want this? -#ifdef NETSPLITSCREEN #define OLDCHAT (cv_consolechat.value == 1 || dedicated || vid.width < 640) -#else -#define OLDCHAT (cv_consolechat.value == 1 || dedicated || vid.width < 640) -#endif #define CHAT_MUTE (cv_mute.value && !(server || IsPlayerAdmin(consoleplayer))) // this still allows to open the chat but not to type. That's used for scrolling and whatnot. #define OLD_MUTE (OLDCHAT && cv_mute.value && !(server || IsPlayerAdmin(consoleplayer))) // this is used to prevent oldchat from opening when muted. diff --git a/src/i_joy.h b/src/i_joy.h index 20252b54d..d1282e945 100644 --- a/src/i_joy.h +++ b/src/i_joy.h @@ -44,9 +44,6 @@ extern "C" { struct JoyType_s { - /*! if true, we MUST Poll() to get new joystick data, - that is: we NEED the DIRECTINPUTDEVICE2 ! (watchout NT compatibility) */ - INT32 bJoyNeedPoll; /*! this joystick is a gamepad, read: digital axes if FALSE, interpret the joystick event data as JOYAXISRANGE (see above) */ INT32 bGamepadStyle; diff --git a/src/m_cheat.c b/src/m_cheat.c index 8223f2250..783ff3bcb 100644 --- a/src/m_cheat.c +++ b/src/m_cheat.c @@ -249,9 +249,6 @@ boolean cht_Responder(event_t *ev) #define REQUIRE_SINGLEPLAYER if (netgame || multiplayer)\ { CONS_Printf(M_GetText("This only works in single player.\n")); return; } -#define REQUIRE_NOULTIMATE if (ultimatemode)\ -{ CONS_Printf(M_GetText("You're too good to be cheating!\n")); return; } - // command that can be typed at the console! void Command_CheatNoClip_f(void) { @@ -259,7 +256,6 @@ void Command_CheatNoClip_f(void) REQUIRE_INLEVEL; REQUIRE_SINGLEPLAYER; - REQUIRE_NOULTIMATE; plyr = &players[consoleplayer]; plyr->pflags ^= PF_NOCLIP; @@ -274,7 +270,6 @@ void Command_CheatGod_f(void) REQUIRE_INLEVEL; REQUIRE_SINGLEPLAYER; - REQUIRE_NOULTIMATE; plyr = &players[consoleplayer]; plyr->pflags ^= PF_GODMODE; @@ -289,7 +284,6 @@ void Command_CheatNoTarget_f(void) REQUIRE_INLEVEL; REQUIRE_SINGLEPLAYER; - REQUIRE_NOULTIMATE; plyr = &players[consoleplayer]; plyr->pflags ^= PF_INVIS; @@ -593,7 +587,6 @@ void Command_Devmode_f(void) #ifndef _DEBUG REQUIRE_SINGLEPLAYER; #endif - REQUIRE_NOULTIMATE; if (COM_Argc() > 1) { @@ -1048,7 +1041,6 @@ void Command_ObjectPlace_f(void) { REQUIRE_INLEVEL; REQUIRE_SINGLEPLAYER; - REQUIRE_NOULTIMATE; G_SetGameModified(multiplayer, true); diff --git a/src/m_cheat.h b/src/m_cheat.h index f2944c27c..aaf038436 100644 --- a/src/m_cheat.h +++ b/src/m_cheat.h @@ -29,7 +29,6 @@ void Command_ObjectPlace_f(void); void Command_Writethings_f(void); extern consvar_t cv_opflags, cv_mapthingnum, cv_speed; -//extern consvar_t cv_snapto, cv_grid; extern boolean objectplacing; extern mobjtype_t op_currentthing; @@ -48,18 +47,10 @@ void Command_CheatNoClip_f(void); void Command_CheatGod_f(void); void Command_CheatNoTarget_f(void); void Command_Savecheckpoint_f(void); -/*void Command_Getallemeralds_f(void); -void Command_Resetemeralds_f(void); -void Command_Setrings_f(void); -void Command_Setlives_f(void); -void Command_Setcontinues_f(void);*/ void Command_Devmode_f(void); void Command_Scale_f(void); void Command_Gravflip_f(void); void Command_Hurtme_f(void); -/*void Command_JumpToAxis_f(void); -void Command_Charability_f(void); -void Command_Charspeed_f(void);*/ void Command_Teleport_f(void); void Command_RTeleport_f(void); void Command_Skynum_f(void); diff --git a/src/p_enemy.c b/src/p_enemy.c index cb9b16f2d..f1a0ed535 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -1531,10 +1531,7 @@ void A_LobShot(void *thing) if (!(actor->flags & MF_BOSS)) { - if (ultimatemode) - actor->reactiontime = actor->info->reactiontime*TICRATE; - else - actor->reactiontime = actor->info->reactiontime*TICRATE*2; + actor->reactiontime = actor->info->reactiontime*TICRATE*2; } } @@ -1570,10 +1567,7 @@ void A_FireShot(void *thing) if (!(actor->flags & MF_BOSS)) { - if (ultimatemode) - actor->reactiontime = actor->info->reactiontime*TICRATE; - else - actor->reactiontime = actor->info->reactiontime*TICRATE*2; + actor->reactiontime = actor->info->reactiontime*TICRATE*2; } } @@ -1613,10 +1607,7 @@ void A_SuperFireShot(void *thing) if (!(actor->flags & MF_BOSS)) { - if (ultimatemode) - actor->reactiontime = actor->info->reactiontime*TICRATE; - else - actor->reactiontime = actor->info->reactiontime*TICRATE*2; + actor->reactiontime = actor->info->reactiontime*TICRATE*2; } } @@ -2870,12 +2861,6 @@ void A_ExtraLife(void *thing) if (actor->type == MT_1UPICO && !actor->tracer) actor->frame -= 2; // No lives icon for this player, use the default. - if (ultimatemode) //I don't THINK so! - { - S_StartSound(player->mo, sfx_lose); - return; - } - // In shooter gametypes, give the player 100 rings instead of an extra life. if (gametype != GT_COOP && gametype != GT_COMPETITION) P_GivePlayerRings(player, 100); @@ -4015,26 +4000,13 @@ void A_JetChase(void *thing) } // chase towards player - if (ultimatemode) - P_Thrust(actor, actor->angle, FixedMul(actor->info->speed/2, actor->scale)); - else - P_Thrust(actor, actor->angle, FixedMul(actor->info->speed/4, actor->scale)); + P_Thrust(actor, actor->angle, FixedMul(actor->info->speed/4, actor->scale)); // must adjust height - if (ultimatemode) - { - if (actor->z < (actor->target->z + actor->target->height + FixedMul((64<scale))) - actor->momz += FixedMul(FRACUNIT/2, actor->scale); - else - actor->momz -= FixedMul(FRACUNIT/2, actor->scale); - } + if (actor->z < (actor->target->z + actor->target->height + FixedMul((32<scale))) + actor->momz += FixedMul(FRACUNIT/2, actor->scale); else - { - if (actor->z < (actor->target->z + actor->target->height + FixedMul((32<scale))) - actor->momz += FixedMul(FRACUNIT/2, actor->scale); - else - actor->momz -= FixedMul(FRACUNIT/2, actor->scale); - } + actor->momz -= FixedMul(FRACUNIT/2, actor->scale); } // Function: A_JetbThink @@ -4137,10 +4109,7 @@ void A_JetgShoot(void *thing) A_FaceTarget(actor); P_SpawnMissile(actor, actor->target, (mobjtype_t)actor->info->raisestate); - if (ultimatemode) - actor->reactiontime = actor->info->reactiontime*TICRATE; - else - actor->reactiontime = actor->info->reactiontime*TICRATE*2; + actor->reactiontime = actor->info->reactiontime*TICRATE*2; if (actor->info->attacksound) S_StartSound(actor, actor->info->attacksound); @@ -6463,12 +6432,8 @@ void A_BuzzFly(void *thing) // chase towards player { INT32 dist, realspeed; - const fixed_t mf = 5*(FRACUNIT/4); - if (ultimatemode) - realspeed = FixedMul(FixedMul(actor->info->speed,mf), actor->scale); - else - realspeed = FixedMul(actor->info->speed, actor->scale); + realspeed = FixedMul(actor->info->speed, actor->scale); dist = P_AproxDistance(P_AproxDistance(actor->target->x - actor->x, actor->target->y - actor->y), actor->target->z - actor->z); @@ -9256,10 +9221,7 @@ void A_MultiShot(void *thing) if (!(actor->flags & MF_BOSS)) { - if (ultimatemode) - actor->reactiontime = actor->info->reactiontime*TICRATE; - else - actor->reactiontime = actor->info->reactiontime*TICRATE*2; + actor->reactiontime = actor->info->reactiontime*TICRATE*2; } } @@ -10868,10 +10830,7 @@ void A_BrakFireShot(void *thing) if (!(actor->flags & MF_BOSS)) { - if (ultimatemode) - actor->reactiontime = actor->info->reactiontime*TICRATE; - else - actor->reactiontime = actor->info->reactiontime*TICRATE*2; + actor->reactiontime = actor->info->reactiontime*TICRATE*2; } } diff --git a/src/p_local.h b/src/p_local.h index 6eb3d7a8b..3ee18eab3 100644 --- a/src/p_local.h +++ b/src/p_local.h @@ -99,9 +99,6 @@ typedef struct camera_s // Hold up/down to pan the camera vertically SINT8 dpad_y_held; - // Things used by FS cameras. - fixed_t viewheight; - angle_t startangle; // Camera demobjerization // Info for drawing: position. @@ -121,8 +118,6 @@ typedef struct camera_s fixed_t radius; fixed_t height; - fixed_t relativex; - // Momentums, used to update position. fixed_t momx, momy, momz; @@ -219,7 +214,6 @@ void P_DoJumpShield(player_t *player); void P_BlackOw(player_t *player); void P_ElementalFireTrail(player_t *player); -//void P_DoPityCheck(player_t *player); void P_PlayerThink(player_t *player); void P_PlayerAfterThink(player_t *player); void P_DoPlayerExit(player_t *player); @@ -280,7 +274,6 @@ void P_RemoveMobj(mobj_t *th); void P_RemoveSavegameMobj(mobj_t *th); boolean P_SetPlayerMobjState(mobj_t *mobj, statenum_t state); boolean P_SetMobjState(mobj_t *mobj, statenum_t state); -//void P_RunShields(void); void P_RunOverlays(void); void P_RunShadows(void); void P_MobjThinker(mobj_t *mobj); diff --git a/src/p_mobj.c b/src/p_mobj.c index 29ea543a2..4361fb550 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -11303,16 +11303,7 @@ void P_SpawnMapThing(mapthing_t *mthing) } } - if (ultimatemode) - { - if (i == MT_PITYTV || i == MT_GREENTV || i == MT_YELLOWTV || i == MT_BLUETV || i == MT_BLACKTV || i == MT_WHITETV) - return; // No shields in Ultimate mode - - if (i == MT_SUPERRINGBOX) - return; // No rings in Ultimate mode (except special stages) - } - - if (i == MT_EMMY && (gametype != GT_COOP || ultimatemode || tokenbits == 30 || tokenlist & (1 << tokenbits++))) + if (i == MT_EMMY && (gametype != GT_COOP || tokenbits == 30 || tokenlist & (1 << tokenbits++))) return; // you already got this token, or there are too many, or the gametype's not right // Objectplace landing point diff --git a/src/p_user.c b/src/p_user.c index 24b646ee3..ba39f0472 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -3478,8 +3478,6 @@ void P_ResetCamera(player_t *player, camera_t *thiscam) } } - thiscam->relativex = 0; - thiscam->subsector = R_PointInSubsectorFast(thiscam->x, thiscam->y); thiscam->radius = 20*FRACUNIT;