Add an Additional Damage Type/Condition on a Melee Attack

Started by vengeanceaurelith, September 14, 2017, 08:24:29 PM

Previous topic - Next topic

vengeanceaurelith

Disclaimer: Relatively new to modding in RimWorld, but am quick to learn. Not asking you to write my code, for me, just need to be pointed in the right direction.

Hello everyone, I'm trying to find an example of a mod, or section of existing code, that would allow me to add an additional damage type to a melee weapon. I'm familiar with adding Hediffs, but while writing my C# code for the chance to proc the effect, I'm having trouble calling the objects for an existing damage type (If the condition already exists, increase severity and such). Thank you in advance.

CannibarRechter

Have you looked at Skully's laser and gauss weapon package? He seems to add some kind of DamageDef in the laser package, although I'm not sure what it's doing.
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

vengeanceaurelith


vengeanceaurelith

Hello again,

So I looked at Skullywags' Laser mod, and it helped, some, but I've been stuck since then, trying to identify what class handled the melee combat for the C# code.

For example, if trying to make a custom effect for a ranged weapon, we append " : Projectile" to the end of the class. What do we use for a melee attack? Thank you, again, in advance.

Canute

Maybe look at Jecstools, the libary adds another mellee damage type.

vengeanceaurelith

Thank you. I actually think I downloaded that, last night to look at, but didn't get around to it. I'll tear it open, tonight. Again, thank you for the reminder.