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 Product Chat / play video on your players death and end the game HELP!

Author
Message
jag productions forum
16
Years of Service
User Offline
Joined: 26th Nov 2009
Location:
Posted: 12th Dec 2010 07:40
Hi I want to make a game, where on the last level, your entire squad gets killed, and you are under heavy attack, you hold them off for as long as you can, but there are simply to many enemies, what i want to be able to do is, when your health reaches "0" a ending video .avi cut scene occurs, showing your player backing up to a wall, firing madly (im an animator so i can do this in 3ds max), my question is, how can I get fps creator to play a .avi file when my health reaches "0" then end the game, I have an idea but i dont think it will work,

any help would be appricated

my sig is EpIc!!!!!
Dark Frager
16
Years of Service
User Offline
Joined: 16th Mar 2010
Location: The Void.
Posted: 12th Dec 2010 11:37
I think this might require scripting, something along the lines of this:
If health reaches zero then play file "deathscene".avi. However I am not a programmer and this is just a rough outline of what I think you could do, but I'm sure there is someone on the forums that could help you out more.

If you can see the enemy, they can see you.
jag productions forum
16
Years of Service
User Offline
Joined: 26th Nov 2009
Location:
Posted: 12th Dec 2010 13:12
thats what i was thinking not sure how im gonna script it though.

my sig is EpIc!!!!!
Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 12th Dec 2010 16:28
You'd need a line of code like this:

:plrhealthless=5:video=X


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Payam
17
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 12th Dec 2010 16:53
As I know when you die in "Alpha Project"a video shows like what you said.

But it is for all levels and I don't know if you can place different videos for different levels.
And I think that game made with "Project Blue Mod".
This is the link of PB,go and ask there:
http://forum.thegamecreators.com/?m=forum_view&t=165834&b=21&p=27

Have our guns was a mistake!!!

I am PaYaM
Payam
17
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 12th Dec 2010 17:40
I though this script will work but it didn't.

I think it just needs a little fix:



Have our guns was a mistake!!!

I am PaYaM
jag productions forum
16
Years of Service
User Offline
Joined: 26th Nov 2009
Location:
Posted: 12th Dec 2010 23:37
well if any one could make a script up for me that would be really great

my sig is EpIc!!!!!
Lewis
VBOTB Developer '10
21
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 12th Dec 2010 23:57
Sigh.. I remember the days when people wanted to learn to make things for themselves..

Anyhow..

Put this in your gameover.fpi



Now just make a dead.wmv video file and put it in your videobank folder. It should come up when you die.

Doomster
18
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Germany
Posted: 13th Dec 2010 00:20 Edited at: 13th Dec 2010 00:20
Quote: "But it is for all levels"






-Doomster

jag productions forum
16
Years of Service
User Offline
Joined: 26th Nov 2009
Location:
Posted: 13th Dec 2010 02:52
Thanks for your help guys I will use this on the final level, fps lags when you got a lot of rocks its an out door desert level very similar to the ending of halo reach

my sig is EpIc!!!!!
Payam
17
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 15th Dec 2010 22:18
Thanks a lot,
But the problem is that script will works only when you have one life not when you have for example 3 lives and if you have 3 lives you'll see no video until you die 3 times.

Have our guns was a mistake!!!

I am PaYaM

Login to post a reply

Server time is: 2026-07-03 09:53:37
Your offset time is: 2026-07-03 09:53:37