PDA

View Full Version : Modding weapon sway


Ross MacGregor
9th November 2007, 07:56
Thanks BJ, this is a great mod! One thing I'd like to try is increasing weapon sway for rifles when standing. How difficult would it be to add this to your mod? Where would I need to look?

And what about movement speeds? Can I adjust the movement speed while crouched?


Thanks,
Ross

Bjusterbaarlik
9th November 2007, 15:08
Everything you ask for is in the weapons (in weapons/mp/) files themselves, however crouch-movement speeds cannot be adjusted unfortunately, you would have to change the movespeedscale variable itself, but that also affects the normal walking speed.

Weapon sway is affected by the following variables:
- hipIdleAmount
- adsIdleAmount
- hipIdleSpeed
- adsIdleSpeed

Just play around with them for a bit to see what they do exactly, I think the last two ones are the ones you want to edit.

Ross MacGregor
10th November 2007, 00:00
Thanks, the effect I was looking for was to increase the sway after holding the rifle for a second or two. But after some research, this seems to be a difficult thing to accomplish because you cannot set the weapon settings dynamically.

I guess I'll just bump up the sway for rifles a bit and try it out.