mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- refactored a few more CVARs.
This commit is contained in:
parent
d476037f45
commit
713250cc64
20 changed files with 45 additions and 80 deletions
|
@ -99,10 +99,7 @@ bool gNoClip;
|
|||
bool gInfiniteAmmo;
|
||||
bool gFullMap;
|
||||
int32_t gUpscaleFactor;
|
||||
int32_t gLevelStats;
|
||||
int32_t gPowerupDuration;
|
||||
int32_t gShowMapTitle;
|
||||
int32_t gFov;
|
||||
int32_t gCenterHoriz;
|
||||
int32_t gDeliriumBlur;
|
||||
|
||||
|
@ -306,9 +303,7 @@ void CONFIG_SetDefaults(void)
|
|||
//ud.display_bonus_screen = 1;
|
||||
//ud.drawweapon = 1;
|
||||
//ud.hudontop = 0; = 1;
|
||||
gLevelStats = 0;
|
||||
gPowerupDuration = 1;
|
||||
gShowMapTitle = 1;
|
||||
//ud.lockout = 0;
|
||||
//ud.m_marker = 1;
|
||||
//ud.maxautosaves = 5;
|
||||
|
@ -337,7 +332,6 @@ void CONFIG_SetDefaults(void)
|
|||
//ud.textscale = 200;
|
||||
//ud.weaponscale = 100;
|
||||
//cl_weaponswitch = 3; // new+empty
|
||||
gFov = 90;
|
||||
gCenterHoriz = 0;
|
||||
gDeliriumBlur = 1;
|
||||
gViewSize = 2;
|
||||
|
|
|
@ -79,10 +79,7 @@ extern bool gInfiniteAmmo;
|
|||
extern bool gFullMap;
|
||||
extern hashtable_t h_gamefuncs;
|
||||
extern int32_t gUpscaleFactor;
|
||||
extern int32_t gLevelStats;
|
||||
extern int32_t gPowerupDuration;
|
||||
extern int32_t gShowMapTitle;
|
||||
extern int32_t gFov;
|
||||
extern int32_t gCenterHoriz;
|
||||
extern int32_t gDeliriumBlur;
|
||||
|
||||
|
|
|
@ -416,12 +416,12 @@ CGameMenuItemChain itemOptionsDisplayColor("COLOR CORRECTION", 3, 66, 60, 180, 0
|
|||
CGameMenuItemChain itemOptionsDisplayMode("VIDEO MODE", 3, 66, 70, 180, 0, &menuOptionsDisplayMode, -1, SetupVideoModeMenu, 0);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolCrosshair("CROSSHAIR:", 3, 66, 80, 180, cl_crosshair, SetCrosshair, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolCenterHoriz("CENTER HORIZON LINE:", 3, 66, 90, 180, gCenterHoriz, SetCenterHoriz, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolLevelStats("LEVEL STATS:", 3, 66, 100, 180, gLevelStats, SetLevelStats, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolLevelStats("LEVEL STATS:", 3, 66, 100, 180, hud_stats, SetLevelStats, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolPowerupDuration("POWERUP DURATION:", 3, 66, 110, 180, gPowerupDuration, SetPowerupDuration, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolShowMapTitle("MAP TITLE:", 3, 66, 120, 180, gShowMapTitle, SetShowMapTitle, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolShowMapTitle("MAP TITLE:", 3, 66, 120, 180, hud_showmapname, SetShowMapTitle, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolMessages("MESSAGES:", 3, 66, 130, 180, gMessageState, SetMessages, NULL, NULL);
|
||||
CGameMenuItemZBool itemOptionsDisplayBoolWidescreen("WIDESCREEN:", 3, 66, 140, 180, r_usenewaspect, SetWidescreen, NULL, NULL);
|
||||
CGameMenuItemSlider itemOptionsDisplayFOV("FOV:", 3, 66, 150, 180, &gFov, 75, 140, 5, SetFOV, -1, -1, kMenuSliderValue);
|
||||
CGameMenuItemSlider itemOptionsDisplayFOV("FOV:", 3, 66, 150, 180, &r_fov.Value, 75, 140, 5, SetFOV, -1, -1, kMenuSliderValue);
|
||||
#ifdef USE_OPENGL
|
||||
CGameMenuItemChain itemOptionsDisplayPolymost("POLYMOST SETUP", 3, 66, 160, 180, 0, &menuOptionsDisplayPolymost, -1, SetupVideoPolymostMenu, 0);
|
||||
#endif
|
||||
|
@ -1146,9 +1146,9 @@ void SetupOptionsMenu(void)
|
|||
menuOptionsDisplay.Add(&itemBloodQAV, false);
|
||||
itemOptionsDisplayBoolCrosshair.at20 = cl_crosshair;
|
||||
itemOptionsDisplayBoolCenterHoriz.at20 = gCenterHoriz;
|
||||
itemOptionsDisplayBoolLevelStats.at20 = gLevelStats;
|
||||
itemOptionsDisplayBoolLevelStats.at20 = hud_stats;
|
||||
itemOptionsDisplayBoolPowerupDuration.at20 = gPowerupDuration;
|
||||
itemOptionsDisplayBoolShowMapTitle.at20 = gShowMapTitle;
|
||||
itemOptionsDisplayBoolShowMapTitle.at20 = hud_showmapname;
|
||||
itemOptionsDisplayBoolMessages.at20 = gMessageState;
|
||||
itemOptionsDisplayBoolWidescreen.at20 = r_usenewaspect;
|
||||
|
||||
|
@ -1479,7 +1479,7 @@ void SetAutoAim(CGameMenuItemZCycle *pItem)
|
|||
|
||||
void SetLevelStats(CGameMenuItemZBool *pItem)
|
||||
{
|
||||
gLevelStats = pItem->at20;
|
||||
hud_stats = pItem->at20;
|
||||
}
|
||||
|
||||
void SetPowerupDuration(CGameMenuItemZBool* pItem)
|
||||
|
@ -1489,7 +1489,7 @@ void SetPowerupDuration(CGameMenuItemZBool* pItem)
|
|||
|
||||
void SetShowMapTitle(CGameMenuItemZBool* pItem)
|
||||
{
|
||||
gShowMapTitle = pItem->at20;
|
||||
hud_showmapname = pItem->at20;
|
||||
}
|
||||
|
||||
void SetWeaponSwitch(CGameMenuItemZCycle *pItem)
|
||||
|
@ -1592,7 +1592,7 @@ void SetWidescreen(CGameMenuItemZBool *pItem)
|
|||
|
||||
void SetFOV(CGameMenuItemSlider *pItem)
|
||||
{
|
||||
gFov = pItem->nValue;
|
||||
r_fov = pItem->nValue;
|
||||
}
|
||||
|
||||
void SetupVideoModeMenu(CGameMenuItemChain *pItem)
|
||||
|
|
|
@ -567,7 +567,7 @@ static MenuEntry_t ME_DISPLAYSETUP_ASPECTRATIO = MAKE_MENUENTRY( "Widescreen:",
|
|||
static MenuOption_t MEO_DISPLAYSETUP_VOXELS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &usevoxels);
|
||||
static MenuEntry_t ME_DISPLAYSETUP_VOXELS = MAKE_MENUENTRY( "Voxels:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_DISPLAYSETUP_VOXELS, Option );
|
||||
|
||||
static MenuRangeInt32_t MEO_DISPLAYSETUP_FOV = MAKE_MENURANGE( &ud.fov, &MF_Redfont, 70, 120, 0, 11, 1 );
|
||||
static MenuRangeInt32_t MEO_DISPLAYSETUP_FOV = MAKE_MENURANGE( r_fov.Value, &MF_Redfont, 70, 120, 0, 11, 1 );
|
||||
static MenuEntry_t ME_DISPLAYSETUP_FOV = MAKE_MENUENTRY( "FOV:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_DISPLAYSETUP_FOV, RangeInt32 );
|
||||
|
||||
|
||||
|
@ -613,7 +613,7 @@ static MenuOption_t MEO_SCREENSETUP_SCREENSIZE_TWO = MAKE_MENUOPTION( &MF_Redfon
|
|||
static MenuEntry_t ME_SCREENSETUP_SCREENSIZE = MAKE_MENUENTRY( "Status bar:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_SCREENSIZE, RangeInt32 );
|
||||
static MenuRangeInt32_t MEO_SCREENSETUP_TEXTSIZE = MAKE_MENURANGE( &ud.textscale, &MF_Redfont, 100, 400, 0, 16, 2 );
|
||||
static MenuEntry_t ME_SCREENSETUP_TEXTSIZE = MAKE_MENUENTRY( s_Scale, &MF_Redfont, &MEF_BigOptions_Apply, &MEO_SCREENSETUP_TEXTSIZE, RangeInt32 );
|
||||
static MenuOption_t MEO_SCREENSETUP_LEVELSTATS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &ud.levelstats);
|
||||
static MenuOption_t MEO_SCREENSETUP_LEVELSTATS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &hud_stats.Value);
|
||||
static MenuEntry_t ME_SCREENSETUP_LEVELSTATS = MAKE_MENUENTRY( "Level stats:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_LEVELSTATS, Option );
|
||||
|
||||
|
||||
|
|
|
@ -779,11 +779,6 @@ static int osdcmd_cvar_set_game(osdcmdptr_t parm)
|
|||
videoSetGameMode(fullscreen, xres, yres, bpp, gUpscaleFactor);
|
||||
}
|
||||
}
|
||||
else if (!Bstrcasecmp(parm->name, "r_size"))
|
||||
{
|
||||
//ud.statusbarmode = (ud.screen_size < 8);
|
||||
viewResizeView(gViewSize);
|
||||
}
|
||||
else if (!Bstrcasecmp(parm->name, "r_maxfps") || !Bstrcasecmp(parm->name, "r_maxfpsoffset"))
|
||||
{
|
||||
if (r_maxfps != 0) r_maxfps = clamp(r_maxfps, 30, 1000);
|
||||
|
|
|
@ -1170,7 +1170,7 @@ void viewDrawStats(PLAYER *pPlayer, int x, int y)
|
|||
{
|
||||
const int nFont = 3;
|
||||
char buffer[128];
|
||||
if (!gLevelStats)
|
||||
if (!hud_stats)
|
||||
return;
|
||||
|
||||
int nHeight;
|
||||
|
@ -1185,7 +1185,7 @@ void viewDrawStats(PLAYER *pPlayer, int x, int y)
|
|||
if (gGameOptions.nGameType != 3)
|
||||
sprintf(buffer, "K:%d/%d", gKillMgr.at4, gKillMgr.at0);
|
||||
else
|
||||
sprintf(buffer, "K:%d", pPlayer->fragCount);
|
||||
sprintf(buffer, "F:%d", pPlayer->fragCount);
|
||||
viewDrawText(3, buffer, x, y, 20, 0, 0, true, 256);
|
||||
y += nHeight+1;
|
||||
sprintf(buffer, "S:%d/%d", gSecretMgr.at4+gSecretMgr.at8, gSecretMgr.at0);
|
||||
|
@ -1266,7 +1266,7 @@ void viewDrawPowerUps(PLAYER* pPlayer)
|
|||
|
||||
void viewDrawMapTitle(void)
|
||||
{
|
||||
if (!gShowMapTitle || gGameMenuMgr.m_bActive)
|
||||
if (!hud_showmapname || gGameMenuMgr.m_bActive)
|
||||
return;
|
||||
|
||||
int const fadeStartTic = int((videoGetRenderMode() == REND_CLASSIC ? 1.25f : 1.f)*kTicsPerSec);
|
||||
|
@ -3080,7 +3080,7 @@ void viewDrawScreen(void)
|
|||
newaspect_enable = 1;
|
||||
videoSetCorrectedAspect();
|
||||
}
|
||||
renderSetAspect(Blrintf(float(viewingrange) * tanf(gFov * (PI/360.f))), yxaspect);
|
||||
renderSetAspect(Blrintf(float(viewingrange) * tanf(r_fov * (PI/360.f))), yxaspect);
|
||||
int cX = gView->pSprite->x;
|
||||
int cY = gView->pSprite->y;
|
||||
int cZ = gView->zView;
|
||||
|
|
|
@ -207,11 +207,13 @@ CUSTOM_CVARD(Int, hud_custom, 0, CVAR_ARCHIVE|CVAR_NOINITCALL, "change the custo
|
|||
else if (self >= hud_statusbarrange) self = hud_statusbarrange - 1;
|
||||
}
|
||||
|
||||
//{ "hud_stats", "enable/disable level statistics display", (void*)&ud.levelstats, CVAR_BOOL, 0, 1 },
|
||||
//{ "hud_stats", "enable/disable level statistics display", (void*)&gLevelStats, CVAR_BOOL, 0, 1 },
|
||||
|
||||
//{ "hud_showmapname", "enable/disable map name display on load", (void*)&hud_showmapname, CVAR_BOOL, 0, 1 },
|
||||
//{ "hud_showmaptitle", "enable/disable displaying the map title at the beginning of the maps", (void*)&gShowMapTitle, CVAR_BOOL, 0, 1 },
|
||||
CVARD(Bool, hud_stats, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "enable/disable level statistics display")
|
||||
CVARD(Bool, hud_showmapname, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "enable/disable map name display on load")
|
||||
CUSTOM_CVARD(Int, r_fov, 90, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "change the field of view") //, (void*)r_fov.Value, CVAR_INT, 60, 140
|
||||
{
|
||||
if (self < 60) self = 60;
|
||||
else if (self < 140) self = 140;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
|
@ -219,8 +221,6 @@ CUSTOM_CVARD(Int, hud_custom, 0, CVAR_ARCHIVE|CVAR_NOINITCALL, "change the custo
|
|||
// DN3D
|
||||
static osdcvardata_t cvars_game[] =
|
||||
{
|
||||
|
||||
{ "color", "changes player palette", (void *)&ud.color, CVAR_INT|CVAR_MULTI, 0, MAXPALOOKUPS-1 },
|
||||
|
||||
{ "in_joystick","enables input from the joystick if it is present",(void *)&ud.setup.usejoystick, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
{ "in_mouse","enables input from the mouse if it is present",(void *)&ud.setup.usemouse, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
|
@ -235,13 +235,11 @@ CUSTOM_CVARD(Int, hud_custom, 0, CVAR_ARCHIVE|CVAR_NOINITCALL, "change the custo
|
|||
{ "in_mousemode", "toggles vertical mouse view", (void *)&g_myAimMode, CVAR_BOOL, 0, 1 },
|
||||
{ "in_mousesmoothing", "enable/disable mouse input smoothing", (void *)&ud.config.SmoothInput, CVAR_BOOL, 0, 1 },
|
||||
|
||||
{ "fov", "change the field of view", (void*)&ud.fov, CVAR_INT, 60, 140 },
|
||||
{ "r_camrefreshdelay", "minimum delay between security camera sprite updates, 120 = 1 second", (void *)&ud.camera_time, CVAR_INT, 1, 240 },
|
||||
{ "r_drawweapon", "enable/disable weapon drawing", (void *)&ud.drawweapon, CVAR_INT, 0, 2 },
|
||||
{ "r_showfps", "show the frame rate counter", (void *)&ud.showfps, CVAR_INT, 0, 3 },
|
||||
{ "r_showfpsperiod", "time in seconds before averaging min and max stats for r_showfps 2+", (void *)&ud.frameperiod, CVAR_INT, 0, 5 },
|
||||
{ "r_shadows", "enable/disable sprite and model shadows", (void *)&ud.shadows, CVAR_BOOL, 0, 1 },
|
||||
{ "r_size", "change size of viewable area", (void *)&ud.screen_size, CVAR_INT|CVAR_FUNCPTR, 0, 64 },
|
||||
{ "r_rotatespritenowidescreen", "pass bit 1024 to all CON rotatesprite calls", (void *)&g_rotatespriteNoWidescreen, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
{ "r_precache", "enable/disable the pre-level caching routine", (void *)&ud.config.useprecache, CVAR_BOOL, 0, 1 },
|
||||
|
||||
|
@ -278,9 +276,6 @@ CUSTOM_CVARD(Int, hud_custom, 0, CVAR_ARCHIVE|CVAR_NOINITCALL, "change the custo
|
|||
|
||||
static osdcvardata_t cvars_game[] =
|
||||
{
|
||||
{ "color", "changes player palette", (void *)&ud.color, CVAR_INT|CVAR_MULTI, 0, MAXPALOOKUPS-1 },
|
||||
|
||||
{ "fov", "change the field of view", (void *)&ud.fov, CVAR_INT|CVAR_FUNCPTR, 75, 120 },
|
||||
|
||||
{ "in_joystick","enables input from the joystick if it is present",(void *)&ud.setup.usejoystick, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
{ "in_mouse","enables input from the mouse if it is present",(void *)&ud.setup.usemouse, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
|
@ -300,7 +295,6 @@ CUSTOM_CVARD(Int, hud_custom, 0, CVAR_ARCHIVE|CVAR_NOINITCALL, "change the custo
|
|||
{ "r_showfps", "show the frame rate counter", (void *)&ud.showfps, CVAR_INT, 0, 3 },
|
||||
{ "r_showfpsperiod", "time in seconds before averaging min and max stats for r_showfps 2+", (void *)&ud.frameperiod, CVAR_INT, 0, 5 },
|
||||
{ "r_shadows", "enable/disable sprite and model shadows", (void *)&ud.shadows, CVAR_BOOL, 0, 1 },
|
||||
{ "r_size", "change size of viewable area", (void *)&ud.screen_size, CVAR_INT|CVAR_FUNCPTR, 0, 64 },
|
||||
{ "r_rotatespritenowidescreen", "pass bit 1024 to all CON rotatesprite calls", (void *)&g_rotatespriteNoWidescreen, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
{ "r_precache", "enable/disable the pre-level caching routine", (void *)&ud.config.useprecache, CVAR_BOOL, 0, 1 },
|
||||
|
||||
|
@ -340,13 +334,7 @@ int32_t registerosdcommands(void)
|
|||
char buffer[256];
|
||||
static osdcvardata_t cvars_game[] =
|
||||
{
|
||||
|
||||
//
|
||||
// { "color", "changes player palette", (void *)&ud.color, CVAR_INT|CVAR_MULTI, 0, MAXPALOOKUPS-1 },
|
||||
|
||||
{ "horizcenter", "enable/disable centered horizon line", (void *)&gCenterHoriz, CVAR_BOOL, 0, 1 },
|
||||
{ "deliriumblur", "enable/disable delirium blur effect(polymost)", (void *)&gDeliriumBlur, CVAR_BOOL, 0, 1 },
|
||||
{ "fov", "change the field of view", (void *)&gFov, CVAR_INT|CVAR_FUNCPTR, 75, 120 },
|
||||
{ "in_joystick","enables input from the joystick if it is present",(void *)&gSetup.usejoystick, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
{ "in_mouse","enables input from the mouse if it is present",(void *)&gSetup.usemouse, CVAR_BOOL|CVAR_FUNCPTR, 0, 1 },
|
||||
|
||||
|
@ -415,5 +403,12 @@ int32_t registerosdcommands(void)
|
|||
|
||||
{ "hud_messages", "enable/disable showing messages", (void*)&gMessageState, CVAR_BOOL, 0, 1 },
|
||||
{ "hud_powerupduration", "enable/disable displaying the remaining seconds for power-ups", (void*)&gPowerupDuration, CVAR_BOOL, 0, 1 },
|
||||
|
||||
// Currently unavailable due to dependency on an obsolete OpenGL feature
|
||||
{ "deliriumblur", "enable/disable delirium blur effect(polymost)", (void *)&gDeliriumBlur, CVAR_BOOL, 0, 1 },
|
||||
|
||||
// This needs some serious internal cleanup first, the implementation is all over the place and prone to whacking the user setting.
|
||||
{ "color", "changes player palette", (void *)&ud.color, CVAR_INT|CVAR_MULTI, 0, MAXPALOOKUPS-1 },
|
||||
|
||||
*/
|
||||
#endif
|
||||
|
|
|
@ -52,6 +52,9 @@ EXTERN_CVAR(Int, mus_volume)
|
|||
EXTERN_CVAR(Int, hud_layout)
|
||||
EXTERN_CVAR(Int, hud_scale)
|
||||
EXTERN_CVAR(Int, hud_custom)
|
||||
EXTERN_CVAR(Bool, hud_stats)
|
||||
EXTERN_CVAR(Bool, hud_showmapname)
|
||||
EXTERN_CVAR(Int, r_fov)
|
||||
|
||||
extern int hud_statusbarrange; // will be set by the game's configuration setup.
|
||||
bool G_ChangeHudLayout(int direction);
|
||||
|
|
|
@ -258,9 +258,7 @@ void CONFIG_SetDefaults(void)
|
|||
ud.detail = 0;
|
||||
ud.display_bonus_screen = 1;
|
||||
ud.drawweapon = 1;
|
||||
ud.fov = 90;
|
||||
ud.hudontop = 0;
|
||||
ud.levelstats = 0;
|
||||
ud.lockout = 0;
|
||||
ud.m_marker = 1;
|
||||
ud.menu_scrollbartilenum = -1;
|
||||
|
|
|
@ -105,8 +105,6 @@ int32_t ticrandomseed;
|
|||
|
||||
GAME_STATIC GAME_INLINE int32_t G_MoveLoop(void);
|
||||
|
||||
int32_t hud_showmapname = 1;
|
||||
|
||||
int32_t g_levelTextTime = 0;
|
||||
|
||||
int32_t r_maxfps = 60;
|
||||
|
@ -836,7 +834,7 @@ void G_DrawRooms(int32_t playerNum, int32_t smoothRatio)
|
|||
#endif
|
||||
)));
|
||||
|
||||
vr = Blrintf(float(vr) * tanf(ud.fov * (fPI/360.f)));
|
||||
vr = Blrintf(float(vr) * tanf(r_fov * (fPI/360.f)));
|
||||
|
||||
if (!r_usenewaspect)
|
||||
renderSetAspect(vr, yxaspect);
|
||||
|
|
|
@ -187,7 +187,7 @@ typedef struct {
|
|||
int32_t menu_scrollbartilenum, menu_scrollbarz, menu_scrollcursorz;
|
||||
|
||||
int32_t entered_name,screen_tilting,shadows,fta_on,executions;
|
||||
int32_t showfps,levelstats,m_coop,coop,screen_size,lockout;
|
||||
int32_t showfps,m_coop,coop,screen_size,lockout;
|
||||
int32_t playerai,angleinterpolation;
|
||||
|
||||
int32_t respawn_monsters,respawn_items,respawn_inventory,recstat,monsters_off,brightness;
|
||||
|
@ -206,8 +206,6 @@ typedef struct {
|
|||
|
||||
uint32_t userbytever;
|
||||
|
||||
int32_t fov;
|
||||
|
||||
#if !defined LUNATIC
|
||||
fix16_t cameraq16ang, cameraq16horiz;
|
||||
int16_t camerasect;
|
||||
|
@ -307,7 +305,6 @@ extern int32_t g_levelTextTime;
|
|||
extern int32_t g_quitDeadline;
|
||||
extern int32_t g_restorePalette;
|
||||
extern int32_t hud_glowingquotes;
|
||||
extern int32_t hud_showmapname;
|
||||
extern int32_t r_maxfps;
|
||||
extern int32_t r_maxfpsoffset;
|
||||
extern int32_t tempwallptr;
|
||||
|
|
|
@ -1464,7 +1464,7 @@ int32_t __fastcall VM_GetUserdef(int32_t labelNum, int const lParm2)
|
|||
case USERDEFS_WEAPONSWAY: labelNum = cl_weaponsway; break;
|
||||
case USERDEFS_ANGLEINTERPOLATION: labelNum = ud.angleinterpolation; break;
|
||||
case USERDEFS_OBITUARIES: labelNum = cl_obituaries; break;
|
||||
case USERDEFS_LEVELSTATS: labelNum = ud.levelstats; break;
|
||||
case USERDEFS_LEVELSTATS: labelNum = hud_stats; break;
|
||||
case USERDEFS_CROSSHAIRSCALE: labelNum = cl_crosshairscale; break;
|
||||
case USERDEFS_ALTHUD: labelNum = ud.althud; break;
|
||||
case USERDEFS_DISPLAY_BONUS_SCREEN: labelNum = ud.display_bonus_screen; break;
|
||||
|
@ -1553,7 +1553,7 @@ int32_t __fastcall VM_GetUserdef(int32_t labelNum, int const lParm2)
|
|||
case USERDEFS_AUTOSAVE: labelNum = cl_autosave; break;
|
||||
case USERDEFS_DRAW_Y: labelNum = rotatesprite_y_offset; break;
|
||||
case USERDEFS_DRAW_YXASPECT: labelNum = rotatesprite_yxaspect; break;
|
||||
case USERDEFS_FOV: labelNum = ud.fov; break;
|
||||
case USERDEFS_FOV: labelNum = r_fov; break;
|
||||
case USERDEFS_GAMEPADACTIVE: labelNum = (CONTROL_LastSeenInput == LastSeenInput::Joystick); break;
|
||||
|
||||
default: EDUKE32_UNREACHABLE_SECTION(labelNum = -1; break);
|
||||
|
@ -1665,7 +1665,7 @@ void __fastcall VM_SetUserdef(int const labelNum, int const lParm2, int32_t cons
|
|||
case USERDEFS_WEAPONSWAY: cl_weaponsway = iSet; break; //!!!
|
||||
case USERDEFS_ANGLEINTERPOLATION: ud.angleinterpolation = iSet; break;
|
||||
case USERDEFS_OBITUARIES: cl_obituaries = iSet; break; //!!!
|
||||
case USERDEFS_LEVELSTATS: ud.levelstats = iSet; break; //!!!
|
||||
case USERDEFS_LEVELSTATS: /*hud_stats = iSet;*/ break; //!!! No, the script should have no business whatsoever changing this one!
|
||||
case USERDEFS_CROSSHAIRSCALE: cl_crosshairscale = iSet; break;
|
||||
case USERDEFS_ALTHUD: ud.althud = iSet; break;
|
||||
case USERDEFS_DISPLAY_BONUS_SCREEN: ud.display_bonus_screen = iSet; break;
|
||||
|
@ -1756,7 +1756,7 @@ void __fastcall VM_SetUserdef(int const labelNum, int const lParm2, int32_t cons
|
|||
case USERDEFS_AUTOSAVE: cl_autosave = iSet; break; //!!!
|
||||
case USERDEFS_DRAW_Y: rotatesprite_y_offset = iSet; break;
|
||||
case USERDEFS_DRAW_YXASPECT: rotatesprite_yxaspect = iSet; break;
|
||||
case USERDEFS_FOV: ud.fov = iSet; break;
|
||||
case USERDEFS_FOV: r_fov = iSet; break; //!!!
|
||||
case USERDEFS_NEWGAMECUSTOMOPEN:
|
||||
for (unsigned int b = 0; b < MAXMENUGAMEPLAYENTRIES; ++b)
|
||||
if (iSet & (1u<<b))
|
||||
|
|
|
@ -566,7 +566,7 @@ static MenuEntry_t ME_DISPLAYSETUP_ASPECTRATIO = MAKE_MENUENTRY( "Widescreen:",
|
|||
static MenuOption_t MEO_DISPLAYSETUP_VOXELS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &usevoxels);
|
||||
static MenuEntry_t ME_DISPLAYSETUP_VOXELS = MAKE_MENUENTRY( "Voxels:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_DISPLAYSETUP_VOXELS, Option );
|
||||
|
||||
static MenuRangeInt32_t MEO_DISPLAYSETUP_FOV = MAKE_MENURANGE( &ud.fov, &MF_Redfont, 70, 120, 0, 11, 1 );
|
||||
static MenuRangeInt32_t MEO_DISPLAYSETUP_FOV = MAKE_MENURANGE( &r_fov.Value, &MF_Redfont, 70, 120, 0, 11, 1 );
|
||||
static MenuEntry_t ME_DISPLAYSETUP_FOV = MAKE_MENUENTRY( "FOV:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_DISPLAYSETUP_FOV, RangeInt32 );
|
||||
|
||||
|
||||
|
@ -612,7 +612,7 @@ static MenuOption_t MEO_SCREENSETUP_SCREENSIZE_TWO = MAKE_MENUOPTION( &MF_Redfon
|
|||
static MenuEntry_t ME_SCREENSETUP_SCREENSIZE = MAKE_MENUENTRY( "Status bar:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_SCREENSIZE, RangeInt32 );
|
||||
static MenuRangeInt32_t MEO_SCREENSETUP_TEXTSIZE = MAKE_MENURANGE( &ud.textscale, &MF_Redfont, 100, 400, 0, 16, 2 );
|
||||
static MenuEntry_t ME_SCREENSETUP_TEXTSIZE = MAKE_MENUENTRY( s_Scale, &MF_Redfont, &MEF_BigOptions_Apply, &MEO_SCREENSETUP_TEXTSIZE, RangeInt32 );
|
||||
static MenuOption_t MEO_SCREENSETUP_LEVELSTATS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &ud.levelstats);
|
||||
static MenuOption_t MEO_SCREENSETUP_LEVELSTATS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &hud_stats.Value);
|
||||
static MenuEntry_t ME_SCREENSETUP_LEVELSTATS = MAKE_MENUENTRY( "Level stats:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_LEVELSTATS, Option );
|
||||
|
||||
|
||||
|
|
|
@ -1446,11 +1446,6 @@ static int osdcmd_cvar_set_game(osdcmdptr_t parm)
|
|||
videoSetGameMode(fullscreen, xres, yres, bpp, ud.detail);
|
||||
}
|
||||
}
|
||||
else if (!Bstrcasecmp(parm->name, "r_size"))
|
||||
{
|
||||
ud.statusbarmode = (ud.screen_size < 8);
|
||||
G_UpdateScreenArea();
|
||||
}
|
||||
else if (!Bstrcasecmp(parm->name, "r_maxfps") || !Bstrcasecmp(parm->name, "r_maxfpsoffset"))
|
||||
{
|
||||
if (r_maxfps != 0) r_maxfps = clamp(r_maxfps, 30, 1000);
|
||||
|
|
|
@ -1209,7 +1209,7 @@ void G_DisplayRest(int32_t smoothratio)
|
|||
G_PrintFPS();
|
||||
|
||||
// JBF 20040124: display level stats in screen corner
|
||||
if (ud.overhead_on != 2 && ud.levelstats && VM_OnEvent(EVENT_DISPLAYLEVELSTATS, g_player[screenpeek].ps->i, screenpeek) == 0)
|
||||
if (ud.overhead_on != 2 && hud_stats && VM_OnEvent(EVENT_DISPLAYLEVELSTATS, g_player[screenpeek].ps->i, screenpeek) == 0)
|
||||
{
|
||||
auto const myps = g_player[myconnectindex].ps;
|
||||
|
||||
|
|
|
@ -233,7 +233,6 @@ void CONFIG_SetDefaults(void)
|
|||
ud.color = 0;
|
||||
ud.detail = 0;
|
||||
ud.drawweapon = 1;
|
||||
ud.levelstats = 0;
|
||||
ud.lockout = 0;
|
||||
ud.m_ffire = 1;
|
||||
ud.m_marker = 1;
|
||||
|
@ -280,7 +279,6 @@ void CONFIG_SetDefaults(void)
|
|||
ud.menu_scrollbartilenum = -1;
|
||||
ud.menu_scrollbarz = 65536;
|
||||
ud.menu_scrollcursorz = 65536;
|
||||
ud.fov = 90;
|
||||
|
||||
ud.config.CheckForUpdates = 1;
|
||||
|
||||
|
|
|
@ -99,8 +99,6 @@ int32_t ticrandomseed;
|
|||
|
||||
GAME_STATIC GAME_INLINE int32_t G_MoveLoop(void);
|
||||
|
||||
int32_t hud_showmapname = 1;
|
||||
|
||||
int32_t g_levelTextTime = 0;
|
||||
|
||||
int32_t r_maxfps = 60;
|
||||
|
@ -1020,7 +1018,7 @@ void G_DrawRooms(int32_t playerNum, int32_t smoothRatio)
|
|||
#endif
|
||||
)));
|
||||
|
||||
viewingRange = Blrintf(float(vr) * tanf(ud.fov * (PI/360.f)));
|
||||
viewingRange = Blrintf(float(vr) * tanf(r_fov * (PI/360.f)));
|
||||
|
||||
if (!RRRA || !pPlayer->drug_mode)
|
||||
{
|
||||
|
|
|
@ -166,7 +166,7 @@ typedef struct {
|
|||
int32_t menu_scrollbartilenum, menu_scrollbarz, menu_scrollcursorz;
|
||||
|
||||
int32_t entered_name,screen_tilting,shadows,fta_on,executions;
|
||||
int32_t showfps,levelstats,m_coop,coop,screen_size,lockout,crosshair;
|
||||
int32_t showfps,m_coop,coop,screen_size,lockout,crosshair;
|
||||
int32_t playerai,angleinterpolation;
|
||||
|
||||
int32_t respawn_monsters,respawn_items,respawn_inventory,recstat,monsters_off,brightness;
|
||||
|
@ -185,8 +185,6 @@ typedef struct {
|
|||
|
||||
uint32_t userbytever;
|
||||
|
||||
int32_t fov;
|
||||
|
||||
fix16_t cameraq16ang, cameraq16horiz;
|
||||
int16_t camerasect;
|
||||
int16_t pause_on,from_bonus;
|
||||
|
@ -277,7 +275,6 @@ extern int32_t g_levelTextTime;
|
|||
extern int32_t g_quitDeadline;
|
||||
extern int32_t g_restorePalette;
|
||||
extern int32_t hud_glowingquotes;
|
||||
extern int32_t hud_showmapname;
|
||||
extern int32_t r_maxfps;
|
||||
extern int32_t r_maxfpsoffset;
|
||||
extern int32_t tempwallptr;
|
||||
|
|
|
@ -548,7 +548,7 @@ static MenuEntry_t ME_DISPLAYSETUP_ASPECTRATIO = MAKE_MENUENTRY( "Widescreen:",
|
|||
#endif
|
||||
|
||||
|
||||
static MenuRangeInt32_t MEO_DISPLAYSETUP_FOV = MAKE_MENURANGE( &ud.fov, &MF_Redfont, 75, 120, 0, 10, 0 );
|
||||
static MenuRangeInt32_t MEO_DISPLAYSETUP_FOV = MAKE_MENURANGE( &r_fov.Value, &MF_Redfont, 75, 120, 0, 10, 0 );
|
||||
static MenuEntry_t ME_DISPLAYSETUP_FOV = MAKE_MENUENTRY( "FOV:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_DISPLAYSETUP_FOV, RangeInt32 );
|
||||
|
||||
|
||||
|
@ -589,7 +589,7 @@ static MenuRangeInt32_t MEO_SCREENSETUP_SCREENSIZE = MAKE_MENURANGE( &vpsize, &M
|
|||
static MenuEntry_t ME_SCREENSETUP_SCREENSIZE = MAKE_MENUENTRY( "Status bar:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_SCREENSIZE, RangeInt32 );
|
||||
static MenuRangeInt32_t MEO_SCREENSETUP_TEXTSIZE = MAKE_MENURANGE( &ud.textscale, &MF_Redfont, 100, 400, 0, 16, 2 );
|
||||
static MenuEntry_t ME_SCREENSETUP_TEXTSIZE = MAKE_MENUENTRY( s_Scale, &MF_Redfont, &MEF_BigOptions_Apply, &MEO_SCREENSETUP_TEXTSIZE, RangeInt32 );
|
||||
static MenuOption_t MEO_SCREENSETUP_LEVELSTATS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &ud.levelstats);
|
||||
static MenuOption_t MEO_SCREENSETUP_LEVELSTATS = MAKE_MENUOPTION(&MF_Redfont, &MEOS_OffOn, &hud_stats.Value);
|
||||
static MenuEntry_t ME_SCREENSETUP_LEVELSTATS = MAKE_MENUENTRY( "Level stats:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_LEVELSTATS, Option );
|
||||
|
||||
|
||||
|
|
|
@ -1202,7 +1202,7 @@ void G_DisplayRest(int32_t smoothratio)
|
|||
G_PrintFPS();
|
||||
|
||||
// JBF 20040124: display level stats in screen corner
|
||||
if (ud.overhead_on != 2 && ud.levelstats)
|
||||
if (ud.overhead_on != 2 && hud_stats)
|
||||
{
|
||||
DukePlayer_t const * const myps = g_player[myconnectindex].ps;
|
||||
int const sbarshift = RR ? 15 : 16;
|
||||
|
|
Loading…
Reference in a new issue