Quantcast
Channel: Project Reality Forums - PR:BF2 Community Modding
Viewing all articles
Browse latest Browse all 924

[Coding for animations] 1p weapons

$
0
0
Hi,

I have two questions about 1p weapons animation code :

1) How can I modify the effect that makes the weapons moving a bit slower than the view's speed ? For example : when you look quickly to the right, the weapons goes slightly to the left of the screen, and then goes back to its main position with a bit of delay once the view is steady.
Since some weapons react differently I guess it's possible to modify it and make the weapon more or less locked to the view.

2) The command ObjectTemplate.delayToUse in the tweak file won't set the right time that unallows the player to shoot before the reload animation is finished. I've written the EXACT same time than what I have in the inc file for the animation duration, but despite that I can STILL start firing before the end of the animation. The weird thing is that I don't have this problem for the deploy animation... This got fixed.

Thanks for help

Viewing all articles
Browse latest Browse all 924

Trending Articles