antistasi-1.x icon indicating copy to clipboard operation
antistasi-1.x copied to clipboard

AI Scavenging

Open StefArma opened this issue 7 years ago • 12 comments

Scavenging should be a matter of decision making, however, make a player loot items can be boring.. i'd prefer to make AI loot and deposit items into a truck while the player defend the area.

If anyone could help with a script that let them do it, maybe with some delay.

StefArma avatar Oct 05 '17 20:10 StefArma

Maybe not to implement it as AI running back and forth but something like progress bar (like ace medical) and as the result - one or several surrender crates with the stuff from some radius. Or maybe to make it the function of engineering team. AI scavenging might be just AI self rearming.

If to go initial AI scavenging idea, i see the issue with defining what is/are the sources and what is the destination. Consider the situation with several vehicles in close proximity - what to choose as the destination. Dead bodies - sure sources. what about other vehicles, which might be considered for dumping.

IrLED avatar Oct 10 '17 14:10 IrLED

Wla (whole lotta Altis) has a nice feature to gather all the equipment from vecs / bodies / radius. Something like this would be nice. When someone didnt try WLA i can get more into detail...

mike-187 avatar Oct 10 '17 15:10 mike-187

On Warlords of the Pacific AI are going to loot all the weapons and bring them one by one into the selected Truck... the problem is they're only looting weapons and magazines... not vest etc,

I didn't try WLA... but I'll indeed have a look into it, thaks a lot for the hint

StefArma avatar Oct 10 '17 21:10 StefArma

"Overthrow" - already have good AI loot system https://github.com/ArmaOverthrow/Overthrow

AlexTriada avatar Oct 16 '17 09:10 AlexTriada

I think this is one of the most wanted features to Anatistasi because none enjoy looting but with the new arsenal each weapon counts So first of all we need to ask what we want: I noticed: AI is not collection NV. AI doesnt care about space in vehicle. AI keeps latest taken gear. AI cant collect gear with is dropped(not at corpse position). Commander needs to point vehicle. Commander needs to choose units. Commander cant target ammo box or any container.

PS: i found the "Overthrow" looting system : https://github.com/ArmaOverthrow/Overthrow/blob/dev/addons/overthrow_main/functions/AI/orders/fn_orderLoot.sqf

vodas3 avatar Nov 18 '17 15:11 vodas3

Hi!

Joined the new millenial developing community!

Dears, WOTP has AutoLoot and autoRearm under AI folder. Porting should be 95% copypasting. If I remember well, I had to create a variable containing basic rifle classnames depending on mods installed, so the AI even when they have enough ammo, search for a better weapon.

It still is not perfect, AI do not pick all the ammo, as it relies a bit on vanilla commands which have not been truly functional since Operation Flashpoint.

Good luck!

Barbolani77 avatar Jan 25 '18 20:01 Barbolani77

WotP autoloot, infact pick up mainly weapons... but vests, ammo, helmets, smokerounds are also very important

StefArma avatar Feb 05 '18 16:02 StefArma

Helmets are picked, ammo (with limitations) too, smokerounds, easy to implement, vests, a bit more tedious but... challenge accepted :)

Barbolani77 avatar Feb 06 '18 20:02 Barbolani77

i'd say low priority ;)

StefArma avatar Feb 06 '18 20:02 StefArma

I would say its done :) AI picks vests if they have better armor rating than theirs. Only for autoRearm

Barbolani77 avatar Feb 06 '18 21:02 Barbolani77

ugh no.. in that way people who give custom loadout to AI will have problems if AI just decide to take another vest with not useful equipment in it...

it's matter of taking stuff and dropping it into a vehicle

StefArma avatar Feb 06 '18 22:02 StefArma

That may happen... if vest loadout wouldnt be transferred to the new vest, but it is :)

Barbolani77 avatar Feb 07 '18 00:02 Barbolani77