Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: slappy on June 02, 2010, 03:23:26 pm
-
Hi guys
I'm new around here so I have a good old noob question regarding setting the weapons energy recharge rate in the ships table. Problem is I would like it to be much slower than I can seem to get it
I.e. about 5 Min's from empty to full. Any help on this would be gratefully appreciated.
Cheers
-
Hi and welcome to the forum, im sure a mod or admin will give you the full works in a moment
have you looked in the wiki (http://www.hard-light.net/wiki/index.php/Main_Page) it is a very usefull source of information and looking thoough it though time consuming will answer most questions
you want this http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Weapon_Regeneration_Rate:
from the modding section (http://www.hard-light.net/wiki/index.php/Portal:Modding)
-
Yeah I seen that its just no matter how small a number I put in I can get it any where near long enough for what I am trying to achieve.Tnx for the reply
-
Are you seeing changes at all? There may be a lower limit to how slowly it will actually recharge due to how it's set up.
-
Hmm. Doing the math, a recharge rate of 0.0034 should do the trick....
And tracing through the code, it should work.
-
Yay tnx man that's got it!!! Now I'm just wondering if you could explane the math involved so I can tweak it to other ships without to much of trial and error.
cheers
Noobs Ehh :)
-
Simple. As explained on the wiki, the $Recharge rate rating is the percentage of primary energy recovered every second if full power is given to weapons recharge. A value of 1 would mean that it would take 1 second to fully restore primary weapons energy. The default value of 0.04 means that every second, 4 % of weapons energy are restored, which in turn means that it would take 25 seconds to restore primary energy from 0.
So, to get the desired value, you need to divide 1 by the amount of seconds the restoration should take (in this case, 300).
-
Ahh simples, tnx again and be ready for more stupid questions :D