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 / Can i make a character get alive after it death ?

Author
Message
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 15th Sep 2009 21:47
I am making a game about crazy scientist , expirements , plaplapla whatever , I want to make the way to kill a character is to shoot him until he falls to the ground ( Health=0 ) then the timer starts , you must stand on him and press action button to inject him with the vaccine before he gets up ( timergreater=10000 ) , but the proplem is when you kill the character it never comes back to live again , So please give me any ideas to make this work out.

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 15th Sep 2009 23:35
Change the character's spawn when dead property to "yes"?


Kravenwolf

Splash down
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location: The red teepee outside your house
Posted: 16th Sep 2009 03:43
that would spawn him back at his original spawnpoint, which would be highly unrealisdtic.


Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 16th Sep 2009 20:57
@Kraven Wolf :
You don't understand me exactly , i was asking if it possiple to set the character's health to 500 (for example) and when the health is less than 101 the character falls onto the ground for ten seconds , if you inject him with the vaccine then the remaining health of this entity being deacreasd , but if not , it stands up again , is it possiple ?

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Alt Schule
17
Years of Service
User Offline
Joined: 19th Apr 2007
Location: In Your Mind
Posted: 17th Sep 2009 17:32
With clever use of custom animation and scripting, it would be possible to create the illusion that you seek.

1. Health gets low.

2. Custom drop to ground animation plays.

3. Player stands on character (injects).

4. Character continues to die.

or

3. Player does not inject character within certain timeframe.

4. Character rejuvenates and stands back up.

It would take some planning, but the illusion would be possible to pull off.


Talairina
18
Years of Service
User Offline
Joined: 9th Jan 2006
Location: United Kingdom
Posted: 18th Sep 2009 00:13
Or purely with scripting since the drop down animation already exists.

You could script it so when the characters health falls below a certain level he falls to the floor (call the correct animation at this point to show the entity on the floor). Also start the timer. Once the player approachs the entity and clicks use (or what ever key you specify, could use scancodekey here to define a diffrent key if you wish). At which point you can tell the script to apply addition damage to kill the entity. If the timer should reach a certain point though before the player uses the vaccine jab (timergreater) then the entity should be rejuviated (addhealth here) and cycled back to its default animation (I.e. get him to stand up again).

I'm not going to script this for you, but this should give you an outline of how it can work and how you should lay it out. I may be alittle off with the spelling of some commands (Or even if some commads are in stock since I do work with Ply's mod alot).

Hope this helps.
Gremlin986
15
Years of Service
User Offline
Joined: 20th May 2009
Location: Xen
Posted: 18th Sep 2009 17:50
Like in Nazi Zombies right? Or Left 4 Dead.

nikas
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location:
Posted: 18th Sep 2009 18:39
or you could just make a new one just like him appear after this one dies...

Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 18th Sep 2009 23:54
@ Talarina :
Thanks but i want to ask something else , what is the numper of the drop down animation to right on animate=x ? ( Please don't consider it a stuupid question ! )

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Talairina
18
Years of Service
User Offline
Joined: 9th Jan 2006
Location: United Kingdom
Posted: 22nd Sep 2009 00:51 Edited at: 22nd Sep 2009 00:56


I believe its the Generic Impact/Unarmed Impact ones your after. This was already posted by Programador hispano back in March 09.

Login to post a reply

Server time is: 2024-11-25 06:47:32
Your offset time is: 2024-11-25 06:47:32