Home   Help Search Login Register  

Author Topic: Ai firing guns: Aiming problems  (Read 1246 times)

0 Members and 1 Guest are viewing this topic.

Baphomet

  • Guest
Ai firing guns: Aiming problems
« on: 13 Nov 2002, 04:49:22 »
     I was wondering how you can fix weapons which aren't used properly by ai. Usually it involves the ai firing much higher than necessary to hit their target. Usually you can see the bullets streaking far over your head if you're being shot at by ai with these weapons.

I think it has something to do with the AiRateOfFire variable being set low so the climb on the weapon affects aiming... Anyone know how to fix this?

Lucknow

  • Guest
Re:Ai firing guns: Aiming problems
« Reply #1 on: 13 Nov 2002, 13:58:01 »
It's down to RECOIL and is really only a problem with infantry carried machine guns (M60 and PK but not the MGs on the vehicles since they have no recoil).

The AI basically fire on full auto and the higher their skill the faster they fire (this is due to the 'aiRateOfFire' command) BUT they do not compensate for the recoil  - thats the problem.

Solutions...

1. Use a custom recoil effect (I use the one Kegetsys did for his RPK47 and RPK74 machineguns which were part of his Russian weapon pack). In the PRONE position AI gunners don't fire so far over the enemies heads.

2. Use the silenced weapon recoil (HK and Bizon) - -unrealistic recoil for a MG but the weapons now form an impressive addition to your section's firepower.

3. Introduce BURST modes to the MGs - unrealistic since MGs have no burst modes as such BUT the AI now use the MGs EXACTLY as they should in real life. I have my MGs tweaked for the AI to fire short bursts at nearer targets and longer bursts at further targets. This also eliminates the AI firing a weapon at different rates of fire which I hate. As the player however I still use the atomatic mode and fire my own bursts.

Together with Kegetsys recoil and higher values for the 'aiDispersionCoefX/Y' commands (5 for X - horizontal, and 1 for Y - vertical) the AI now put down proper supressing fire at the feet of enemies which actually  makes them keep their heads down in the prone position.
« Last Edit: 13 Nov 2002, 14:00:41 by Lucknow »

Baphomet

  • Guest
Re:Ai firing guns: Aiming problems
« Reply #2 on: 14 Nov 2002, 15:27:45 »
Kool. Thanks for the info. That recoil that Kegetys made for his russian weapons pack is quite useful I've found