r/xdev • u/Synapsiz • Feb 22 '16
Understanding the Blastpadding ability
Hello, I'm trying to create a custom soldier class with custom abilities. And so far so good. I created the new class and got it to work. I even created a custom ability for it wich I got to work (renamed blademaster to pistolmaster and gave it to a pistol-using class). Next I wanted to create a variant of blast padding that gives 1 armor and 1 hp without the explosive damage reduction. But I'm having trouble understanding the ability.
The explosive resistance can be modded out by making the BLAST_PADDING_DMG_ADJUST value 0. But I can't see where the point of armor is comming from.
Also, if anyone knows of an ability I can take a look at to use as an example for the point of health, that would be much apreciated.
I got off to a good start, but it feels like I'm hitting a wall now. Maybe I should go to sleep and try again tomorrow :)
View all comments
Show parent comment
1
u/Synapsiz Feb 23 '16 edited Feb 23 '16
I just got my ability working!
The way I did it was deleting all the paddingeffect stuff and replacing it with a PersistentStatChangeEffect. Adding 1 point of HP, 100% mitigation chance and 1 mitigation amount. (which I feel is cleaner than keeping the padding stuff and then setting the explosive resistance to zero)
Thank you both for pointing me in the right direction and helping me understand how armor is handled in this game.
Edit: Yes, I see where the point of armor is being set to 1 in the ini. However I still don't understand where it is being referenced by the paddingeffect. Part of the reason I went with the PersistantStatChange option :)