Author Topic: Bots fire from too far away  (Read 1754 times)

Offline Tankbuster

  • Jr. Member
  • **
  • Posts: 921
    • View Profile
Bots fire from too far away
« on: 22-02-2012, 14:02:55 »
Well, the topic name says it all. :P Is there any way to reduce the Firing range of bots, because I think it would be useful on Normandy maps where Bots engage you from very far away and you cannot see them.

Offline cannonfodder

  • Full Member
  • ***
  • Posts: 1.228
    • View Profile
Re: Bots fire from too far away
« Reply #1 on: 23-02-2012, 07:02:58 »
The simple solution is to lower the difficulty setting (which will make them less accurate).

Offline Tankbuster

  • Jr. Member
  • **
  • Posts: 921
    • View Profile
Re: Bots fire from too far away
« Reply #2 on: 23-02-2012, 07:02:46 »
No, I meant that bots would engage me from medium distances not from half the map away as it happens sometimes in NA

Offline cannonfodder

  • Full Member
  • ***
  • Posts: 1.228
    • View Profile
Re: Bots fire from too far away
« Reply #3 on: 23-02-2012, 08:02:00 »
Yeah I know what you mean (you're not the first one to ask that question).

The problem is the only way to reduce their range is to go into the files and reduce the maximum range of every single weapon...and this involves a whole lot of file editing.

I can tell you what you need to do if you're still interested... :)

Offline djinn

  • Masterspammer
  • ****
  • Posts: 5.723
    • View Profile
Re: Bots fire from too far away
« Reply #4 on: 23-02-2012, 12:02:14 »
I would say, the reason bots fire as far as they do is to emulate human player action.

If you ever played online, you'd realize that bots fire only as far as humans, mostly even shorter range, and ALOT less accurately, even on Normandy maps.

But if its personal preference, well, there may be a way, but for the life of me,  I wouldnt know where to look

Offline Tankbuster

  • Jr. Member
  • **
  • Posts: 921
    • View Profile
Re: Bots fire from too far away
« Reply #5 on: 23-02-2012, 16:02:27 »
Yup, I am still interested.

Offline Void

  • Moderator
  • ***
  • Posts: 162
  • AI Dev
    • View Profile
    • ESAI at Moddb
Re: Bots fire from too far away
« Reply #6 on: 23-02-2012, 18:02:03 »
Then change the culldistance for the soldiers.

It is in the AI template for soldiers. Currently it is set to 1km. Reduce it from 1000 to like 400 = bots can "see" other infantry at 400 m.

cullDistance is scaled in meters. Typical level view distances are around 350 - 500 seems like.

+ Medic +

  • Guest
Re: Bots fire from too far away
« Reply #7 on: 10-02-2013, 04:02:17 »
Then change the culldistance for the soldiers.

It is in the AI template for soldiers. Currently it is set to 1km. Reduce it from 1000 to like 400 = bots can "see" other infantry at 400 m.

cullDistance is scaled in meters. Typical level view distances are around 350 - 500 seems like.

I'm having a problem finding this path. Just spell it out for us would yeah?

Offline ballard44

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Bots fire from too far away
« Reply #8 on: 10-02-2013, 09:02:17 »
objects_server.zip in the folder...Soldiers\Common\ai\Objects.ai file

The line to look for would be...
aiTemplatePlugIn.cullDistance 1000

NOTE - Just a warning that editing this file might cause MP and online Coop to not work.

+ Medic +

  • Guest
Re: Bots fire from too far away
« Reply #9 on: 10-02-2013, 19:02:09 »
 Thanks for the aid.