Disease and damage types combined

Started by OmegariusWolf, February 08, 2015, 03:40:43 PM

Previous topic - Next topic

OmegariusWolf

How can i attach a disease event to a specific type of damage, ex: gun causes shock damage to a pawn, and after a few seconds, that same pawn gets a disease that makes him unable to use a weapon for a few seconds, or even better go into shock for a few minutes.

mrofa

You would need to add it to projectile, thats the easiest way, but thats in code.
If you mean by code check this source stuff for examples
All i do is clutter all around.

OmegariusWolf

I already know how to create new damage types and how to add them to a weapon, i also know how to create new types of diseases, my only problem is getting the disease and damage type to combine, can just figure out how to combine them together.

mrofa

It would be easier just to use it on bullet and add a check if hit thing is a pawn then its gets a diseases.
All i do is clutter all around.

OmegariusWolf

I already tried it, seems that disease and damage must be written on two separate files, but in the case of bullet damage it somehow links to infection, i just cant figure out how to create a link for my type of damage.