Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add launcher support to infantry Switch Weapon actions #717

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ampersand38
Copy link
Member

When merged this pull request will:

  • Context action to make unit switch to launcher
  • Unit is frozen via disableAI "ANIM", no movement or aiming
  • Unit can do certain things like throw grenades via context action
  • Switching to another weapon enables ANIM again
  • https://youtu.be/54ezolpkDxw

@ampersand38 ampersand38 added the enhancement Improves an existing feature label Mar 18, 2023
@mharis001 mharis001 changed the title switch to launcher Add launcher support to infantry switch weapon actions Apr 3, 2023
@mharis001 mharis001 changed the title Add launcher support to infantry switch weapon actions Add launcher support to infantry Switch Weapon actions Apr 3, 2023
Comment on lines +179 to +184
if (_muzzle == secondaryWeapon _unit) then {
_unit playMove "amovpercmstpsraswlnrdnon";
_unit disableAI "ANIM";
} else {
_unit enableAI "ANIM";
};
Copy link
Member

@mharis001 mharis001 Apr 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a decent workaround. However, IMO would be better placed in the switchWeapon function itself (since it is specifically used for that).

Copy link
Member Author

@ampersand38 ampersand38 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switchWeapon function is local to the curator, and these need to be local to the AI. should I make a separate switchWeapon[Curator/Local] event?

@mharis001 mharis001 added this to the 1.14.0 milestone Apr 3, 2023
@mharis001 mharis001 modified the milestones: 1.14.0, 1.15.0 May 17, 2023
@ampersand38 ampersand38 marked this pull request as draft October 3, 2023 19:22
addons/common/XEH_postInit.sqf Outdated Show resolved Hide resolved
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
@ampersand38 ampersand38 marked this pull request as ready for review October 13, 2023 14:00
@mharis001 mharis001 modified the milestones: 1.15.0, 1.16.0 Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants