RedMew icon indicating copy to clipboard operation
RedMew copied to clipboard

DO: Silo Defense scenario

Open RedRafe opened this issue 11 months ago • 2 comments

G'day, I'd like to add this new PvE scenario to the DangerOres folder

Objective: Launch 666 rockets while defending your own silo against biters in a DO map

Setting: regular DO rules apply, with:

  • enemies ON
  • 20x tech cost
  • all landfill tiles
  • 666 launches to win
  • mods: Deadlock's (ore only), RedMew-data, Memory Storage

Relevant code changes:

  • map_gen/maps/danger_ores/modules/restart_command.lua now also prints on Discord if the players won or lose the map. Optional global map_won_objective may be present to set win/lose, map is considered victorious by default
  • map_gen/maps/danger_ores/modules/map.lua added optional config param enemy_radius to map(config) of DO
  • map_gen/maps/danger_ores/modules/memory_storage_control.lua added module for Memory Storage management (Memory Units are infinite warehouses). The module simply disables tech/recipe & spawns 4 of these special warehouses at spawn. If a player griefs them & disconnects, their inventory is immediately spilled. Can be used in other scenarios independently

Other than that, everything else is for The Silo defense scenario itself:

  • spawn callbacks for silo/turrets placement
  • listen on biters grouping to direct them towards the silo
  • use rocket_launched module to do waves on satellites
  • disabled terraforming, blue concrete, & biter drops

I'm not 100% sure on how rocket_launched works. I've tested on single player & I didn't manage to get the win condition/reset message.

I'm attaching a few screenshots of the map below

Spawn area

Screenshot from 2024-03-17 14-22-33

Biter waves

Screenshot from 2024-03-17 14-28-05

Map lost

Screenshot from 2024-03-17 14-29-48

Anti grief

Screenshot from 2024-03-17 15-02-01

RedRafe avatar Mar 17 '24 14:03 RedRafe