Can someone help me please...

Hi there modders, I have a feature I would like to implement but cannot figure out how.

 

I want to create an ability that is passive that when it is active permanently enhances the damage of a specific weapon (e.g. only the beam weapon on the Radiance).

 

Could anybody direct me on this one please?

7,931 views 4 replies
Reply #1 Top

don't see a direct way to effect it but try studying energyweaponboost ability files and the researchsubject_weapondamagebeam research files and see if you can piece something together that way

+1 Loading…
Reply #2 Top

This is probably the best shot you have of getting that to work, from the BuffIncendiaryShellsSelf file.

instantAction
    buffInstantActionType "ApplyBuffToTargetOnWeaponFired"
    instantActionTriggerType "OnWeaponFired"
    numWeaponClasses 2
    weaponClassForWeaponPassive "AUTOCANNON"
    weaponClassForWeaponPassive "MISSILE"
    passiveWeaponEffectChance
        Level:0 1.000000
        Level:1 1.000000
        Level:2 1.000000
    buffType "BuffIncendiaryShellsTarget"

The bold is what you are going to want to keep (except changed to beam of course). The italics is what you are going to want to replace if possible, because then the buff is applied to your target instead of the Radiance. If not, you'll just have to change the buff to do extra damage much like incendiary shells. So I'd try something like this for the ability file.

entityType "Ability"

buffInstantActionType "ApplyBuffToSelf"
    instantActionTriggerType "OnWeaponFired"
    numWeaponClasses 1
    weaponClassForWeaponPassive "BEAM(Or whatever it is listed as"

BuffType "Radiance damage increase buff"

...And the rest of the stuff found in the ability files (Energy Absorption is probably the best template for the rest).

+1 Loading…
Reply #3 Top

Look at AbilityBonusModuleDamge for another example of what GoaFan showed. The BuffBonusModuleDamage shows an intantAction DoDamage example in addition to the ability using it as a passive as detailed above.

+1 Loading…
Reply #4 Top

Thanks guys, I'll have a play with that later and see what I can do.

Much appreciated!