ZEN icon indicating copy to clipboard operation
ZEN copied to clipboard

Add Unpack Static Weapon module

Open ampersand38 opened this issue 4 years ago • 9 comments

When merged this pull request will:

  • Add module to make AI static weapons teams unpack their weapons and set it up facing the target position
  • unpack function can be used in waypoints etc
  • https://www.youtube.com/watch?v=DvvJPq0wsCI

ampersand38 avatar May 14 '20 04:05 ampersand38

I think there should be some settings added here, maybe one for max range between the two units. It would also be interesting to see if we could get the assistant to go to the gunner if they are outside that range.

BrettMayson avatar May 14 '20 05:05 BrettMayson

@ampersand38 Use a text editor that supports the .editorconfig file. It seems that your editor is using tabs not spaces which is disallowed.

CreepPork avatar May 14 '20 07:05 CreepPork

I think there should be some settings added here, maybe one for max range between the two units. It would also be interesting to see if we could get the assistant to go to the gunner if they are outside that range.

Ah! I'm just learning about editorconfig now. Will try again to get it to work. Thanks.

ampersand38 avatar May 14 '20 15:05 ampersand38

Much appreciated for the review @CreepPork. I'll aim to adhere to the standards.

ampersand38 avatar May 17 '20 04:05 ampersand38

I think there should be some settings added here, maybe one for max range between the two units. It would also be interesting to see if we could get the assistant to go to the gunner if they are outside that range.

I haven't had a lot of success getting the weapon carriers to move together while under fire, even when pulling apart something like https://github.com/acemod/ACE3/blob/master/addons/ai/functions/fnc_garrisonMove.sqf

It may be a case of "don't use this when players can clearly observe that the ai can't do this".

ampersand38 avatar May 21 '20 17:05 ampersand38

Currently looks weird not having the gunner and assistant apart from each other. Should definitely try to get them to move towards each other.

I seem to have this working!

Maybe have the gunner perform an action to get in the turret instead of immediately moving them in.

When I use orderGetIn the AI just run a little circle and then teleport in anyway. It seems there's no getIn animation for these turrets.

https://youtu.be/6h9xUblJzlI

ampersand38 avatar Jun 23 '20 18:06 ampersand38

Works a little bit better in combat but, still fails in some situations. Maybe try using setBehaviour and setCombatMode on the group.

Also, currently you do some handling for the weapon assembly in the module's function (movement, behaviour) and some in unpackStaticWeapon. All of it should be handled in unpackStaticWeapon, the module should just call the ai component's function.

I didn't want to stop the rest of the group from firing, so I'm having the assistant join his own group and managing behaviour from there.

I've also moved the pfh to the AI addon.

ampersand38 avatar Jun 29 '20 15:06 ampersand38

Pushing to 1.10 since I think there is some cleanup left to do as well as consider:

  • groups with players.
  • single backpack static weapons.
  • selecting the closest assistant if multiple are possible.

mharis001 avatar Aug 25 '20 04:08 mharis001

Deploy_static.zip

You can use that potrait if you like for the module

Bummeri avatar Oct 12 '20 19:10 Bummeri