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

Whiplash can do more damage than intended if assigned to a weapon #1386

Closed
faanlez opened this issue Sep 8, 2024 · 2 comments
Closed

Whiplash can do more damage than intended if assigned to a weapon #1386

faanlez opened this issue Sep 8, 2024 · 2 comments
Assignees

Comments

@faanlez
Copy link

faanlez commented Sep 8, 2024

Skirmisher Whiplash has a damage value specified in code but not bIgnoreBaseDamage. This is not a problem in base game because it is not assigned to a weapon slot in Skirmisher class data. But mods often assign it to a weapon slot when they assume it's a ripjack ability and this causes it to additionally do the weapon's damage in both damage effects on it.

WeaponDamageEffect = new class'X2Effect_ApplyWeaponDamage';
WeaponDamageEffect.EffectDamageValue = default.WHIPLASH_BASEDAMAGE;
Template.AddTargetEffect(WeaponDamageEffect);

// Jwats: Double damage for robotic
WeaponDamageEffect = new class'X2Effect_ApplyWeaponDamage';
WeaponDamageEffect.bIgnoreArmor = true;		//	armor was applied the first time, don't let it be applied the second time as well -jbouscher
WeaponDamageEffect.EffectDamageValue = default.WHIPLASH_BASEDAMAGE;
UnitPropertyCondition = new class'X2Condition_UnitProperty';
UnitPropertyCondition.ExcludeRobotic = false;
UnitPropertyCondition.ExcludeOrganic = true;
WeaponDamageEffect.TargetConditions.AddItem(UnitPropertyCondition);
Template.AddTargetEffect(WeaponDamageEffect);

Suggested fix: add bIgnoreBaseDamage = true to both of these damage effects.

@Iridar
Copy link
Contributor

Iridar commented Sep 8, 2024

Bit of a grey area.

On one hand, Highlander isn't meant to be the place for preventive fixes for issues that occur only when people shoot themselves in the foot.

On two hand, this fix doesn't alter base game behavior.

A case can be made that this change would be potentially breaking for mods that specifically rely for this fix to not be there, but ehhh that'd be MrNice / Xym's level of cautious.

Overall I'm about 3/10 on being convinced this should be fixed in Highlander.

@Iridar
Copy link
Contributor

Iridar commented Jan 6, 2025

On further consideration, implementing the proposed fix would violate the Highlander's BC policy. If some mods attaching Whiplash to a weapon is causing undesirable behavior, the onus is on said mods to address it.

@Iridar Iridar closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants