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

Define Perk Volley aliases to use with AnimNotify_FireWeaponVolley #218

Open
robojumper opened this issue Mar 31, 2017 · 0 comments
Open

Comments

@robojumper
Copy link
Member

AnimNotify_FireWeaponVolley can trigger perk volleys. Those don't fire the currently equipped weapon, but take it from an XComPerkContent that is eligible for an ability of the specified name.

The relevant lines are in XGUnitNativeBase

if ((CurrentPerkAction != none) && (CurrentPerkAction.GetAbilityName() == Notify.PerkAbilityName))

Which should be easy to adapt for an alias list, and X2UnifiedProjectile

kContent = XComUnitPawn( SourceWeapon.m_kPawn ).GetPerkContent( VolleyNotify.PerkAbilityName );

which might be more tricky. It needs to check all the aliases until it finds one. GetPerkContent should not be modified, it's called by other Actions too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant