ALiVEOS / ALiVE.OS

ALiVE Open Source GPL v2
http://alivemod.com/
Other
157 stars 82 forks source link

Problem with uh60 gunner #530

Open arpiar69 opened 6 years ago

arpiar69 commented 6 years ago

Prerequisites

Description

I am using a standard rhs uh 60 as a transport for my mission When the helicopter is called for an extraction and the enemy opens fire on the helicopter, the gunner does not shoot at the enemy, never The only way is to call the helicopter in CAS support or HYBRID in the init

Steps to Reproduce

  1. [I tried with the module transport]
  2. [I tried with the init uh60]
  3. [I tried with different possibility but nothing]

Expected behavior: that the gunner opens fire

Actual behavior: the gunner does not open fire

Thank you in advance and hoping to find a solution :) Over

the-star commented 6 years ago

@arpiar69 Could you upload a repo mission with vanilla content?

With regards to the code, I think this is the area of interest: https://github.com/ALiVEOS/ALiVE.OS/blob/2ea20f468bea802bbe1c7fcddd9b3e6b1378412a/addons/sup_combatsupport/scripts/NEO_radio/fsms/transport.fsm#L210-L222

If so, it looks like all AI within the transport group are modified to not fire in any circumstance.

I'm not too familiar with how vehicle AI react under fire, but this might be done intentionally to prevent drivers from diverting from their route. Any changes will have to be mindful of this.

HeroesandvillainsOS commented 6 years ago

@the-star Hi there. We are thrilled with your interest in testing and fixing issues all things ALiVE related. We have a development Slack channel we’d like to invite you to if you’re interested. If so, please send me your email address (private conversation on ALiVE forums is fine, as is a PM on BI forums).

If not that’s ok too. Thanks the recent commits and replies to tickets.

friznit commented 6 years ago

This is one of many hacks to try and convince the AI to actually land. If you set the pilots to anything else they go into combat mode and will never land. Transports in combat zones should always have an escort (request a CAS heli to fly cover before bringing in the transport)

marceldev89 commented 6 years ago

In theory, setting careless should be enough. Making the pilot do it's thing and the gunners firing their weapons.

the-star commented 6 years ago

Would the following work?

  1. Set group to careless
  2. Disable AI FSMs only for the driver

Work = driver does not divert from waypoint and lands under combat. Gunners and others in the pilot's group can do their own stuff including firing their guns.

marceldev89 commented 6 years ago

I've done a quick test in the editor a couple of days ago and just setting the group to careless and removing the disableAI bits should be good. https://youtu.be/CEH4Z6xzvBo

arpiar69 commented 6 years ago

Thank you for all the message, I will try it all! I come back soon

the-star commented 6 years ago

@marceldev89, interesting. I'll do some testing myself to see if I can replicate it in various scenarios.

the-star commented 6 years ago

@arpiar69 could you try your tests again and ensure ROE for your transport is set to Fire? I think the issue here is Hold Fire is the default ROE in the tablet.

I am able to get the transport to fire when I change its ROE. The gunner AI may react a little slower but that might be due to disabling the AI FSM? I'm not entirely sure yet.

DavisBrown723 commented 5 years ago

@marceldev89

I've done a quick test in the editor a couple of days ago and just setting the group to careless and removing the disableAI bits should be good. https://youtu.be/CEH4Z6xzvBo

Were any changes made to resolve this ticket? If not, are the appropriate changes known?