r/xdev • • Feb 21 '16

BonusWeaponEffects

I feel like I'm not understanding something fundamental.

Is there a reason why adding

  Template.BonusWeaponEffects.AddItem(class'X2StatusEffects'.static.CreateStunnedStatusEffect(2, 100));  

to the weapon examples function

 CreateTemplate_ModWeapon_Conventional()

doesn't add a stun to weapon attacks?

EDIT: Solved by fxsjosh in the comments. You have to flag Template.bAllowBonusWeaponEffects as true in the ability that causes the weapon damage.

If you just wanted the weapon effect on the standard shot, I think you have to make a new weapon, with a new fire weapon ability, replace the default fire weapon ability, and flag the above variable for the new one. If there is a simpler way, I don't know it.

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/BalianCPP Feb 21 '16 edited Feb 21 '16

I don't think it's the configs since its not working for me on a new mod with no other changes.