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 Switch Weapon context menu actions for vehicles #537

Merged
merged 66 commits into from
Mar 8, 2023

Conversation

ampersand38
Copy link
Member

When merged this pull request will:

  • Add vehicle switch weapon actions to make a vehicle's primary turret select a particular weapon/muzzle/magazine
    https://youtu.be/l1e4R2cQZFM

@mharis001 mharis001 added the feature Adds a new feature label Feb 1, 2021
@mharis001 mharis001 added this to the 1.11.0 milestone Feb 1, 2021
addons/common/XEH_postInit.sqf Outdated Show resolved Hide resolved
addons/common/XEH_postInit.sqf Outdated Show resolved Hide resolved
addons/context_actions/CfgContext.hpp Outdated Show resolved Hide resolved
ampersand38 and others added 3 commits February 26, 2021 10:51
….sqf

Co-authored-by: Neil Evers <neil.evers.1995@gmail.com>
Co-authored-by: Neil Evers <neil.evers.1995@gmail.com>
Co-authored-by: Neil Evers <neil.evers.1995@gmail.com>
@mharis001 mharis001 changed the title Add Vehicle Logistics > Switch Weapon context action Add Switch Weapon context menu actions for vehicles Mar 7, 2023
@mharis001 mharis001 modified the milestones: Backlog, 1.13.0 Mar 7, 2023
@mharis001
Copy link
Member

I have extended the functionality to include all turrets of a vehicle (not just the primary one) and not require a unit to be present. Also, now uses loadMagazineInstantly, which prevents the long magazine load times for certain weapons. Pylon magazines are a bit weird and for some reason are not switched to in certain (unknown) situations. I think this is good to go for now and we can revisit that and look at improving the icons later.

@ampersand38
Copy link
Member Author

I have extended the functionality to include all turrets of a vehicle (not just the primary one) and not require a unit to be present. Also, now uses loadMagazineInstantly, which prevents the long magazine load times for certain weapons. Pylon magazines are a bit weird and for some reason are not switched to in certain (unknown) situations. I think this is good to go for now and we can revisit that and look at improving the icons later.

Minor issue of muzzle flash showing on switch weapon. https://youtu.be/5RQSWuFWnUY
If you feel that's ok then I'm good with it! Love the multi-turret stuff!

@mharis001
Copy link
Member

I think it is a fine trade-off for loading the magazine instantly and not requiring a gunner to be present.

@ampersand38 ampersand38 merged commit bd5c438 into zen-mod:master Mar 8, 2023
@ampersand38 ampersand38 deleted the vehicle-select-weapon branch March 8, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants