tetrified Posted December 28, 2014 Share Posted December 28, 2014 Does anyone know how it's determined where a meteor shower starts? It doesn't seem to be a task as far as I can tell. Link to comment Share on other sites More sharing options...
rezecib Posted December 28, 2014 Share Posted December 28, 2014 (edited) @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. Edited December 28, 2014 by rezecib Link to comment Share on other sites More sharing options...
tetrified Posted December 28, 2014 Author Share Posted December 28, 2014 (edited) @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 December 28, 2014 by tetrified Link to comment Share on other sites More sharing options...
rezecib Posted December 28, 2014 Share Posted December 28, 2014 @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 More sharing options...
tetrified Posted January 4, 2015 Author Share Posted January 4, 2015 (edited) -N/A- Edited January 4, 2015 by tetrified Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now