Topic: Smart Reloading (for dev gargaj - an all)
The problem:
When mining (im sure this is true for fighting as well) you usually turn on multiple weapon slots (my case right now, 3 mining modules). Each loaded with 45 ore charges for the same type of ore. This is to maximize cycle time and mining time (true for combat of course 3 turrets firing would at the same time work better then 1 no ).
When all 3 finish at the same time, the FIRST one that is automatically reloaded grabs the first set of "45 charges" (in the case of a mining module i use, with turrets it could be 200 ammo..etc. ).
If i had only 30 charges left, my first slotted mining module would take the 30 i had left, leaving my last 2 modules to just sit there and do nothing as my first module continues to mine (same thing for fighting, your first wep would of taken the last of ur ammo while the 2 other turrets do nothing).
The solution:
Enable a right clicked check box for each module, call it "smart reloading" or "neijek's loading" hehe.
When enabled, if a module is due to "reload", it would first check any other module with this check box "enabled".
If it found that the second or third module has this check box enabled and is using the SAME ammunition, and is "active", and upon reload of wep 1, wep 2/3 would be left with no ammo/charges then it will divide the amount of charges it takes by the amount of of weapons active with this check box enabled and thus leave those modules with charges/ammo left to be used.
Example:
Module 1 = 1 charge /max 45 left - active - smart reload
Module 2 = 2 charges /max 45 - active - smart reload checked
Module 3 = 2 charges /max 45 - active - smart reload checked
Cargo hold 30 charges
*Module 1 = reload cycle ->
*check smart reload = (found module 2/ module 3)
*check max charges of module 1 = 45
*if ">" cargo hold charges (30) then
*divide by found modules "active" (module 1 and module 2 and module 3)
*reload (thus reloading just 10 charges)
*Append script in memory so "smart reload" will load 10 for module 2 and 10 for module 3 as soon as they are due for reloading.
In case module 2 or 3 have > charges found in cargo hold (so if module 2 had 43 charges loaded into it, then module 2 would be taken out of the equation. so in the scenario above module 1 would reload 15 charges, leaving module 3 with 15 as well).
*This is only true IF more then 1 module has "smart reload" checked and if they are already loaded with the SAME type of charge/or ammo. This way when you intentionally load different ammo types this would not come into play (i some times like to keep 1 type of ammo in 1 gun and a different type in the other gun maybe ?).