i found it in the MDT site, the site is gone but i have a local backup.Crimson_Raptor wrote:Where did you find that piece of code? Is it in the game.rfa?freddy wrote:c_SeatForceSittingSoldier"
Preventing the player being killed inside the vehicle
- Crimson_Raptor
- Posts: 18
- Joined: Fri Jun 25, 2010 3:17 am
- Location: Tulsa, Oklahoma
- Contact:
Re: Preventing the player being killed inside the vehicle
Does it work ingame, in '42?
"I want you to remember that no bastard ever won a war by dying for his country. He won it by making the other poor dumb bastard die for his country."
Re: Preventing the player being killed inside the vehicle
I was thinking maybe something similar to 'speedmod' would work for this.. kinda speedmod 0 but for soldiers. This is an impact death after all..
Where can i find such a thing?
(its no issue if this becomes global.. its a racing map so people jumping off of mount everest and living would just be lol..
Where can i find such a thing?
(its no issue if this becomes global.. its a racing map so people jumping off of mount everest and living would just be lol..
Code: Select all
ObjectTemplate.Active USMarineSoldier
ObjectTemplate.SpeedMod 0
Re: Preventing the player being killed inside the vehicle
thanks.. I couldn't find the setup for the solidiers but I now realise it in the CommonSoldierData.inc file..
inc files... news to me
inc files... news to me

- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Preventing the player being killed inside the vehicle
As I recall speedMod only changes damage incured from soldier colliding with the ground or static object and not the damage he gets when something hits him instead. Espectially PCOs. Generally the damage system and/or the ObjectTemplate.damageMod setting defines how much damage a PCO recieves when another PCO hits it.



I have cameras in your head!