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 / gas mask script

Author
Message
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 25th Nov 2010 20:10
how does the gas mask script work? (there is only one on the forum search) how do I apply it?
BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 26th Nov 2010 04:16 Edited at: 26th Nov 2010 04:17
Check here. CTM's post explains it.

http://forum.thegamecreators.com/?m=forum_view&t=172592&b=23&msg=2048352#m2048352

- BlackFox

RPG Mod- Create a world full of adventure
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 26th Nov 2010 08:36
so what do I apply the scripts to?
BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 26th Nov 2010 17:47
I apply mine to a trigger zone, like this:



- BlackFox

RPG Mod- Create a world full of adventure
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 27th Nov 2010 05:09
thanks for all the help so far, one more thing...

I works expect that when I enter a gas mask zone then leave, the "f" key no longer disables the hurt zone.
BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 27th Nov 2010 05:52 Edited at: 27th Nov 2010 06:04
The "hurt zone" script was created to give the appearance the player was in a room with toxic gases about. If you don't want that, but just want the gas mask to work, then don't put a hurt zone in, but keep the trigger zone with the gas mask script.

I do have another gas mask/goggles script and huds made by Xplosys. I use it in all our WW2 developments we have. I've attached it to this post for you to download. There are three huds- blood, snow, and clear, and the three scripts for each are there as well.It even plays a sound. If you want to use the gas mask hud from the post I pointed you to, just change the script to point to that image.

**EDIT** I forgot to mention, the scripts use the G key, but you know how to change that

Hope that helps you.

- BlackFox

RPG Mod- Create a world full of adventure

Attachments

Login to view attachments
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 28th Nov 2010 05:25
dude thanks! The other script is super helpful, but I am afraid you misunderstood me. when I said:

"It works expect that when I enter a gas mask zone then leave, the "f" key no longer disables the hurt zone."

I meant that if I enter a "toxic zone" and hit the f key the gas mask hud comes up and the damage stops. however, if I leave the "toxic zone", and then reenter it and hit the f key, the hud will show up but the player will continue to suffer damage. I think it's a flaw with the script but I am not sure how I might go about fixing it. perhaps you could help me out in figuring out why this happens?

Also, thanks again for all the help, I don't mean to be a bother!
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 30th Nov 2010 04:25
hello?
BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 30th Nov 2010 05:25
Sorry, Gladius. I was tied up the last couple of days.

The script works properly. Let me explain what I do. Here is an example level screenshot:



I assign my hurtzone main script as:



I assign my trigger main script this script:



When I start and enter the hurt zone, my health starts to lower. I press the key for the gasmask, the hud comes up and I no longer get hurt. I walk to the other side and press the key to turn off the mask. I turn around and re-enter the hurt zone, I get hurt. I press the key for the mask and I do not get hurt when the mask hud appears.

I've tested with different variations: mask on, enter hurt zone, leave hurt zone, re-enter hurt zone. I tried mask off, enter hurt zone, put mask on and I was protected, leave hurt zone, turn mask off, re-enter hurt zone, get hurt, mask on, protected.

BTW I'm running this in FPSC v1.17 and it works exactly as it should.

- BlackFox

RPG Mod- Create a world full of adventure
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 1st Dec 2010 04:39
ok, I see, I was using two trigger zones, that was what messed me up. Thanks again man, your super helpful and patient with my nagging questions, hopefully I won't find any more problems.
BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 1st Dec 2010 04:48
Quote: "ok, I see, I was using two trigger zones, that was what messed me up. Thanks again man, your super helpful and patient with my nagging questions, hopefully I won't find any more problems. "


You are welcome. Glad my example and explanation was clear enough. And it's never a bother to help out.

- BlackFox

RPG Mod- Create a world full of adventure

Login to post a reply

Server time is: 2025-06-04 21:04:04
Your offset time is: 2025-06-04 21:04:04