davidlallen Posted March 31, 2016 Posted March 31, 2016 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.
DerBK Posted March 31, 2016 Posted March 31, 2016 I am having problems with this as well. Another case of something that i didn't look at yet because i have too much other stuff that seems more important.
davidlallen Posted March 31, 2016 Author Posted March 31, 2016 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.
DerBK Posted March 31, 2016 Posted March 31, 2016 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.
swinka6666 Posted April 1, 2016 Posted April 1, 2016 (edited) You must enter a post. Edited April 27, 2016 by swinka6666
zingfharn Posted April 1, 2016 Posted April 1, 2016 Josh tends to hang around Reddit. RMcFall hangs around here. There's no guarantee either of them will answer anything, though.
davidlallen Posted April 1, 2016 Author Posted April 1, 2016 Yes, what zing said. Josh posts more than Ryan does, but there is no magic hotline.
Recommended Posts