mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
[Et tu] DisableSpecialMapIDs=1 (#611)
This commit is contained in:
@@ -48,6 +48,7 @@ The following settings were moved into [`<DAT>/config/game.cfg`](files/ce.dat/co
|
|||||||
| `Misc` | `ViewXPos` | `start` | `worldmap_view_x` |
|
| `Misc` | `ViewXPos` | `start` | `worldmap_view_x` |
|
||||||
| `Misc` | `ViewYPos` | `start` | `worldmap_view_y` |
|
| `Misc` | `ViewYPos` | `start` | `worldmap_view_y` |
|
||||||
| `Misc` | `StartGDialogFix` | `dialog` | `start_gdialog_fix` |
|
| `Misc` | `StartGDialogFix` | `dialog` | `start_gdialog_fix` |
|
||||||
|
| `Misc` | `DisableSpecialMapIDs` | `maps` | `disable_special_map_ids` |
|
||||||
|
|
||||||
## Opcodes / Metarules
|
## Opcodes / Metarules
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ model_female_default=hfjmps
|
|||||||
; Set to 2 to make the pipboy available by only skipping the vault suit movie check.
|
; Set to 2 to make the pipboy available by only skipping the vault suit movie check.
|
||||||
pipboy=0
|
pipboy=0
|
||||||
|
|
||||||
|
[maps]
|
||||||
|
; Set to 1 to apply transition tile, elevation, and rotation overrides on all maps,
|
||||||
|
; including Fallout 2 map IDs 19 and 37.
|
||||||
|
disable_special_map_ids=0
|
||||||
|
|
||||||
[karma]
|
[karma]
|
||||||
; FRM numbers for karma icons on the character screen. Number of points entries should be 1 less than number of frms entries.
|
; FRM numbers for karma icons on the character screen. Number of points entries should be 1 less than number of frms entries.
|
||||||
; Example: frms=47,48,49 points=-100,100
|
; Example: frms=47,48,49 points=-100,100
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ namespace fallout {
|
|||||||
#define CONTENT_CONFIG_START_SECTION "start"
|
#define CONTENT_CONFIG_START_SECTION "start"
|
||||||
#define CONTENT_CONFIG_KARMA_SECTION "karma"
|
#define CONTENT_CONFIG_KARMA_SECTION "karma"
|
||||||
#define CONTENT_CONFIG_ITEMS_SECTION "items"
|
#define CONTENT_CONFIG_ITEMS_SECTION "items"
|
||||||
|
#define CONTENT_CONFIG_MAPS_SECTION "maps"
|
||||||
#define CONTENT_CONFIG_DIALOG_SECTION "dialog"
|
#define CONTENT_CONFIG_DIALOG_SECTION "dialog"
|
||||||
#define CONTENT_CONFIG_MAIN_MENU_SECTION "main_menu"
|
#define CONTENT_CONFIG_MAIN_MENU_SECTION "main_menu"
|
||||||
#define CONTENT_CONFIG_MOVIES_SECTION "movies"
|
#define CONTENT_CONFIG_MOVIES_SECTION "movies"
|
||||||
|
|||||||
@@ -184,6 +184,8 @@ namespace {
|
|||||||
{ kSfallMisc, "FemaleStartModel", CONTENT_CONFIG_START_SECTION, "model_female", "hfprim" },
|
{ kSfallMisc, "FemaleStartModel", CONTENT_CONFIG_START_SECTION, "model_female", "hfprim" },
|
||||||
{ kSfallMisc, "FemaleDefaultModel", CONTENT_CONFIG_START_SECTION, "model_female_default", "hfjmps" },
|
{ kSfallMisc, "FemaleDefaultModel", CONTENT_CONFIG_START_SECTION, "model_female_default", "hfjmps" },
|
||||||
{ kSfallMisc, "PipBoyAvailableAtGameStart", CONTENT_CONFIG_START_SECTION, "pipboy", "0" },
|
{ kSfallMisc, "PipBoyAvailableAtGameStart", CONTENT_CONFIG_START_SECTION, "pipboy", "0" },
|
||||||
|
// [maps]
|
||||||
|
{ kSfallMisc, "DisableSpecialMapIDs", CONTENT_CONFIG_MAPS_SECTION, "disable_special_map_ids", "0" },
|
||||||
// [karma]
|
// [karma]
|
||||||
{ kSfallMisc, "KarmaFRMs", CONTENT_CONFIG_KARMA_SECTION, "frms" },
|
{ kSfallMisc, "KarmaFRMs", CONTENT_CONFIG_KARMA_SECTION, "frms" },
|
||||||
{ kSfallMisc, "KarmaPoints", CONTENT_CONFIG_KARMA_SECTION, "points" },
|
{ kSfallMisc, "KarmaPoints", CONTENT_CONFIG_KARMA_SECTION, "points" },
|
||||||
|
|||||||
+6
-1
@@ -12,6 +12,7 @@
|
|||||||
#include "character_editor.h"
|
#include "character_editor.h"
|
||||||
#include "color.h"
|
#include "color.h"
|
||||||
#include "combat.h"
|
#include "combat.h"
|
||||||
|
#include "content_config.h"
|
||||||
#include "critter.h"
|
#include "critter.h"
|
||||||
#include "cycle.h"
|
#include "cycle.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
@@ -137,6 +138,7 @@ static TileData _square_data[ELEVATION_COUNT];
|
|||||||
|
|
||||||
// 0x631D28 map_state
|
// 0x631D28 map_state
|
||||||
static MapTransition gMapTransition;
|
static MapTransition gMapTransition;
|
||||||
|
static bool disableSpecialMapIds;
|
||||||
|
|
||||||
// 0x631D38 map_display_rect
|
// 0x631D38 map_display_rect
|
||||||
static Rect gIsoWindowRect;
|
static Rect gIsoWindowRect;
|
||||||
@@ -287,6 +289,8 @@ void isoExit()
|
|||||||
// 0x481FB4
|
// 0x481FB4
|
||||||
void mapInit()
|
void mapInit()
|
||||||
{
|
{
|
||||||
|
configGetBool(&gContentConfig, CONTENT_CONFIG_MAPS_SECTION, "disable_special_map_ids", &disableSpecialMapIds, false);
|
||||||
|
|
||||||
if (settings.system.executableIsMapper()) {
|
if (settings.system.executableIsMapper()) {
|
||||||
_map_scroll_refresh = isoWindowRefreshRectMapper;
|
_map_scroll_refresh = isoWindowRefreshRectMapper;
|
||||||
}
|
}
|
||||||
@@ -1332,7 +1336,8 @@ int mapHandleTransition()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gMapTransition.tile != -1 && gMapTransition.tile != 0
|
if (gMapTransition.tile != -1 && gMapTransition.tile != 0
|
||||||
&& gMapHeader.index != MAP_MODOC_BEDNBREAKFAST && gMapHeader.index != MAP_THE_SQUAT_A
|
&& (disableSpecialMapIds
|
||||||
|
|| (gMapHeader.index != MAP_MODOC_BEDNBREAKFAST && gMapHeader.index != MAP_THE_SQUAT_A))
|
||||||
&& elevationIsValid(gMapTransition.elevation)) {
|
&& elevationIsValid(gMapTransition.elevation)) {
|
||||||
objectSetLocation(gDude, gMapTransition.tile, gMapTransition.elevation, nullptr);
|
objectSetLocation(gDude, gMapTransition.tile, gMapTransition.elevation, nullptr);
|
||||||
mapSetElevation(gMapTransition.elevation);
|
mapSetElevation(gMapTransition.elevation);
|
||||||
|
|||||||
Reference in New Issue
Block a user