Jump to content
Sign in to follow this  
LordHorusNL

Tank Weapon recoil

Recommended Posts

Does anybody know how i can controle the amount of recoil a tank gets from a main gun (lets say sabot)

I have it configured as a "simulation=shotshell;" and cant use shotbullet or shot missile because i cant have any tail smoke behind my missile and setting the initspeed close to 0 makes the bullet (rocket in this case) drop to the ground.

I tried the Cfgrecoil and it doesnt seem to work on a tank.

Please give me some ideas

Share this post


Link to post
Share on other sites

Try playing around with the <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">simulationstep class...

Share this post


Link to post
Share on other sites

You've to script it.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?!(local _this) : exit

_this animate ["gun_recoil", 1]

~0.01

_i = 1

#goback

_this animate ["gun_recoil", _i]

~0.01

? _i > 0 : _i = _i - .1, goto "goback"

exit

Regards

TB84

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×