Page 1 of 1

Bots Won't Fire Rockets

Posted: Tue Mar 26, 2019 8:49 pm
by Swaffy
Hey all, been a while. I've been working on my car and playing Forza Horizon 4 these days :D Decided to work on some modding for a bit, making good progress too.

Well, I have a "tank" (more like a tank chassis with a plane as the turret) and I'm having an issue with the bots not firing. The tank has MGs as primary weapons, and Katyusha rockets as secondary. Well, I can't get the bots to fire the rockets. No matter what I try...

I have this for the AI weapon:

Code: Select all

rem * Rocket AI
weaponTemplate.create Object69_Rocket_AI
weaponTemplate.burst 0
weaponTemplate.indirect 0
weaponTemplate.minRange 15.0
weaponTemplate.maxRange 300.0
weaponTemplate.weaponActivate PINone
weaponTemplate.weaponFire PIAltFire
weaponTemplate.setStrength Infantry    4.0
weaponTemplate.setStrength LightArmour 8.0
weaponTemplate.setStrength HeavyArmour 12.0
weaponTemplate.setStrength NavalArmour 0.0
weaponTemplate.setStrength Submarine   0.0
weaponTemplate.setStrength Air         0.0
I tried using useAimerOnly with the same result. Also tried exitVelocity and got nothing

Re: Bots Won't Fire Rockets

Posted: Thu May 02, 2019 3:42 pm
by POTAmatt
Eliminate any drag on the rocket. Bots won't fire anything with a drag value other than 0.

Re: Bots Won't Fire Rockets

Posted: Thu Jun 06, 2019 9:21 pm
by takiwa
POTAmatt wrote:Eliminate any drag on the rocket. Bots won't fire anything with a drag value other than 0.
This isn't true. Bots in Warfront fire rockets, and all my rockets are coded with drag.

It is most likely because the rocket is your secondary weapon, Swaffy. I had problems with this as well when I coded my Calliope system. Switch them around (the rockets and the mg) and see if they fire them.