making player invincible unless...

Ask questions, discuss ideas, get answers
Post Reply
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

making player invincible unless...

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

Re: making player invincible unless...

Post 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
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: making player invincible unless...

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

Re: making player invincible unless...

Post 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
ImageImageImage
I have cameras in your head!
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: making player invincible unless...

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