Jump to content
Sign in to follow this  
tinter

AI Gunner Undershooting Tank Cannon

Recommended Posts

Got an issue with a tank that works pretty well when players use it, but AI consistently undershoot their target. It seems their aimpoint is higher than where the projectiles actually come out.

I've googled around and found something that seems to describe my problem.

https://forums.bistudio.com/topic/176346-tank-under-shooting/

https://forums.bistudio.com/topic/59081-racs-m60a3/page-3

Neither of these provide a fix though, it is apparently an issue with the model, but nothing looks out of place, I've tried moving some memorypoints around but none of them seem to affect the AI in a way that wouldn't effect players. Comparing my model to the tank sample looks fine as well, but I still can't help but wonder if I'm missing a memory point that the sample doesn't have either.

Share this post


Link to post
Share on other sites

Problem has been fixed after much recompiling. I added

                minValue="rad -360";
                maxValue="rad +360";
                angle0="rad -360";
                angle1="rad +360";
                memory = 1;

 

To the animations of both the turret and the gun, as in those using the mainTurret and mainGun source. Not sure which one them did it, I suspect memory=1 wasn't it though. Not gonna test though.

Share this post


Link to post
Share on other sites

That can't be it, as i have those lines in all of my turrets - including the ones that don't work for AI. Without those lines the turret wouldn't move properly.

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  

×