Jump to content

Meteor Showers


Recommended Posts

@tetrified, The location of the meteor spawner. Meteor spawners have a component, meteorshower, which has a timetospawn that gets checked and updated on every OnUpdate.

 

I found that just searching through files, but I couldn't find where it actually got placed.

I think this might be it?

countprefabs={      meteorspawner = function() return math.random(1,2) end,},

in: D:\SteamLibrary\SteamApps\common\Don't Starve Together Beta\data\scripts\map\rooms\terrain_rocky.lua

Edited by tetrified
Link to comment
Share on other sites

@tetrified, Oh, sorry. Hmm... I don't understand world gen very well, but it looks like countprefabs gets accessed in this function in graphnode:

function Node:PopulateVoronoi(spawnFn, entitiesOut, width, height, world_gen_choices)

Which, as far as I can tell, uses a list of placement points generated for the room by WorldSim (randomly ordered?), and places 1-2 meteorspawners at the first 1-2 points.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...