Rate of Fire Hook
Moderator: JeremyaFr
Rate of Fire Hook
-
- Posts: 116
- Joined: Wed Jan 11, 2006 12:01 am
is there any way to change the default rate of fire for all craft with this hook? i used a hex editor to change the default rate of fire before but the current rate of fire hook seems to negate this.
-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
You don't need to do any of that. The easiest way to address this is in the .../FlightModels folder, look for the ShipName.ini file you are flying. Open it up with notepad and scroll down to the very bottom. It might have the following or you can manually add it to your file(s):
[WeaponRate]
DechargeRate = 2
RechargeRate = 3
CooldownTimeFactor = 47
The [header] and last code line is most important. CooldownTimeFactor = 47 is the game default rate which is 1 second or 236 time units. Double 47 x 2 to get a slower rate of fire. Multiples of 2 or half that to get quicker rate.
[WeaponRate]
DechargeRate = 2
RechargeRate = 3
CooldownTimeFactor = 47
The [header] and last code line is most important. CooldownTimeFactor = 47 is the game default rate which is 1 second or 236 time units. Double 47 x 2 to get a slower rate of fire. Multiples of 2 or half that to get quicker rate.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
-
- Posts: 116
- Joined: Wed Jan 11, 2006 12:01 am
i have already done it. the problem is that the current weapon rate hook stops it from working and rather than edit the ini for every single craft i was wondering if there would be a way to avoid that and set a default rate for every craft. if not no problem. i have an old hook that allows my modded exe to functionBman wrote: ↑Mon Jul 18, 2022 4:03 amYou don't need to do any of that. The easiest way to address this is in the .../FlightModels folder, look for the ShipName.ini file you are flying. Open it up with notepad and scroll down to the very bottom. It might have the following or you can manually add it to your file(s):
[WeaponRate]
DechargeRate = 2
RechargeRate = 3
CooldownTimeFactor = 47
The [header] and last code line is most important. CooldownTimeFactor = 47 is the game default rate which is 1 second or 236 time units. Double 47 x 2 to get a slower rate of fire. Multiples of 2 or half that to get quicker rate.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
Hello,
Here is a WIP of the weapon rate hook.
You can now override the settings for every craft in the "[WeaponRate]" section of the "FlightModels\default.ini" file.
EDIT: link removed
Hello,
Here is a WIP of the weapon rate hook.
You can now override the settings for every craft in the "[WeaponRate]" section of the "FlightModels\default.ini" file.
EDIT: link removed
-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
Oooo thanks Jeremy. That will be a lot easier than putting it in patch files.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
-
- Posts: 116
- Joined: Wed Jan 11, 2006 12:01 am
you are truly amazing
edit: tested and it is glorious
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've merged the WIP version of the weapon rate hook into the stable version.
Hello,
I've merged the WIP version of the weapon rate hook into the stable version.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the weapon rate hook.
This version adds support for gun turrets for objects with the hardpoints mirroring option.
Hello,
I've updated the weapon rate hook.
This version adds support for gun turrets for objects with the hardpoints mirroring option.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the weapon rate hook.
I've added a setting to enable or disable the fire mesh filter. It is enabled by default.
Hello,
I've updated the weapon rate hook.
I've added a setting to enable or disable the fire mesh filter. It is enabled by default.