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 / Set health to max

Author
Message
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 3rd Dec 2006 08:23
If you want to add a cheat for health you can add this to your setuplevel.fpi and then just press the H key to max your health.

Might be a better way to do it and if you do know please share with us.
I have been trying to show a hud when press but not having much luck right now and I'm getting sleepy.
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 3rd Dec 2006 08:46
is it possible to have multiple keys pressed and get the same result?
I mean like a common cheat (health) or (maxlife)

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 3rd Dec 2006 09:51
Yes but I don't know how to add the other keys .
Someone want to show me how?
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 3rd Dec 2006 11:37
ok i go the health cheat to work by default its "health"


How To Use:
add a trigerzone anywhere in you level hold shift and drag it accross your buildings or anire map if you want and set the main ai to the above script.

I'll attach the numbered keyboard guide for customization
(btw im not god at scripting so there may be a better way

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org

Attachments

Login to view attachments
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 3rd Dec 2006 12:29
Thanks Gam3r, that works good and gives me something to look at while I work. now going to try and get a hud to open with the last keypress.
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 3rd Dec 2006 19:54
i was thinking about doing that (something like "Cheat Activated")

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 3rd Dec 2006 22:14
Yep thats what I was thinking, still can't get it to work.
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 3rd Dec 2006 22:49
Here it is with the hud enabled


i dont think i need to include the actual HUD

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 3rd Dec 2006 23:06
Ok I see why mine would not work, I didn't have the hudmake=display,hudshow=cheat,hudfadeout=cheat parts in there.
I'm still learning . lol but this helps a lot to see how it is done.
Thanks for that.
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 5th Dec 2006 09:01
You want a time delimiter, basically using hudtimer to make sure each keypress is within a second, else cancel the cheat (other wise, random keypresses would eventually activate the cheat) (they DID fix hudtimer right?).

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 5th Dec 2006 09:31 Edited at: 6th Dec 2006 09:31
You could attach the healthuse.fpi script to any dynamic entity (even one that is placed where no one can see it...the infamous bloodsplat will work as long as the enemy is dynamic.
You can alter the script to use a different key and the playerwithindistance so that it works from anywhere in your level.
This will work better than a large triggerzone...a large triggerzone can kill your framerate.
I will see if I can't make a quick script and I will post it in a little bit if I can.

Here is the script and it should work for any dynamic entity.
Feel free to change the variables such as playerwithindistance and the amount of health added as well as the key you press to get the health.
The key is the "H" key in the script.

Edit:Revised script is in the code snippet in my post below.

Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 5th Dec 2006 22:35
I was going to to try to add it to setuplevel.fpi and see if it worked. I'll look at your's when I get home. Also i dont think the timer is needed because you have to press the keys in that order, I think.

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org
Slayer Simon
18
Years of Service
User Offline
Joined: 11th Oct 2006
Location:
Posted: 5th Dec 2006 23:47
The code looks good, but what if you mispell it, won't it stay in the same state until you press the next key instead of going back to state zero?
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 6th Dec 2006 03:35
your right slayer im gonna make some edits

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 6th Dec 2006 04:11
is there a condition/command for timer less than?

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 6th Dec 2006 07:57
just use timergreater, reset the timer every turn and have this in the code


:timergreater=1000:state=0

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 6th Dec 2006 08:03
Or you can just use the script I posted.
Has anybody bothered even looking at it.
You can use it for the main script of any dynamic entity and when you press the "H" key it restores your health.
It would be nice if someone used it.
Or,at the very least,checked it out.

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 6th Dec 2006 08:28
well, if it isn't in a code snippit, or isn't on the forum, you can't see it.

Well, the goal is to TYPE the word 'health' not just push H. So, excluded from the competition baised on misjudging the inquisitors intent.

P.S. what is the point of plrdistwithin=5000? just remove that condition.

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 6th Dec 2006 09:04 Edited at: 6th Dec 2006 09:29


Hope I did this right.
Now everybody can see my script.

Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 6th Dec 2006 14:28
i looked at it you can use it like those health thingies on the wall lol

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org
Jourdan
18
Years of Service
User Offline
Joined: 15th Aug 2006
Location:
Posted: 6th Dec 2006 15:32
well.. how do u cuztumize the button?
i dont understand.. cuz i'm just a n00bs

35 = h button?
how do u know?

1. sorry for my bad english
2. sorry for my stupidness

thx b4,
- Jourdan

Dangdut is a music of my Country
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 6th Dec 2006 22:44
This is one I was working on a while back when this "cheat code" thing started.

This code will allow more than one cheat code to be entered. To enter a cheat code, first press the "tilde" key. Each keypress will make the click sound and if you stop before the code is finished or take too long between keypresses, the code will reset and nothing will happen.

The code for the first cheat, full health, is complete and working. The others are just placeholders really to add whatever other cheats you want.



Best.

The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.

Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 9th Dec 2006 00:27
I was working to make something better and i came up with this
i used the stock press sound I included my custom HUD's which you dont have to use, or can use your own.

How to use:
apply this to the main ai of a trigger zone or any dynamic entity in the game. if you use a triger zone place it where no players will be walking because if it just so happens the player is standing directly on it it wont work until they move. Once applied, make a test game and hold the "\" key and it will say "Enter Cheat" on my HUD then when you type in the default cheat "health" it will flash another HUD that says "Health Cheat Activated" and fade out. if you relese the "\" while entering the code you will have to reenter it. As soon as you relese the "\" key the hud will hide and you cannot enter the code until you hold it again. It only has the health cheat because i havent found a way to up the ammo, lives, ammo, etc.


The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org

Attachments

Login to view attachments
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 9th Dec 2006 00:29 Edited at: 9th Dec 2006 00:31
this hud goes to
C:program filesthe game creatorsfps creatorfileslanguagebankenglishgamecorehuds

hit download the preview isnt too exciting

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org

Attachments

Login to view attachments
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 9th Dec 2006 00:30 Edited at: 9th Dec 2006 00:30
and this one goes to
C:program filesthe game creatorsfps creatorfilesgamecorehuds

file type = .tga

The Beta Cell Website 3% http://tbc.redlime.org
Wanna help me make an all new FPSCreator Resource website?
Submit your media for public use here! http://fpsc.redlime.org

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-23 05:17:08
Your offset time is: 2024-11-23 05:17:08