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

Make AbilityRequiresTargetingActivation use a configurable list #207

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

Make AbilityRequiresTargetingActivation use a configurable list #207

robojumper opened this issue Mar 19, 2017 · 0 comments

Comments

@robojumper
Copy link
Member

(Controller Support)

UITacticalHUD_AbilityContainer.AbilityRequiresTargetingActivation does this:

if( ClassIsChildOf(AbilityState.GetMyTemplate().TargetingMethod, class'X2TargetingMethod_Grenade') ||
   ClassIsChildOf(AbilityState.GetMyTemplate().TargetingMethod, class'X2TargetingMethod_Cone') ||
   ClassIsChildOf(AbilityState.GetMyTemplate().TargetingMethod, class'X2TargetingMethod_Line') )
{
	return true;
}

This function indicates that after selecting the ability, you have to press A again to aim the ability, which allows the user to rotate the camera with the buttons that would normally cycle the ability selection.

However, this skips some TargetingMethod -- RocketLauncher, for example is a Grenade, but BlasterLauncher or BlazingPinions isn't. Making this list configurable would allow a more consistent behavior.

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