Help making a special melee weapon

Started by KetchupAddict, November 21, 2020, 11:18:24 PM

Previous topic - Next topic

KetchupAddict

I am making a special melee weapon that deals increased damage on a pawn with plague. So, can can someone give me some help on how to do that? Ranged weapons use the Bullet class and the Impact function. What do melee weapons use?

Any help would be appreciated!

O Negative

Just for clarification, does the weapon apply the plague to people or does it do more damage to people who already have the plague? :o

If you want the weapon to add the plague hediff, that's easy and can be done with xml. For the second one, you're going to need to write a special damage worker with C# that checks to see if the target has the plague on-hit, and that's where the calculations are going to take place.