Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Is this possible as .fpe?

Author
Message
MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 24th May 2007 10:30
Hi everyone,

I was thinking about this script I noticed where this medic who follows you heals you, I think it was by xplosys, would it be possible to build in that if that medic gets shot (I'm guessing the main player would be the only one capable of shooting the medic) that it would cause you to lose all of your own health right away?

So in short: Say you have to pick someone up and that entity follows you around whereever you go, like a hostage you rescue, but that person got shot your mission is over and it's game over right away? (thus lose all your health?)


amigacam.net.tc
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 24th May 2007 17:08
No, it wasn't my script, but easy enough to do.

In theory, the character script would do nothing until the player was within whatever distance.

:state=0,plrdistwithin=120:state=1

Then the character would follow the player.

:state=1:followplr

Then if the character is killed.....

:state=1,shotdamage=100:plraddhealth=-500

the player dies with him.


Best.

I'm sorry, my answers are limited. You must ask the right question.

MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 24th May 2007 18:12
xplosys my friend, you rock! Thanx for that I'm trying it tonight!!!!

(Gotta make some food first hehe)


amigacam.net.tc
MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 24th May 2007 20:47
It somehow doesn't seem to work for me, when I shoot the guy the hostage dies but I stay alive, I have the code like this:




amigacam.net.tc
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th May 2007 01:49
Yeah, the problem is the shotdamage=100. The character is dying before the rest of the script can be run.

Try shotdamage=40.

best.

I'm sorry, my answers are limited. You must ask the right question.

MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 25th May 2007 10:21
I have no idea why, but that still won't work


amigacam.net.tc
MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 25th May 2007 10:44
I really tried it every which way, I even put in JUST your script in an entity and the following everything goes flawlessly. However the killing part wont work.

Also, I tried (just as an experiment) having energy subtracted when the guy is in close proximity and that also works (which is quite interesting) however the shooting of the guy and me then losing health when he dies won't work.

If you can still help me out with this it's greatly appreciated! thnx!


amigacam.net.tc
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th May 2007 15:40 Edited at: 25th May 2007 15:43
Sorry, I was playing with this yesterday but I don't have time at the moment. The death works right for me but the follow animation is not finished. You should be able to finish that.

Quote: "
:state=0,plrdistwithin=120:state=1
:state=1,plrdistfurther=119:none
:state=1:animate=2,followplr
:state=1,shotdamage=30:plraddhealth=-500
"


Best.

EDIT: I think part of the problem with doing it this way is going to be the weapon used to do the damage and how high it's damage is set. If the character is killed before the rest of the script can finish, then the player never dies because the script dies. Thus the lower shotdamage setting. In some cases, it may need to be lower.

I'm sorry, my answers are limited. You must ask the right question.

MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 25th May 2007 17:29
Hi Xplosys!

I notice it now yeah I see that it is an = statement, is there no < or > statement in the .fpi language?

Or wait yeah I can imagine that if he dies or whatever ehrmmm thinking while typing here, what if I set it a few times like:

:state=1,shotdamage=30:plraddhealth=-500
:state=1,shotdamage=40:plraddhealth=-500
:state=1,shotdamage=50:plraddhealth=-500
:state=1,shotdamage=60:plraddhealth=-500

Or maybe:

:state=1,shotdamage=30:plraddhealth=-500,:state=1,shotdamage=30:plraddhealth=-500,:state=1,shotdamage=40:plraddhealth=-500,:state=1,shotdamage=50:plraddhealth=-500

Is that a possibility?


amigacam.net.tc
MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 25th May 2007 17:30
Or maybe is there like a statement I can do that whenever I shoot the guy and a bullet hits him I get creamed myself?


amigacam.net.tc
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th May 2007 20:00 Edited at: 25th May 2007 20:03
Yeah, I think if you were to make it shotdamage=1, then you would die when he is shot, even though he doesn't die.

But then you could put the same in his script.

:shotdamage=1:plraddhealth=-500,destroy

Best.

I'm sorry, my answers are limited. You must ask the right question.

MiRRoRMaN 64
20
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 25th May 2007 23:58
Thanx man! Some stuff is really becoming clear to me now, I think I'm gonna read up some stuff in the .fpi appendium.


amigacam.net.tc

Login to post a reply

Server time is: 2024-11-23 18:12:00
Your offset time is: 2024-11-23 18:12:00