Added Cube Lake (5.41) backend sided in-game event

This commit is contained in:
PRO100KatYT
2023-11-26 08:01:41 +01:00
parent 63d4344537
commit b3eeaeefc5
2 changed files with 54 additions and 0 deletions

View File

@@ -70,3 +70,10 @@ cubeSpawnDate=2020-01-01T00:00:00.000Z
## Blockbuster Contest winner video at Risky Reels event. (v5.30 Only)*
bEnableBlockbusterRiskyEvent=false
## Cube melting in Loot Lake event. (v5.41 Only)*
# When set to true, the cube will fall into Loot Lake and start melting on the date specified below.
# After the event, Loot Lake will remain purple in new matches.
bEnableCubeLake=false
cubeLakeDate=2020-01-01T00:00:00.000Z

View File

@@ -1359,6 +1359,53 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => {
}
}
if (memory.build == 5.41) {
if (config.Events.bEnableCubeLake == true) {
states[0].activeEvents.push(
{
"eventType": "EventFlag.BR_S5_Cube_StartMove",
"activeUntil": config.Events.cubeLakeDate
},
{
"eventType": "EventFlag.BR_S5_Cube_TurnOn",
"activeUntil": config.Events.cubeLakeDate
})
states.push({
validFrom: config.Events.cubeLakeDate,
activeEvents: activeEvents.slice(),
state: stateTemplate
})
states[1].activeEvents.push(
{
"eventType": "EventFlag.BR_S5_Cube_StartMove",
"activeUntil": config.Events.cubeLakeDate
},
{
"eventType": "EventFlag.BR_S5_Cube_TurnOn",
"activeUntil": config.Events.cubeLakeDate
},
{
"eventType": "EventFlag.BR_S5_Cube_MoveTo8",
"activeUntil": config.Events.cubeLakeDate
})
var EventEndDate = new Date(new Date(config.Events.cubeLakeDate).getTime() + 1.5 * 60000).toISOString();
states.push({
validFrom: EventEndDate,
activeEvents: activeEvents.slice(),
state: stateTemplate
})
states[2].activeEvents.push({
"eventType": "EventFlag.BR_S5_Cube_Destination",
"activeUntil": "9999-01-01T00:00:00.000Z"
})
}
}
res.json({
"channels": {
"client-matchmaking": {