Tutorial; FunWithDebris - HWRM/KarosGraveyard GitHub Wiki
How to Make a Ship Spawn Debris by Bakuras. Discussion
This tiny little modification to a few ".ship" files can add so much more enjoyment to the game! By setting fighters to spawn a single piece of debris when they die, battles take on much more meaning. Suddenly, that empty patch of space you had committed your forces to is now a silent testament to the horrors of war; a virtual space graveyard as the remains of your valiant pilots and frigate crew lie strewn all over a trecherous debris field!
The imagery is great!
Just add this line to any ".ship" to get a single piece of debris to spawn (Note: they will unfortunately give out more resources than the original was worth, but in the no-resourcing games that I've been creating it hasn't been a problem.)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml05",1,0.01,60,10,30,75,35,25,65,75,0,0,0,60,0,0,0,50)
And for larger ships, like frigates, I added these lines:
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg01",1,0.05,60,30,150,25,35,125,65,75,0,0,0,60,0,0,0,50) SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml01",1,0.01,80,125,60,75,125,80,65,75,0,0,0,60,0,0,0,50) SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml02",1,0.01,25,0,-125,50,80,35,120,75,0,0,0,60,0,0,0,50) SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml03",1,0.01,60,95,200,50,15,200,20,125,0,0,0,60,0,0,0,50) SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml04",1,0.01,10,60,-300,25,35,80,65,75,0,0,0,60,0,0,0,50) SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml05",1,0.01,60,10,30,75,35,25,65,75,0,0,0,60,0,0,0,50)
Note: check TutorialHW1Resources to see what the RU values of the debris is.
More appropriate remains for larger ships. Once we get mod tools from Relic, I plan on creating debris that actually looks like the ship which spawned it in various wrecked states!
Related Pages
Comments
Page Status
Updated Formatting? Initial
Updated for HWRM? Initial