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 / Freeze and unfreeze the player

Author
Message
Shepard
17
Years of Service
User Offline
Joined: 6th Apr 2007
Location:
Posted: 6th Jul 2008 23:42
Hi everybody,

I have created a script, it allow to the player to freeze and unfreeze himself.

How to use :

Place a dynamic light in your level, select like main script this script, enter FREEZEME in game to freeze you, if you want to control the player again, enter UNFREEZEME.

YOU NEED FPS CREATOR V1.03 OR HIGHTER TO USE THIS SCRIPT

How to install

Open the code, put it into a FPI file and follow the How to use.



Please report any bugs if there are, and please be indulgent, this is my first script

Sorry for my bad English (if)

Shepard62700FR

When you spot a sniper, don't stay in his scope or you will die.
Working on a FPSC X9 Game called "The Prisonner".
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Jul 2008 02:35
V1.03?

Correct me if I'm incorrect, but the plrfreeze command was first introduced in one of the latest updates... which was around V1.09, if I am not mistaken.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Shepard
17
Years of Service
User Offline
Joined: 6th Apr 2007
Location:
Posted: 7th Jul 2008 09:57
Ooops, is true, thanks Plystire. So you need FPSC V1.09 or highter to use this script.

When you spot a sniper, don't stay in his scope or you will die.
Working on a FPSC X9 Game called "The Prisonner".
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Jul 2008 16:05
...thanks for the offering.

I'm just a little confused, as to when the player would want to intentionally freeze him/herself during game play.

I could see how, with modification, this could be applied with some success as a trap, however...


xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 7th Jul 2008 16:51
Quote: "I'm just a little confused, as to when the player would want to intentionally freeze him/herself during game play."


Ditto, but a good job on the script anyway. It's always nice to see someone get into scripting. We need all the help we can get.

Best.

Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 7th Jul 2008 17:39
WOW. THis is really cool. Now think about this.

Lets say that you could make a cheat menu in fpsc.

They press something like the "~" key that is how VALVE does it. Then, instead of a developer consle, a HUD pops up that reads "cheats activated - enter a cheat" of something similar to that. Then, the player can enter hidden codes, like the one you have to exploit the game. Then, when they pres "~" again, the hud goes away. This way, the player hased to press "~" in order to enter a cheat. What would be really cool is if the pausegame function workid in the normal scripting and not just in the build game. I will Get working on this.

Shepard
17
Years of Service
User Offline
Joined: 6th Apr 2007
Location:
Posted: 7th Jul 2008 21:51
Quote: "Lets say that you could make a cheat menu in fpsc."


Hmm, something it's possible to do, i will try because I am a little debutant on scripting.

I don't realise why I am fan of SCANCODEKEYPRESSED=

For my FPSC game, I have make some cheats like freeze player or give all weapons of the game.

When you spot a sniper, don't stay in his scope or you will die.
Working on a FPSC X9 Game called "The Prisonner".
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 9th Jul 2008 00:34
Just as a note, my cheat menu script is almost done. I will post it in anew thread when I am ready. It is like 150 lines of fpi, though.

Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 10th Jul 2008 20:23
Quote: "I don't realise why I am fan of SCANCODEKEYPRESSED="


Whereas I am a big fan of keypressed=
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Jul 2008 00:39
@ mad nightmare

It is scancodekeypressed, and that post is not very constructive.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Jul 2008 02:15
@Hybrid:

No, it is "keypressed", a command unique to Plys Mod. It requires an additional parameter but provides the scripter with more power over keypresses.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Jul 2008 04:58
How it is more powerfull?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Jul 2008 05:05
keypressed=X Y
TRUE if scancode X is being pressed and Y=1
TRUE is scancode X is NOT being pressed and Y=0


So aside from also being able to detect if a key is NOT being pressed, it can also be used to detect MULTIPLE keys being pressed at the same time.

Scancodekeypressed cannot detect multiple keys, it detects the highest priority key that's currently being pressed. It also cannot determine if keys are NOT being pressed.

This is especially useful for when you want to know when the player presses the key and ONLY to continue the script when they have released it. (Usually used by programmers so that they can use the SAME key to toggle a function and not have the function toggled super rapidly because the user is holding the key down)




The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Jul 2008 05:23
You should ask Lee to incorporate that into the migration as well.

Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 26th Jul 2008 18:15
when the heck is this migration gona be in effect i cant wait no more!

jamie
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 26th Jul 2008 18:31 Edited at: 26th Jul 2008 18:32
Can anyone say off topic?



The migration is LONG way off. Be patient.

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 27th Jul 2008 21:04
...patience, young weedhopper.

The migration will be well worth the wait, I assure you...


Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 27th Jul 2008 21:28
lol

Login to post a reply

Server time is: 2024-11-24 12:15:10
Your offset time is: 2024-11-24 12:15:10