Jump to content

[Q] How do I change rate of fire?


Recommended Posts

It's not possible without editing the animation then? The only thing is "Timebetweenshots" but it says it depends on the animation aswell. I saw some mod a few hours ago that changed the rate of fire (according to the OP) and it only modified weaponinfo.

Thanks, I tried it out but I can't get it to work. Here's a piece of the code:

 

 

  </data>

 

  <assets model="w_m4">

   <anim group="gun@ak47"/>

                        <rates firerate="2.0" blindfirerate="2.0"/>

                        </anim>

                        <effects>

    <muzzle fx="muz_machine"/>

    <shell fx="weap_ejected_rifle"/>

   </effects>

  </assets>

</weapon>

 

 

Oh and there's no long space between anim group and rates firerate, that's just the quote messing with it.

 

  </data>

 

  <assets model="w_m4">

  <anim group="gun@ak47"/>

                        <rates firerate="2.0" blindfirerate="2.0"/>

                        </anim>

                        <effects>

    <muzzle fx="muz_machine"/>

    <shell fx="weap_ejected_rifle"/>

  </effects>

  </assets>

</weapon>

 

 

  • 5 years later...
LordOfTheBongs

check the weaponinfo.xml file for a rate of fire property, if there is one then it is possible to create a script to edit this value directly in memory

 

also rate of fire is dependent on the gun, i dont think it changes if ur using the gun to do a drive by or if you are on foot... although something like that could be scripted if u wanted different firing rates when drive by only

Edited by LordOfTheBongs

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.