Bots waiting too long to fire?

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 waiting too long to fire?

Post by Swaffy »

I've played some mods which had bots that aimed and fired with much more precision and timing than the base game (and my mod, of course). I've already set "aiSettings.setBotSkill 1" in AiBehaviors.con in my Menu.rfa but the improvement is small.

What's the trick to getting bots to get their aim on point quicker? Also, how to make them fire even when they're slightly off target?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Bots waiting too long to fire?

Post by Swaffy »

[Edit] Found some code changes, and with some testing might be helping.

aiTemplatePlugIn.create ControlInfo Test3Ctrl
aiTemplatePlugIn.driveTurnControl PIYaw
aiTemplatePlugIn.driveThrottleControl PIThrottle
aiTemplatePlugIn.aimHorizontalControl PIMouseLookX
aiTemplatePlugIn.aimVerticalControl PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl PIMouseLookX
aiTemplatePlugIn.lookVerticalControl PIMouseLookY
aiTemplatePlugIn.throttleSensitivity -1.0
aiTemplatePlugIn.pitchSensitivity 0.21817
aiTemplatePlugIn.rollSensitivity -0.21817
aiTemplatePlugIn.yawSensitivity -2.5
aiTemplatePlugIn.lookVerticalSensitivity 0.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.throttleLookAhead 1.0
aiTemplatePlugIn.pitchLookAhead 1.5
aiTemplatePlugIn.rollLookAhead 1.5
aiTemplatePlugIn.yawLookAhead 1.5
aiTemplatePlugIn.lookVerticalLookAhead 1.5
aiTemplatePlugIn.lookHorizontalLookAhead 1.5

aiTemplatePlugIn.throttleScale 1.0
aiTemplatePlugIn.pitchScale 6.5
aiTemplatePlugIn.rollScale 5.0
aiTemplatePlugIn.yawScale 1.020
aiTemplatePlugIn.lookVerticalScale 1.5
aiTemplatePlugIn.lookHorizontalScale 1.5


rem * Tip: The -360 and 360 only needs to be -180 and 180
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -360/-50/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 360/7/0


Many "Look" settings were changed from 1.0 to 1.5 minus the throttle scale/sensitivity. Yaw scale went from 0.002 to 1.02 and pitch scale was raised from 5.0 to 6.5. I did this for my NF APC and the bots seem to whip the turrets around and fire more often/accurately including the grenade launcher. Gonna try something like this with other, slower, vehicles to see what changes.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply