Page 1 of 1

Damage dealt when vehicle hits soldier?

Posted: Thu Sep 24, 2015 8:57 pm
by Swaffy
Hi, I did something to my Kubelwagen a long time ago which caused it to do no damage to soldiers when it rams into them. I can hit a soldier at 100 MPH and he just gets pushed to the side or flies off with me and gets killed from hitting some other object.

What bit of code controls how much damage a vehicle does to a soldier when it hits them? And how can I make it damage them at a much lower speed (for tanks)?

Does it have anything to do with ObjectTemplate.speedMod?

Re: Damage dealt when vehicle hits soldier?

Posted: Sat Sep 26, 2015 10:00 am
by freddy
If you lower the soldiers ObjectTemplate.speedMod value, they will take less damage from everything moving. (or themself moving into stuff)

You can lower the damage from a vehicle (standard value is 1) with ObjectTemplate.damageMod 0 but this also affects everything moving, not just soldiers.

So other then that i guess you can change the material damage values that the tank uses versus the material soldiers uses if you want to change the damage to soldiers only, i havent tried this so im not sure.