Altered Nadeo - Random Map Picker
The "Altered Nadeo - Random Map Picker" is a plugin that allows players to load a variety of custom maps from a selected pool. By fetching map data from a specified file (soon maybe an API) and constructing a URL, we can call the Nadeo live services API. This plugin randomly selects and loads different maps based on their UID. Hopefully, it's used by at least one person; niche plugin go brrrr...
Exports
The plugin provides several functions that are accessible for external use:
-
GetARandomAltMapUid()
- Description: Returns a string containing a random UID for an altered Nadeo map. This UID is fetched from a specified file.
- Return Type:
string
-
GetARandomAltMapStorageObject()
- Description: Fetches a random map URL from the altered Nadeo data pool and returns it. This URL points to the location where the map data is stored.
- Return Type:
string
-
GetUserSettings()
- Description: Retrieves a Json::Value object containing all user settings related to the alterations applicable to the maps. This includes settings for different scores, surfaces, effects, finish locations, environments, and other alterations.
- Return Type:
Json::Value
-
SetSeason(string season, bool shouldUse)
- Description: Enables or disables maps from being picked for a specific season. For example, setting
shouldUse
to true for "Spring 2020" will enable maps from that season.
- Parameters:
- season: The season for which the maps should be enabled/disabled.
- shouldUse: A boolean flag to enable or disable the selection of maps from the specified season.
- Return Type:
void
-
SetAlteration(string alteration, bool shouldUse)
- Description: Allows enabling or disabling specific map alterations. If
shouldUse
is set to true, the specified alteration is applied to the map selection criteria.
- Parameters:
- alteration: The alteration to be enabled or disabled.
- shouldUse: A boolean flag indicating whether the alteration should be applied.
- Return Type:
void
-
SetFullSeason(string fullSeason, bool shouldUse)
- Description: Enables or disables all maps from an entire season (e.g., all winter maps) based on the
shouldUse
parameter.
- Parameters:
- fullSeason: The full season (like "Winter" or "Spring") for which maps should be enabled/disabled.
- shouldUse: A boolean to enable or disable map selections for the specified full season.
- Return Type:
void