Page 1 of 1

making player invincible unless...

Posted: Sat Oct 24, 2009 4:19 pm
by fo0k
need people to be invincible in cars.. but still die if the car dies..

also would be good for them to die as usual when shot etc out of the car..

Re: making player invincible unless...

Posted: Sat Oct 24, 2009 7:30 pm
by freddy
that should be easy enough if your modding is client side.

Code: Select all

rem *** WillySeat ***
ObjectTemplate.create SeatObject WillySeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
change this to something not outside or just try rem it out

Code: Select all

ObjectTemplate.seatFlags c_SeatShowFullBodySoldier

Re: making player invincible unless...

Posted: Sun Oct 25, 2009 7:28 pm
by fo0k
I never noticed that 'SeatIsOutside' command before.. I appreciate the willy has no roof but whats the purpose of that code? surely the collision mesh dictates whether someone is 'outside' ?

will try this though :)

Re: making player invincible unless...

Posted: Mon Oct 26, 2009 5:14 pm
by Apache Thunder
When the "is outside" command is turned off, the collision for the soldier when in the seat is turned off which means he can never take damage from explosions or projectiles. The vehicle in question still does though. So you should be able to rem it out. But this isn't something that can be done with the active command. You will have to modify the objects.rfa file for your server to do this.

For example, it should look something like this after your done:

Code: Select all

ObjectTemplate.create SeatObject HEMTTSeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
rem ObjectTemplate.seatFlags c_SeatIsOutside

Re: making player invincible unless...

Posted: Mon Oct 26, 2009 10:08 pm
by Senshi
It's no problem if this can be done SSM, as this definetly will be a CSM mod. Would be surprised if anyone managed to make the stuff fo0k works on SSM ;) . Really, really surprised :D

Oh yeah, and I once again encourage people to tag their questions with [CSM] or [SSM] in the title, so everybody nows on a glimpse if the topic discussed is SSM or CSM. E.g. [CSM]Making player invincible unless...same goes for tuts, by the way. Always good to know on first glance if it's a CSM or a SSM tut.