is it possible to make ships runout of ammo?
Yes !!! but you need to use a non usual way...
By example, let say that you wish a limited amount of missile... create a ability who use antimatter for shot missile... once all antimater is used, you are out of ammo... you can create entity file for ship who don't allow regeneration of antimatter... and create orbital structure who reload the antimatter ( ammunition depot )... so, using several abilities for missile, gun, flak, etc will allow ships to run out of ammo...
If you wish add more realism, again by using a non usual way, you can make ennemy ship able to intercept and destroy your ammo, by example missile... a missile can be created by using abilities like describe up... but the ability will be similar to actual abilities like these creating a defence platform or bombardment platform... the abilities will create a missile who is itself made of a entity file and a mesh... can make them mobile ( entity ), targeting ennemy ( entity ), once near ennemy can make some damage and self destroy ( like a real missile )...
The first mod who was created for sins ( in 2007 ), before the official launch of Sins in Feb 2008, was called "Kin of the Stars 20071019"... some interesting features of these mod was :
- Colony ships can now launch troop transports to attempt to capture an enemy world without exterminating the population.
- Capital ship missiles can be shot down by point defenses.
- Capital ship missile ammunition limited by antimatter. Supply ships replenish the antimatter of friendly ships.
If you wish, i have these mod, i can maybe upload it on my server... only 430.8 kb... it was for the sins beta... sure that you will need to heavily modify the code for the actual version of sins... but these old code can help you to create ships who run out of ammo !!!