Behemoth Enemies Mod

by lamali

adds behemoth enemies to the game for vulcanus demolisher and gleba pentapod enemies

Content
29 days ago
2.0
2.43K
Enemies

g tips for demolisher spawning?

a month ago

wondering if you have any tips for me as i have a mod "entrenched enemies" and i want to hook into demolishers spawning and run some logic to determine the quality level they spawn at. reading your code has been useful but curious if you know how i could do that.

Also been enjoying seeing these behemoths run wild in my current save!

a month ago
(updated a month ago)

data.raw["planet"]["vulcanus"].map_gen_settings.territory_settings.units
is the list where all enemies are listed that get put in a territory on vulcanus

data.raw["noise-expression"]["demolisher_variation_expression"].expression
is a integer-step function that returns a index based on the distance (can be found in planet-vulcanus-map-gen.lua on the bottom).

For near values you get 1 (first unit of the list on the top i.e small-demolisher) and for far distances it goes up. So eventually the value of the function is 4 and you get my behemoth-demolishers for far distances (its the 4th element of the list).

i dont know how you can add quality to this. You can only put the name of the unit in the list on the top and no additional attributes (i.e no quality?) (I have not tried anything else)
so in my case: table.insert(data.raw["planet"]["vulcanus"].map_gen_settings.territory_settings.units, "behemoth-demolisher")

a month ago

thanks, yeah i have a feeling i would need to hook into the event when the unit spawns and then recreate it at a quality level like i do for biter nests. its 2am right now here i will have dig around tomorrow and see if i can come up with anything, my main concern is if i recreate the demolisher it will automatically clear the territory.

Thanks for that extra information about the behemeths at 4, ill make sure to include support for this mod when i figure it out.

a month ago

yeah i get errors whenever i try and recreate entity with quality, only way i could see it being plausable is in the init section where you set variables, quality might be available their. Im not sure im very keen to recreate all demolishers config so i put in a interface change request. id rather build ontop of mods like this then recreate what they do to implement something on top. you can close this off if you like. It is a very tricky topic aswell to recreate a demolisher since the segments are a vector with pointers to other entities.

New response