Michael-Z-Freeman / forgotten-hope-singleplayer

Automatically exported from code.google.com/p/forgotten-hope-singleplayer
0 stars 0 forks source link

Bot fires G43 using sights but other rifles from hip #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This rifle gets fired from the hip. Other rifles not affected.

Original issue reported on code.google.com by djbar...@djbarney.org on 31 Mar 2011 at 7:52

GoogleCodeExporter commented 9 years ago
Actually, the G43 is the only rifle fired down the sights at all. All other 
rifles are only hip-fired, which is a problem. Remick is stumped on this one. 
Someone suggested it might be that the G43 is classified as a scout/ sniper 
rifle?/... dont know how true that is, but for me, I think the solution is 
taking a look at PR's AI and rifle-use, they almost ALWAYS fire down the sights.

I actually did see a bot walking with a faust aimed down the sights once... 
weird as heck

Original comment by mydji...@gmail.com on 4 Apr 2011 at 6:11

GoogleCodeExporter commented 9 years ago
OK, thanks. I altered the title.

Original comment by djbar...@djbarney.org on 4 Apr 2011 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by djbar...@djbarney.org on 4 Apr 2011 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by djbar...@djbarney.org on 27 Feb 2012 at 2:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
See this thread: "How do you get bots to aim???" - 
http://www.battlefieldsingleplayer.com/forum/index.php?showtopic=16421

I altered 
"mods\fh2\objects_weapons_server.zip\Weapons\Handheld\K98\AI\Weapons.ai"

"weaponTemplate.setFiringPose Crouching" --> "weaponTemplate.setFiringPose 
Lying"

This gets some of the bots lying down using iron sights so thats a partial fix. 
I think this is more in line with proper FH behaviour as well because I think 
the rifles are set to be more accurate lying down.

Original comment by djbar...@djbarney.org on 27 Feb 2012 at 3:20

GoogleCodeExporter commented 9 years ago
Nope, changed that back as with "Lying" set I can't exit fixed MG positions on 
Port en Bessin. Still, "Lying" initiates more realistic behaviour from the bots 
but would need the fixed positions issue solving.

Original comment by djbar...@djbarney.org on 27 Feb 2012 at 8:02

GoogleCodeExporter commented 9 years ago
The weaponTemplate.setFiringPose code is just a reminder to bots on what firing 
position they should use when the weaponTemplate.optimalRangePercentage is met.
Example - If a weapon had these variables in their weapons.ai file...

weaponTemplate.minRange 25.0
weaponTemplate.maxRange 250.0
weaponTemplate.optimalRangePercentage 50
weaponTemplate.setFiringPose Lying

The bot should attempt to lie down to fire this weapon at around 137.5 meters.
250 - 25 = 225
225 * .5 = 112.5
112.5 + 25 = 137.5

This doesn't mean he will only fire this weapon lying. 
Again, it's just a hint.

Original comment by evanthom...@gmail.com on 28 Feb 2012 at 7:38