RedMew
RedMew copied to clipboard
DO: Silo Defense scenario
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 globalmap_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 paramenemy_radius
tomap(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