Bots Won't Fire Rockets

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Bots Won't Fire Rockets

Post 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
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
POTAmatt
Posts: 89
Joined: Mon Dec 07, 2009 9:09 pm
Location: New Yawk

Re: Bots Won't Fire Rockets

Post by POTAmatt »

Eliminate any drag on the rocket. Bots won't fire anything with a drag value other than 0.
takiwa
Posts: 134
Joined: Mon Dec 30, 2013 4:29 pm
Location: The Great State of Georgia

Re: Bots Won't Fire Rockets

Post 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.
Image
Post Reply