Jump to content

add shred and holotargeting to enemy weapons?


davidlallen

Recommended Posts

I have copied an xcom weapon for enemies to use. I want the enemy unit to have shredder and holotargeting. I add this to the weapon template:

 

Template.AddItem('Shredder');

Template.AddItem('HoloTargeting');

 

When I put this weapon in an enemy loadout and use "dropunit 0" in tactical to put it in play, the unit has the yellow shredder and holotargeting status icons in the lower left, which is good. But when I fire the weapon, it doesn't shred, and it doesn't give the holotargeting benefit to the rest of the team. If I have the weapon grant Rupture ('BulletShred') then that ability shows up as a button, and it has the proper effect.

 

Is there a different way that I need to handle the shredder and holotargeting abilities?

 

I was suggested to just add shred damage to the weapon, but I would like to understand why these effects don't "just work". For holotargeting, I don't want to duplicate the individual defense penalty and graphic, I just want to use the existing effect.

Link to comment
Share on other sites

I posted also on /r/xcom2dev and /u/fxsjosh replied:

 

https://www.reddit.com/r/xcom2mods/comments/4corhc/add_holotargeting_and_shredder_to_weapon/

 

Basically, lots of stuff uses HasSoldierAbility, which only looks at *soldier* abilities, so it will not recognize the same ability on either an enemy character or an enemy weapon. Bad news, but at least it is no longer a mystery.

Link to comment
Share on other sites

I posted also on /r/xcom2dev and /u/fxsjosh replied:

 

https://www.reddit.com/r/xcom2mods/comments/4corhc/add_holotargeting_and_shredder_to_weapon/

 

Basically, lots of stuff uses HasSoldierAbility, which only looks at *soldier* abilities, so it will not recognize the same ability on either an enemy character or an enemy weapon. Bad news, but at least it is no longer a mystery.

 

Wow, that comment history is a gold mine!

 

Thanks for letting me know. I think i'll wait for that fix instead of working around it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...