making player invincible unless...

Ask questions, discuss ideas, get answers

making player invincible unless...

Postby fo0k » Sat Oct 24, 2009 4:19 pm

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

Re: making player invincible unless...

Postby freddy » Sat Oct 24, 2009 7:30 pm

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

Re: making player invincible unless...

Postby fo0k » Sun Oct 25, 2009 7:28 pm

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

Re: making player invincible unless...

Postby Apache Thunder » Mon Oct 26, 2009 5:14 pm

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

Re: making player invincible unless...

Postby Senshi » Mon Oct 26, 2009 10:08 pm

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.
User avatar
Senshi
 
Posts: 695
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: No registered users and 16 guests

cron