Killable, lootable, respawnable, fighting backable Solar?
-
One of the features in my mod are boss battles. Basically, large stationary battleships, huge evil shipyards, etc, that have a boatload of health, really strong weapons, but drop powerful equipment when they die.
Buuuuuut… I have no idea how to do this.
Or more specifically, how I make a solar that:- Shoots back at the player
- Drops loot on it’s death
- Dies in the first place, instead of just loosing all its health
- This is the difficult one, I want the boss to somehow respawn each time all players leave the system, instead of just every time the server resets.
So, is it possible at all?
-
This is simple!
NO -
1-3… Pretty easy… for 2&3 just use a specialized Fuse and don’t make it a solar… make it a NPC with only 1 formation member… some kind of One off mega monster ship thing… you can also set it to just 1 per spawn… and 1 spawn per system.
But as for it spawning straight after players leave system… hmm… Id go for a Hook there… as it relys on server info if it is to work as ye suggest (ie: all players have left-spawn now, type of command)
-
1 - add guns to the loadout
2 - add a cargo dropping fuse or add cargo to the loadout
3 - reduce the hit points to a resonable amount
4 - IIRC items respawn after 60 second on an unmodded exe -
1-2-3 are possible I think. 1 is standard-issue as long as you don’t need missiles/torpedoes/cruise disruptors. 2 should be doable using a drop loot fuse attached to the base:
[dump_cargo] at_t = ; time from 0 to 1, multiplier of the fuse's lifetime origin_hardpoint = ; set your hardpoint
3 just requires a
[destroy_root] at_t = 1.000000
in the fuse, I believe. 4 is the problem and would probably require a hook, even though I don’t know what or how.
-
A base should not drop any loot by default (what would it have to drop?). You need to put whatever you want to make it drop in its cargo through the base’s loadout.