X2CommunityCore / X2WOTCCommunityHighlander

https://steamcommunity.com/workshop/filedetails/?id=1134256495
MIT License
60 stars 69 forks source link

Allow X2Effects to over-ride damage types set on the weapon template for the purposes of damage flyovers #1411

Open BlackDog86 opened 1 day ago

BlackDog86 commented 1 day ago

Fixes #1274

BlackDog86 commented 1 day ago

Pretty happy with this implementation. Commit is simple and clean, docs are done, doesn't interfere with any base-game logic and it's fairly easy to use (modders just have to set bOverRideWeaponTemplateForFlyover on the ability template and it'll use the X2Effect's DamageTypes array for the flyover instead of the one specified by the weapon template). I've tested it with sword slice (got conventional flyover) and a custom ability with the over-ride set and psionic damage in the damagetypes array on the effect (get psionic flyover). Conv: 20241123112821_1 Over-ride ability: 20241123113136_1