Damage dealt when vehicle hits soldier?

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Damage dealt when vehicle hits soldier?

Post 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?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Damage dealt when vehicle hits soldier?

Post 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.
Post Reply