janxious / CharlesB

Make BattleTech mechs fall down when they miss because that's funny
MIT License
2 stars 2 forks source link

Overheateddamagemultplier #7

Closed LadyAlekto closed 6 years ago

LadyAlekto commented 6 years ago

As requested

This value to work that it allows a weapon to deal increased damage to a target that is overheated

Would allow me to make heat seeking ammo, rework flamers, and make my toy plasma even more tactical and overall try to make fun stuff

[12:21 PM] jo: I don't know what lore would support doing more damage when your mech is overheated :smile:
[12:21 PM] LadyAlekto: ???
[12:21 PM] LadyAlekto: flamer weapons lore
[12:21 PM] don Zappo: I think it would be awesome if it was bonus damage based on overheating. Bring in TSM! Heh.
[12:21 PM] LadyAlekto: also plasma lore
[12:21 PM] LadyAlekto: both get damage bonus when enemy is already cooking
janxious commented 6 years ago

I currently believe this is doable using a patch to track weapons that have heat multiplier somewhere during attack sequence, probably during weapon effects, and then Applying the multiplier in a prefix to AttackSequence.OnAttackSequenceImpact by directly changing the value on the message received by that method, or as an IL patch in the damage calculation done in the method after the blowquality calc should work. We have access to the target and the weapon firing there.

janxious commented 6 years ago

This was implemented as part of Weapon Realizer mod, and I consider it done