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 / Out of Ammo=lose?

Author
Message
Sapphire MP
17
Years of Service
User Offline
Joined: 9th Nov 2007
Location: Somewhere...over the rainbow...
Posted: 24th Feb 2008 06:05
I am making a game involving being an assasin and sniping targets. However, I only want the player to have one shot. How do I make the player lose (get a game over) when they use that one shot? I already have the ammo set to only one shot.

Brian Conover
Visit www.freewebs.com/sapphiremp
sonicreator 2006
19
Years of Service
User Offline
Joined: 3rd Sep 2005
Location: Press F5
Posted: 24th Feb 2008 14:50
uh...

scripts?

if you want the player to die when he uses that shot, then put in:


(hope its correct, if not, some one correct me)
into the script for the gun

Play the games the masters play: MKZn and 3-B promo

http://www.3bpromo.tk
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 24th Feb 2008 15:45
no, it's PLRADDHEALTH=-1000

Or, GAMEOVER?

Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 24th Feb 2008 23:57
Do you mean they lose only if they miss with that shot... because as I read it at the moment they would lose as soon as they shoot...

[center]
Sapphire MP
17
Years of Service
User Offline
Joined: 9th Nov 2007
Location: Somewhere...over the rainbow...
Posted: 25th Feb 2008 02:10
Oh, yes. Killing the target is set as an objective, so I want it to somehow check for the no ammo after it checks for all objectives complete.

Brian Conover
Visit www.freewebs.com/sapphiremp
Blaike
16
Years of Service
User Offline
Joined: 24th Feb 2008
Location: Beyond...
Posted: 25th Feb 2008 09:04
It's a neat idea. Unfortunately theres no scripting commands that are relative to ammo.

What you could do instead is create a zone where the player is shooting from and give it a script that makes the player lose the game five seconds after they press the left mouse button (aka shoot ).

This way if they shoot and hit the target, they win (if the target is set as objective). If they miss, they lose.

Thats the best way I can think of doing it right now. It would be nice if they added ammo related fpi scripting.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 25th Feb 2008 20:41
Quote: "...create a zone where the player is shooting from and give it a script that makes the player lose the game five seconds after they press the left mouse button (aka shoot ).

This way if they shoot and hit the target, they win (if the target is set as objective). If they miss, they lose..."


...outstanding idea.

Make sure the player is well briefed before the scenario, to allow the all or nothing consequences sink in.


Widow 13 - ©2008 Harsh Games, Inc
Sapphire MP
17
Years of Service
User Offline
Joined: 9th Nov 2007
Location: Somewhere...over the rainbow...
Posted: 26th Feb 2008 04:29
Gee, thanks so much! It's looking really good now!


An abandoned construction makes a good place for a sniper...


Climb up quickly, before your target gets away...


Your gun awaits you...


Locate the target amongst the crowd...


Mission Complete.

Brian Conover
Visit www.freewebs.com/sapphiremp
Otto42
17
Years of Service
User Offline
Joined: 27th Sep 2007
Location: Indianapolis, IN, USA
Posted: 9th Mar 2008 21:02
dude, u have to tell me how to do this in a DETAILED way.
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 9th Mar 2008 21:06
Quote: "t's a neat idea. Unfortunately theres no scripting commands that are relative to ammo.

What you could do instead is create a zone where the player is shooting from and give it a script that makes the player lose the game five seconds after they press the left mouse button (aka shoot )."


Who taught you FPI? You can't check if mouse buttons are clicked, and using the QUANTITY command could possibly yield a way to check ammo count....

shadow651
17
Years of Service
User Offline
Joined: 15th Apr 2007
Location: kicking it with my hommie darth V
Posted: 10th Mar 2008 00:45
love how you did the buildings reminds me of hitman only with one shot you could call it 'one shot hitman' lol


Operation Black Mesa Developer-Story Editor
[url]Operationblackmesa.vossey.net[/url]
Blaike
16
Years of Service
User Offline
Joined: 24th Feb 2008
Location: Beyond...
Posted: 13th Mar 2008 01:22
Sorry coffeegrunt?

I taught myself FPI when I purchased fpsc three years ago. I'm positive that the mouse buttons have values for the SCANCODEKEYPRESSED condition.

No, using the QUANTITY command would not yield a way to check ammo count.

Toasty Fresh
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: In my office, making poly-eating models.
Posted: 23rd Mar 2008 03:27
Hmmmm.... does someone have a copy of this script that I can have?

Login to post a reply

Server time is: 2024-11-27 19:37:48
Your offset time is: 2024-11-27 19:37:48