Skip to content

Add Switch Weapon context menu actions for vehicles#537

Merged
ampersand38 merged 66 commits intozen-mod:masterfrom
ampersand38:vehicle-select-weapon
Mar 8, 2023
Merged

Add Switch Weapon context menu actions for vehicles#537
ampersand38 merged 66 commits intozen-mod:masterfrom
ampersand38:vehicle-select-weapon

Conversation

@ampersand38
Copy link
Copy Markdown
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
Comment thread addons/common/XEH_postInit.sqf Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/fnc_switchWeaponModifier.sqf Outdated
Comment thread addons/common/XEH_postInit.sqf Outdated
Comment thread addons/context_actions/CfgContext.hpp Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
@ampersand38 ampersand38 force-pushed the vehicle-select-weapon branch from f4cbdef to efc07ab Compare February 26, 2021 15:41
Comment thread addons/context_actions/functions/fnc_canSelectVehicleWeapon.sqf Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/fnc_selectVehicleWeaponDialog.sqf Outdated
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>
Comment thread addons/context_actions/CfgContext.hpp Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/script_component.hpp Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
Comment thread addons/context_actions/functions/fnc_getVehicleWeaponActions.sqf Outdated
@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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