Posted by: Smoke39
« on: June 03, 2016, 05:31:54 AM »I meant the Designated marksman rifle.... well the assault rifle I like its new function...
Oooh, okay.
I don't use the Auto-Shotgunbut can you tell me which file i need to modify. Thank you!
Now I'm confused. Why not? :|
Anyway, look for the TurokShotgun class in scripts\weapons.txt (or scripts\weapons\TurokShotgun.txt in my mod). Reduce the 4.0f in "self.AnimState().Set(anim_weaponFire, 4.0f, 0);" in OnBeginFire() to increase the anim rate.
In OnFire(), you'll want to reduce the 0.5f and 0.6f in the if statements, so the cocking sound and shell ejection will happen sooner, to match the quicker cocking speed.
Finally, in sounds\shaders\ready_shotgun.ksnd, you'll want to reduce the "delay = 16" in the second block, to reduce the time between the two clicks, to match the faster cocking speed.
I'd have to fiddle with it to see, but it might actually look better to dynamically adjust the anim rate in OnFire(), rather than just cranking it up across the board. With some trickery, you could probably also change it to semi-auto instead, or even fake a horizontal cocking animation.