Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Starman01 on December 09, 2005, 02:41:26 pm
-
Just a small question. Can the time of the primary weapon recharge (0 to 100%) be altered ? I changed the "$power output" value, but to no effect (or is this only for the afterburner) ?
Thanks in advance for any insights :)
-
power output doesnt do anything, you can just omit it from your entries. just tweak the fire wait.
-
Power output does nothing and will probably never do anything to maintain backwards compatibility.
-
I'm pretty sure power output does something... we experimented with it in TVWP. I'm pretty sure removing it prevents ETS stuff from recharging.
-
Yeah, sure, make me open up the code... :p
Yes, if power output is less than or equal to 0, there are effects (ie subsys autorepair is disabled). But the code just checks that conditional, it doesn't seem to actually use the value for anything.
-
just tweak the fire wait.
That would not help me in this matter. What I want to do is to create feature I always hate in WingCommander, namely "drained gunpower" :) . Technically each fighter has two or more guns, one weak and one powerful. Firing salvos will quickly drain your power, and then only the light weapon with less energy usage fires. While fighting capitalships you are forced to withdraw to recharge your guns.
While I was able to recreate that pretty good, I find it really disturbing that it takes 20 or more seconds to get the gunpower back to 100%. Therefore I want the recharge rate increased. Am I right, that I would have to make another code-request for that ?
-
$Max Oclk Speed:
$Max Weapon Eng:
IIRC, one of these 2 figures will accomplish what you want (I think the first one has to do with how fast your weapon energy regenerates).
-
Nope. Changing both values doesn't has an effect to the recharge time (But I really wonder what this "oclk" is for). It looks like that the "%- recharge per second" is hardcoded, so it is the same recharge time no matter how many weapon-energy the fighter has.
-
damn it, $Max Oclk Speed: is how fast you can go when full power is diverted to engines and $Max Weapon Eng: is simply the max charge in your weapon battery.
and i thought we reached a consensus as to what power output did, and that consensus is nil. now you guys are saying it does something, bah. :D
now i wouldnt mind having variables that determine shield and weapon charge rate.
-
It looks like that the "%- recharge per second" is hardcoded, so it is the same recharge time no matter how many weapon-energy the fighter has.
Yeah, I just looked. It's hard coded at four percent per second.
-
i smell the energy recharge rate as a table entry someime in the very near future.
-
i smell the energy recharge rate as a table entry someime in the very near future.
Prays that this will happen before WCS releases the prologue-campaign :D