Home   Help Search Login Register  

Author Topic: Soldiers dont shoot over sandbags?  (Read 6701 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Soldiers dont shoot over sandbags?
« Reply #15 on: 21 Jun 2007, 16:32:06 »
Objects have Geometry LOD's which make the AI know its there, makes us unable to walk through objects etc. I believe its because of this being at a certain height, the AI engine decides the only way to shoot someone on the other side, is to move around it. Therefore the AI can't actually see the enenmy.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Soldiers dont shoot over sandbags?
« Reply #16 on: 21 Jun 2007, 17:07:20 »
So if AI is behind sandbag they do not even track the enemy i.e. knowsabout = 0?
urp!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Soldiers dont shoot over sandbags?
« Reply #17 on: 21 Jun 2007, 18:31:55 »
I think they do track/knowsabout the enemy, they just don't fire at him from distance.


Planck
I know a little about a lot, and a lot about a little.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Soldiers dont shoot over sandbags?
« Reply #18 on: 21 Jun 2007, 18:50:01 »
Well, if they knowsabout then a scripted solution would be possible wouldn't it? If a unit is told to doTarget and doFire, will it?
urp!

Offline Blanco

  • Former Staff
  • ****
Re: Soldiers dont shoot over sandbags?
« Reply #19 on: 21 Jun 2007, 18:52:20 »
True. In my test they clearly see the enemy because they are pointing their weapon to them. I didn't check how much they know about them with knowsabout tho...


Search or search or search before you ask.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Soldiers dont shoot over sandbags?
« Reply #20 on: 21 Jun 2007, 18:56:44 »
Problem is that they will not fire with an obstable (or what they may consider an obstacle) between them and the target. As far as I remember a unitA doTarget unitB increases instantly the knowsabout of unit A about unit B to 3 (maximum), but that doesnt mean unitA will fire a single bullet to unitB.

IMO, best BIS can do with these obstacles is to make them "transparent" for the AI, so AI will fire, but bullets hitting the sandbags will be stopped. That would result in interesting chaotic firefights with enemy sending a hell of bullets against the sandbag that is protecting you.

Offline Blanco

  • Former Staff
  • ****
Re: Soldiers dont shoot over sandbags?
« Reply #21 on: 21 Jun 2007, 18:59:21 »
Yes, but the surprise element is gone, they will see the enemy.

 
Search or search or search before you ask.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Soldiers dont shoot over sandbags?
« Reply #22 on: 21 Jun 2007, 20:50:41 »
Quote
If a unit is told to doTarget and doFire, will it?

I've tested dotarget and dofire, and AI will target, but will not fire over the fence.

Here's one other interesting note on the cement walls (built by stacking "Obstacle - Saddle" objects...see earlier post by me).  The AI will hop right over these walls when the wall is in their path of movement.  This seems a little goofy, but since I stack them only about a meter high, I think its OK that the AI "jumps" over these walls.  For defenders, I place the defender AI precisely behind walls, and disableAI "MOVE" so they stay put, and won't jump the wall.  Attackers can jump the walls though, and that is OK really.  If attackers overwhelm the defenders, then overrun the walls that is a good thing I think.  But if you stack these 2 meters high and AI hopped the walls, that would look stupid...

I think I will test AI standing behind barrels, boxes, and cars to see if they shoot properly over those.  If they do shoot over them, then maybe this isn't an engine limitation, but a problem with how fences are configured.
« Last Edit: 21 Jun 2007, 20:56:33 by johnnyboy »
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline DucusSumus

  • Members
  • *
  • I'm a llama!
Re: Soldiers dont shoot over sandbags?
« Reply #23 on: 21 Jun 2007, 23:32:49 »
There's no way that this is an engine limitation.  I refuse to buy that.

Quote
So if AI is behind sandbag they do not even track the enemy i.e. knowsabout = 0?

Check my example mission.  The knowsAbout value is 4 (maximum); the AI will track you (i.e. point their weapons at you), but they won't fire until you are around 20 meters away, which is ridiculous.

Quote
IMO, best BIS can do with these obstacles is to make them "transparent" for the AI, so AI will fire, but bullets hitting the sandbags will be stopped. That would result in interesting chaotic firefights with enemy sending a hell of bullets against the sandbag that is protecting you.

That would be better than what we have currently, but ideally, BIS should simply fix the severe problem of AI not being able to differentiate between a two-foot sandbag wall and an infinitely tall barrier.  Seriously, this is just unacceptable for a game that touts itself as "the greatest combat simulation ever."

This needs to be fixed, or at the very least, we need access to the workaround that was available in OFP (i.e. walls that didn't explode into oblivion when their damage was set to 1).  "Let's go shoot each other in the open field" is hardly realistic, and it gets old fast. 




« Last Edit: 21 Jun 2007, 23:36:48 by DucusSumus »

Offline Cheetah

  • Former Staff
  • ****
Re: Soldiers dont shoot over sandbags?
« Reply #24 on: 22 Jun 2007, 02:19:59 »
Well, the longer you play ArmA / OFP the more you feel the AI is the weakest element in the game. They are just stupid.

Don't know if it would help creating an addon, with the sandbag texture and somehow making the AI able to shoot over it?
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Soldiers dont shoot over sandbags?
« Reply #25 on: 22 Jun 2007, 03:00:37 »
I made a little test mission with AI set behind various objects.  I set them all to setUnitPos "UP".  They had no problem targeting and shooting directly over the following objects:

- car
- barrel
- 4 barrel pallet
- dog house
- bench
- garbage can (1 meter high).

This leads me to believe there is no "system limitation" that causes sandbags to not be "shoot-over-able".  BIS will hopefully fix, or someone makes us a sandbag addon without the problem.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline DucusSumus

  • Members
  • *
  • I'm a llama!
Re: Soldiers dont shoot over sandbags?
« Reply #26 on: 22 Jun 2007, 03:02:52 »
Good info Johnny, thanks.

Offline Blanco

  • Former Staff
  • ****
Re: Soldiers dont shoot over sandbags?
« Reply #27 on: 22 Jun 2007, 04:04:11 »
Johnnyboy, I tried that testmission with the stacked saddle objects and they still don't fire. Sometimes the machinegunner fires upon the enemy when he's about 10- 20 meters away from it but that's really it.  ???  I don't get it.

What version are you running (me 1.08) and what is the version of the editorupgrade1.02 you're using? (link perhaps)

 
« Last Edit: 22 Jun 2007, 04:16:31 by Blanco »
Search or search or search before you ask.

Offline DucusSumus

  • Members
  • *
  • I'm a llama!
Re: Soldiers dont shoot over sandbags?
« Reply #28 on: 22 Jun 2007, 04:22:04 »
I can't even open your mission, Johnny.  I have editor update 105.

EDIT:
However, I have done some of my own experimentation, and I found that the AI can't fire over any object.  Even if you place a single "Obstacle - Saddle" down, which is a whole three inches tall, the AI still won't be able to fire over it -- standing up.  The "good" news is that you can use the old OFP workaround on these saddle objects (this setDamage 1), and they don't explode or disappear.  So the stack theory is still viable, but it's the ONLY option if you want the AI to use any sort of static defensive structure effectively.  Inexcusable, BIS. :dry:
« Last Edit: 22 Jun 2007, 05:22:23 by DucusSumus »

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Soldiers dont shoot over sandbags?
« Reply #29 on: 24 Jun 2007, 02:28:22 »
Quote
Johnnyboy, I tried that testmission with the stacked saddle objects and they still don't fire. Sometimes the machinegunner fires upon the enemy when he's about 10- 20 meters away from it but that's really it.

@Blanco:  I'm using ARMA 1.08.  That's strange, at least half the defenders would fire for me...

I just modified and re-uploaded the test mission in earlier post so that the attacking units are "reveal"ed to the wall defenders via trigger.  Seems to make them shoot a little more often.  Most wall defenders fire at close enemies initially (20 to 40 meters).  Then they have trouble targeting remaining attackers further out.  As player squad leader, calling targets for your squad seems to help some. 

Also, player is now setcaptive true, and starts looking at his team, so you have a better chance of observing the wall defenders fire.

It seems to work OK for lots of close targets (most defenders fire).  AI then gets stupid at target selection and firing after that.  Try it again.

Here's the link to BIS forum posting for Lowfly's Editor102:

http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=df0cf5d5c9427c606794f169fc57146c;act=ST;f=70;t=59830;hl=editor+102

The link to the addon there is not working though...

I can't tell what version of the addon I have (lost the readme).

Edit:  Attached is another pic showing multiple firing (muzzle smoke and flashes).

Edit2: 

Quote
However, I have done some of my own experimentation, and I found that the AI can't fire over any object.  Even if you place a single "Obstacle - Saddle" down, which is a whole three inches tall, the AI still won't be able to fire over it -- standing up.   

@DucusMucus:  This is very strange.  In my test mission appended earlier, the AI absolutely fires over these stacked obstacles, and I did NOT setdammage 1 on them.  I'm using arma 1.08.  I set skill to maximum for all units...did you try that?

Also, you state that AI can't fire over any object, and I have proven to myself that they will fire over cars, barrels, garbagecans, dog houses, and benches. 

In this test I placed the various objects on the map, placed a unit behind each object, with Special set to NONE (so they wouldn't be in formation), and in the init I set "this disableAI "MOVE"; this setUnitPos "UP"; this setcombatmode "BLUE"".  I then placed an enemy 20 yards in front of each shooter, with their backs to my squad (behaviour careless, combatmode never fire).  I then, one-by-one, ordered each shooter to target the enemy in front of him and fire (which meant shoot over the object).  The AI targeted and fired every time.   I can upload this test as well if anyone wants.

Quote
Inexcusable, BIS.

Agreed!  Inoperable sandbags is totally weak.
« Last Edit: 24 Jun 2007, 03:33:32 by johnnyboy »
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...