rhemal
Member
Hey everyone,
I use drones for the sole purpose of defending my ship from rats.
I have had the issue of my drones dying too often. Due to the code telling the drones to deploy right off the bat, they are the ones being targetted first.
I can tank the rats easily, so I modified the code to only launch drones to kill rats if I am being targetted.
Here is the modified code, noticed I also put in a check so that if you are using mining drones it will launch them straight away just like normal so it does not mess up that functionality.
obj_Miner.iss (line 324):
This should decrease the number of drone deaths if you are using them for the sole purpose of defending your miner AND you have the ability to tank the rats as your drones pew pew them to bits.
(It also makes you look less like a bot
)
I use drones for the sole purpose of defending my ship from rats.
I have had the issue of my drones dying too often. Due to the code telling the drones to deploy right off the bat, they are the ones being targetted first.
I can tank the rats easily, so I modified the code to only launch drones to kill rats if I am being targetted.
Here is the modified code, noticed I also put in a check so that if you are using mining drones it will launch them straight away just like normal so it does not mess up that functionality.
obj_Miner.iss (line 324):
Code:
if ${Config.Combat.LaunchCombatDrones} && \
${Ship.Drones.DronesInSpace} == 0 && \
!${Ship.InWarp}
{
if ${Me.GetTargetedBy} > 0 || \
${Config.Miner.UseMiningDrones}
{
Ship.Drones:LaunchAll[]
if ${Ship.Drones.DronesInSpace} > 0 && \
!${Config.Miner.UseMiningDrones}
{
Ship.Drones:SendDrones
}
}
}
(It also makes you look less like a bot
Last edited: