Add per-weapon VXL turret switching for MultiWeapon units - #2328
Open
NukeAtty wants to merge 3 commits into
Open
Add per-weapon VXL turret switching for MultiWeapon units#2328NukeAtty wants to merge 3 commits into
NukeAtty wants to merge 3 commits into
Conversation
Units with MultiWeapon=yes and TurretCount>0 now swap their VXL turret and barrel per weapon index. Extra turrets are loaded by naming convention (<ImageFile>turN.vxl / <ImageFile>barlN.vxl) with no art changes; weapons beyond min(WeaponCount, TurretCount) fall back to the default turret.
Contributor
|
The unit will lose its target when you issue an order with a mouse click, so I suspect this will lead to very strange in‑game behavior. |
|
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds support for swapping VXL turret and barrel models per weapon index for units using
MultiWeapon=yestogether withTurretCount>0.Summary
MultiWeapon=yes+TurretCount>0now swap their VXL turret and barrel based on the currently selected weapon.<ImageFile>turN.vxl/<ImageFile>barlN.vxl); noartmd.inichanges required.WeaponCountandTurretCount; weapons beyond that range fall back to the default turret.UseTurretShadow=yes.Implementation
UnitTypeExtloads the extra VXL/HVA pairs (LoadMultiWeaponTurrets) and frees them on destruction.UnitClass_AIsetsCurrentTurretNumberfromSelectWeapon.Notes
IsChargeTurret=yes,IsGattling=yesorGunner=yes.