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 / COD Health for PB

Author
Message
Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 19th Jun 2010 20:13
While I was trying to sleep the other day, I had a brilliant idea for a COD style health script. After some tweaks the next day (and some irritated emails to Ply) I* got it to work.

How it works is:

You get hurt
3 second delay
You start healing until you get hurt again

So, for all you guys wishing for COD style health, here's the code:


Sadly, no blood HUDs to go along with it. Also, it is for PB only.

Thanks again to Plystire for giving me a copy of the memo.

*Pronounced "Ply"

The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 22nd Jun 2010 13:01
The real COD health style is not far away from what you have right there.
Theres three sections in CoD style health;

1. Small Damage
2. Medium Damage
3. Heavy Damage

Try to make something to fit like that, however Marc has one i belive that works quite nice (if you wish to do shortcuts) but i belive that learning yourself is a great way to get into scripting.


-Massap2

We are the magnificent Masters, builders of pyramids.
Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 22nd Jun 2010 13:22
Quote: "but i belive that learning yourself is a great way to get into scripting."


I've actually been scripting for a while now.

Quote: "however Marc has one i belive that works quite nice"


I've seen his, his doesn't have a delay as much as just staggering when you get health. His has a system where every time the player gets healed, a variable goes up by one, and when that variable reaches 20 there is a delay. This actually recovers depending on when you are hit.

Quote: "Theres three sections in CoD style health;

1. Small Damage
2. Medium Damage
3. Heavy Damage
"


If you mean HUD-wise, I can see. Other than that it seemed like a linear progression, which is what I have here.

Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 22nd Jun 2010 14:21
Quote: "I've seen his, his doesn't have a delay as much as just staggering when you get health. "


That's true Plystire also sent me that health regeneration script and I even wrote my own but couldn't get the darn thing to work, so I just stuck with timed restoration. Of course, you can always use Shadowtroids system with my script pack for the real Modern Warfare experience


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 22nd Jun 2010 16:01
Quote: "I've actually been scripting for a while now."

Only PB or are you playing around with other mods to?

My bad, i got into conclusions. I hadent really looked hardly into it but the 3 progress hud thing still goes.

-Massap2

We are the magnificent Masters, builders of pyramids.
Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 22nd Jun 2010 22:07
Quote: "with other mods to?"


Yup, I made a pretty neat flashlight script for Fenix mod, complete with HUDs and flickering near the end.

I should probably release that too, as his project seems to have been abandoned.

Quote: "but couldn't get the darn thing to work"


I had to ask Ply for help (as you saw in my post ) and my problem was something rather stupid. I didn't fully understand the command, it also accounted for equality. Did you also check to make sure they got hurt by using a variable that's always set the player's health, and if it ever gets lower, you know they are hurt, and start the delay then?

Quote: "I hadent really looked hardly into it but the 3 progress hud thing still goes."


Yeah, I am not very good at making organic HUDs. I'm decent at sci-fi stuff and accompanying scripts though. (coughcoughCrysiscoughcough)

2020vs
15
Years of Service
User Offline
Joined: 26th Apr 2009
Location: MN
Posted: 16th Aug 2010 17:11
1. whats PB?
2. where do I put this script?

Ken
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Aug 2010 21:55
1. PB stands for "Project Blue" which is a purchaseable Mod for FPSC.

2. Copy and paste the code from the first post into notepad. Save it into your scriptbank folder with the ".fpi" extension (just put .fpi at the end, not .txt). In your level, make a dynamic light (not static), right click on it in the editor, and change the "Main AI" field to the file you just created with the code.


The one and only,


Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 16th Aug 2010 22:03
Beat me to it Ply.

2020vs
15
Years of Service
User Offline
Joined: 26th Apr 2009
Location: MN
Posted: 17th Aug 2010 01:53
Ply, I did what you said and I still don't have the COD style health. What do I do?

Ken
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Aug 2010 03:31
You'll need to give me a bit more information than "It doesn't work" in order for me to help you.

What did you do, exactly? What is it doing that it didn't do before? What is it not doing that you wanted it to do?


The one and only,


2020vs
15
Years of Service
User Offline
Joined: 26th Apr 2009
Location: MN
Posted: 17th Aug 2010 15:51
I Copy and pasted the code from the first post into notepad. Save it into your scriptbank folder with the ".fpi" extension (just put .fpi at the end, not .txt). In your level, make a dynamic light (not static), right click on it in the editor, and change the "Main AI" field to the file you just created with the code.
Then I tested the game with a few enemies and when they shot me my health didn't regenerate

Ken
2020vs
15
Years of Service
User Offline
Joined: 26th Apr 2009
Location: MN
Posted: 17th Aug 2010 16:10
oh wait stupid of me Ply! duh I don't have PB, well not yet i'll get it right now!

Ken
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Aug 2010 16:35
Yup, not having PB would indeed be the cause.


The one and only,


Monkey Mja
14
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 18th Aug 2010 23:34
Would Project Green work?

- Monkey
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th Aug 2010 04:45
Yup, PG should work for this, too.


The one and only,


biohazardNL
15
Years of Service
User Offline
Joined: 26th Oct 2009
Location: netherlands
Posted: 4th Nov 2010 23:08
is some of those stuff also working for X10?

[href]http://tbhproductions.com[/href]
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Nov 2010 02:17
No, it doesn't work in X10.... yet.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.

Login to post a reply

Server time is: 2024-11-24 16:58:31
Your offset time is: 2024-11-24 16:58:31