Preventing the player being killed inside the vehicle

Ask questions, discuss ideas, get answers
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Re:

Post by freddy »

Crimson_Raptor wrote:
freddy wrote:c_SeatForceSittingSoldier"
Where did you find that piece of code? Is it in the game.rfa?
i found it in the MDT site, the site is gone but i have a local backup.
User avatar
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

Post by Crimson_Raptor »

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."
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

Crimson_Raptor wrote:Does it work ingame, in '42?
dunno, i have never tried it myself. i got curious and did a search throw the gamefiles, but no hit on "c_SeatForceSittingSoldier"
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Preventing the player being killed inside the vehicle

Post by fo0k »

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..
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

Code: Select all

ObjectTemplate.Active USMarineSoldier
ObjectTemplate.SpeedMod 0
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Preventing the player being killed inside the vehicle

Post by fo0k »

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 :)
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Preventing the player being killed inside the vehicle

Post by Apache Thunder »

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.
ImageImageImage
I have cameras in your head!
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

it works like pushing around them soldiers with a tank or fly into them full speed and they survive

if i remember it right
Post Reply