aliens

Author Topic: AI can pick up the best weapons from the ground  (Read 284 times)

Offline KSS

  • Squaddie
  • *
  • Posts: 2
    • View Profile
AI can pick up the best weapons from the ground
« on: March 05, 2025, 10:34:01 pm »
I suggest implementing or borrowing the mechanic from BAI where the AI selects the best available weapon. This could be made a toggleable parameter. 
The idea is that the AI would analyze nearby tiles within a certain radius of its position for weapons on the ground. If the alien is in relative safety (not seeing or able to attack anyone), and the weapon on the ground is more powerful, accurate, faster-firing, etc., the AI would pick it up. 

For example, this could allow players to drop weapons for allied locals, letting them swap their farming tools for something that shoots. That could be fun :) 
On the other hand, in some scenarios, players might prefer replacing passive camping tactics with a more aggressive approach to prevent enemies from looting better weapons from fallen units. 

In Brutal AI, this works well despite enemies having positionally driven behavior. In OXCE, however, AI is mostly not tied to cover, so this feature should perform even better.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3436
  • Posts: 421
    • View Profile
Re: AI can pick up the best weapons from the ground
« Reply #1 on: March 06, 2025, 01:20:54 pm »
AI already can pickup weapons in OXC but it is deliberate disable for most items to prevent grifting.
Same for civilans, there was report where CIV pickup rocket launcher and blowup your solders when he try "help" you.
Not mentioning angry armed chickens :>

Offline Alex_D

  • Commander
  • *****
  • Posts: 500
    • View Profile
Re: AI can pick up the best weapons from the ground
« Reply #2 on: March 07, 2025, 02:02:04 am »
Yes, the infamous rocket launcher-armed civilian team-wiper  :)
Said friendly fire events are reserved for x-com soldiers exclusively!  :D

I'd suggest to have a different value of weapon attractiveness but applicable to civilians only, precisely to avoid those mass casualties scenarios.

On the other hand, a civilian picking up a heavy plasma is a good thing. Can it be mind-controlled and fire said weapon?

Offline KSS

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: AI can pick up the best weapons from the ground
« Reply #3 on: March 07, 2025, 08:20:11 am »
Same for civilans, there was report where CIV pickup rocket launcher and blowup your solders when he try "help" you.
Not mentioning angry armed chickens :>
As mentioned above, is it possible to reduce the value of weapons with AoE damage? 
Perhaps introduce a linear dependency, for example, the higher the shot accuracy — the higher the chance the AI ​​decides to pick up explosive damage weapons. This way, rocket launchers would be picked up by units that can actually shoot. 
Chickens also have terrible shot accuracy :) Maybe set a minimum firing/strength (or other stat) check to prevent them from equipping  weapons.
« Last Edit: March 07, 2025, 08:54:01 am by KSS »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9415
    • View Profile
Re: AI can pick up the best weapons from the ground
« Reply #4 on: March 07, 2025, 10:31:04 am »
As mentioned above, is it possible to reduce the value of weapons with AoE damage?

Yes, each weapon can already have a different attraction value.