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 / Auto Regain Health

Author
Message
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 9th Jun 2009 12:00
Did some searching befor i posted. but guess i didin't search proper. I seen in a few demos on ply's i belieave it was for auto regain health after x amount of seconds. I was wondering if someone had this script .... sorry if this is a request.. looked threw the scripting tuts and could not figure it out

thanks in advance

===================
InnerCityWar http://Paradoxial.net (Not open yet)
ScreenShots Soon to come
knxrb
FPSC Tool Maker
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: United Kingdom
Posted: 9th Jun 2009 15:22
I don't have a script for it but this is in my mod: xrMod

knxrb

Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 9th Jun 2009 18:02
make a triggerzone allover the map and put the action: plraddhealth=1 in the script.
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 9th Jun 2009 18:31
Quote: "make a triggerzone allover the map and put the action: plraddhealth=1 in the script."

No, just use a single trigger zone with the following code:


What this should do (in theory - I'm not at home so I'm going off of memory here) is check to see if the player's health is less than 50. If it is, 1 point of health will be regenerated every 5 seconds until the player hits 100 health.

Is this what you're looking to accomplish?

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 9th Jun 2009 20:04
beautiful
Black Profductions
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location: Argentina
Posted: 9th Jun 2009 20:50
i was looking for it too, anyone has one working?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 10th Jun 2009 00:51 Edited at: 10th Jun 2009 00:53
Back when I made an Armor script for Ply's Mod I made the armor auto-regenerate if the player could keep from getting hit for 5 seconds. If 5 seconds passed without the player receiving damage, then their armor would quickly begin to regenerate.

The same could be done for the player's health.

Here's the armor script, which will create a numeric HUD for tracking your armor and will also deplete your armor BEFORE depleting your health, as well as performt he auto-regeneration of armor. Just copy and paste into a script and use with Ply's Mod V1.05 or higher.



The one and only,


GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 10th Jun 2009 01:04 Edited at: 10th Jun 2009 01:41
ty you guys are awesome thank you

===================
InnerCityWar http://Paradoxial.net (Not open yet)
ScreenShots Soon to come
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 10th Jun 2009 01:06
hey Plystire question can the script for armor be used without the mod??

===================
InnerCityWar http://Paradoxial.net (Not open yet)
ScreenShots Soon to come
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 10th Jun 2009 02:27
Nope, that script requires Ply's Mod in order to function.


The one and only,


Sakuya FM
15
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Temecula, CA
Posted: 14th Jun 2009 07:56
I'm fairly new to FPSC, but I'm using Ply's Mod. For this script, can I just replace the armor variables to health variables (sans the snippet to add an additional armor indicator) so that it'll do it to the health (ala Call of Duty 2/4/WaW). The above script sounds Halo-ish.

"Whoever said the pen is mightier than the sword obviously never encountered automatic weapons."

Login to post a reply

Server time is: 2024-11-25 02:42:53
Your offset time is: 2024-11-25 02:42:53