Changing rate of fire without altering animations?
Does anyone know if it is possible to change the rate of fire independently from the animations?
It seems a bit limiting to force guns into certain rates of fire that cannot be adjusted easily. I was trying to slow down the rate of fire of the rifle but I can't seem to do it. Even setting the speed in the animation graph of the primary fire animation seems to have no effect - I think the animation is only 1 frame long. Since I don't have access to the original 3dsmax files I can't even alter the animation speed either.
I also have another weapon model in which the fire animation is 30 frames long but I want to be able to fire again before that (but not instantly!), so that on the last shot of the gun it has a nice winding down effect (by playing the entire animation) rather than an abrupt stop; but I'm unsure how to do this.
Also, while I'm posting I have another quick question. I have created a new weapon and everything works fine apart from the world model. I set the model to rifle.model but when I drop the weapon it is invisible, the hud icon is there and I can pick it up again but I can't see it. I guess I might have missed adding the weapon in a certain file...any ideas?
It seems a bit limiting to force guns into certain rates of fire that cannot be adjusted easily. I was trying to slow down the rate of fire of the rifle but I can't seem to do it. Even setting the speed in the animation graph of the primary fire animation seems to have no effect - I think the animation is only 1 frame long. Since I don't have access to the original 3dsmax files I can't even alter the animation speed either.
I also have another weapon model in which the fire animation is 30 frames long but I want to be able to fire again before that (but not instantly!), so that on the last shot of the gun it has a nice winding down effect (by playing the entire animation) rather than an abrupt stop; but I'm unsure how to do this.
Also, while I'm posting I have another quick question. I have created a new weapon and everything works fine apart from the world model. I set the model to rifle.model but when I drop the weapon it is invisible, the hud icon is there and I can pick it up again but I can't see it. I guess I might have missed adding the weapon in a certain file...any ideas?
Comments
You can also set the attack_speed which effects many alien abilities, and could configure that ability on marine weapons as well (its currently used for enzyme on the alien class).
For your rifle model are you setting both the view model and the rifle model? And also you need to make sure the world model has collisions or it will fall out of the world when dropped.
I guess I will need to use OnTag "fire" and then add a delay in there somewhere after each shot. I'll have a look at that attack_speed as well.
For the weapon: yes, the viewmodel is working correctly and they are both set in the weapon lua file. I also had to add lines of code to Shared.lua, Player_Client.lua, GUIPickups.lua and GUIActionIcon.lua in order for the file to be loaded and for the hud and crosshairs to work correctly. The only thing I can think of is that there is some other file that I need to edit in order for the world model to display. It's not falling through the world since the hud pick up icon is displayed and I can pick up the weapon again.