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 / Night Vision

Author
Message
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 23rd Sep 2006 18:02 Edited at: 23rd Sep 2006 18:02
Attached is a simple Night Vision script using scancodekepressed. Works very well. License and instructions are in the script.

Remember, V1.03 is required for this to work.

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

Attachments

Login to view attachments
Predator boy
18
Years of Service
User Offline
Joined: 14th May 2006
Location: Up your butt and around the corner
Posted: 23rd Sep 2006 18:49
any screenies?

"I'm a lean mean speed thingy!" "What about my womanly needs?" "Send the kids to the neighbors cuz i'm coming back loaded!"
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 23rd Sep 2006 18:52
You want a screenie of a script?

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

Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 23rd Sep 2006 19:00
awesome!!!

I'm testing it now.

Visit raptorgames.net for games, movies, and other stuff
I am the only person who runs it. Sign the guest book!
Predator boy
18
Years of Service
User Offline
Joined: 14th May 2006
Location: Up your butt and around the corner
Posted: 23rd Sep 2006 19:10
id like to see it first yea

"I'm a lean mean speed thingy!" "What about my womanly needs?" "Send the kids to the neighbors cuz i'm coming back loaded!"
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 23rd Sep 2006 19:12 Edited at: 26th Sep 2006 06:11
ok, I can't use this script, for some reason, the player gets lifted off the foor and can't move, than when I turn it off, I can walk again. Weird.

aside from that, it works.

Take my survey please!
My Upcomming Media Pack
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 23rd Sep 2006 19:14
I'm not sure I understand you. When you press N you get lifted off the floor and can't move?

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

Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 23rd Sep 2006 19:22 Edited at: 26th Sep 2006 06:11
yes

Take my survey please!
My Upcomming Media Pack
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 23rd Sep 2006 19:31
Outrageous.....lol

I can't for the life of me think of a reason why, but like I always say. Who knows what this crazy script language will do?

This is essentially the script:



How pressing the N key (keycode 49) could lift you off the floor is beyond me. (unless you're presing the space bar with it)

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

Luke314pi
18
Years of Service
User Offline
Joined: 11th Apr 2006
Location: Minneapolis, MN
Posted: 23rd Sep 2006 19:53
Thanks for the script!!
Connor Higgins
User Banned
Posted: 23rd Sep 2006 20:24
can we see a screenie of it in action please??

(\__/)
(O.o )
(> < ) This is Bunny. Copy Bunny into your signature to help him on his way to world domination!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 23rd Sep 2006 20:31
No not really. You press N and it gets lighter. You press M and it's dark again. I can't show you how to press the keys. You have to figure that out for yourself.

The script just demonstrates the usage of scancodekeypressed= and can be used to do anything a script can do with the press of almost any key.

Just imagine it getting lighter and kind of green and then getting darker again.

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

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 23rd Sep 2006 21:41
Thanks for the script.
By modifying the ambience and changing the number of the key you could get some wild effects...
Good job on this.
It gives me ideas...
At least people will be able to have night vision.

Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 23rd Sep 2006 21:47 Edited at: 26th Sep 2006 06:11
Quote: "(unless you're presing the space bar with it)"


heh heh, yea.

but then I still can't really use it because whenever I jump, it will make me stop moving.

Take my survey please!
My Upcomming Media Pack
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 23rd Sep 2006 21:58
I have tried it on three different computers here and it works fine, but you never know what changes or content are on another persons computer that may affect the way things work. Sorry it doesn't work for you.

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

Lukeirado
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location:
Posted: 25th Sep 2006 18:49
Sry, I am a noob... To what entity should I add the script as MAIN?

"My life flashed through my eyes... It was really boring."
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th Sep 2006 19:07
Please read the instructions inside the script. The script should be attached to a light.

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

Lukeirado
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location:
Posted: 25th Sep 2006 21:22
Ohhh, okay.

I wanted to know that b4 downloading... Let's see what you got there

"My life flashed through my eyes... It was really boring."
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 25th Sep 2006 22:14
It works too.I have test run it and used it in a built level.
Good job,xplosys.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th Sep 2006 22:21
The problem is that you always have it. It's not like you can pick up some goggles and then have night vision. I guess if you explain in the beginning of your game that it's available and what keys to use then it's better than nothing.

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

GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 25th Sep 2006 23:51
I don't know how to do it but I suppose a timer could be added to the script so it expires after x amount of seconds.

One othe thing I noticed is that the floor sound disapears when you use it.

Thanks for your good work xplosys, I'll be using it in my games.

GeoNeo
MK83
FPSC Reloaded TGC Backer
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location: Greeneville, TN
Posted: 27th Sep 2006 05:19
Very cool script. I love it. for those who wanted to see a screenie here you go.


http://www.mk83productions.com http://www.freewebs.com/mk83

Attachments

Login to view attachments
Spudling
18
Years of Service
User Offline
Joined: 5th Apr 2006
Location: In a chair in front of computer
Posted: 29th Sep 2006 23:04
Simple But Effective Code

Was Hi! but Hi! Was gettin a little iritating
GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 30th Sep 2006 01:05
I just noticed something. When you use nightvision you can't walk up the metal staircase, you just go through it. You also can't crouch down.

GeoNeo
AlanC
18
Years of Service
User Offline
Joined: 28th Sep 2006
Location: Seattle, WA
Posted: 30th Sep 2006 02:37
Looks awsome!

hhmmmmm........ hi
MK83
FPSC Reloaded TGC Backer
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location: Greeneville, TN
Posted: 30th Sep 2006 02:52 Edited at: 30th Sep 2006 04:42
GeoNeo is right. you cannot crouch with night vision on. Here is a screenie of me with night vision on and I am inside the metal staircase. Still a cool script though.

I'm running ver. 1.03 RC2, if that helps.


http://www.mk83productions.com http://www.freewebs.com/mk83

Attachments

Login to view attachments
the programmer
18
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 30th Sep 2006 03:18
mine works fine theres none of there bugs odd?

i must say one thing tho AWSUME!!!!!!!!!!!!!!!!!!
xplosys this is very very well done, the scripting is fabulous!!

KEEP IT UP

cheers mate
the programmer
GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 30th Sep 2006 21:51
re: bugs - - I wonder, if the programmer's works fine, then it may be the version of FSSC. I'm running 1.03 RC2, what are you running programmer?

GeoNeo
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 30th Sep 2006 22:04
The night vision script was just meant to show how the KEPRESS condition can be manipulated. It is extremely simple in that all it does is change the ambience when a key is pressed.

While I am aware that scripts have different effects or issues on different systems, I don't have a clue as to why this happens. It could very well be a matter of program versions, previous and existing installations of the program itself as well as updates, third-party content, chipset, video cards, etc, etc, etc.

It seems that there may be a difference in the way that Radeon chipsets interpret FPSC as opposed to the way that GeForce chipsets do, but we are not sure about this yet. There is just not enough data.

I am also running V1.03 RC2.

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

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 30th Sep 2006 22:33
I don't see how changing the lighting can affect whether you can crouch,etc.
If you were to change the lighting via the build game function it wouldn't do that.
Of course FPSC has its cute little quirks and each PC seems to handle it differently.

Zeppelin 37BDF
18
Years of Service
User Offline
Joined: 11th Jan 2006
Location:
Posted: 30th Sep 2006 22:40
i think I know why they are experiencing these problems. Pressing "n" in a test game turns on and off clipping. So they are turning off clipping when they try to turn on nightvision. In a built game, you will not experience this problem.

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 30th Sep 2006 22:49
If that is the case you could just change the key to a different one by changing the number after the first scancodekeypressed in the script.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 30th Sep 2006 22:57
It seems to make sense, and if anyone tries it I hope they will let us know, however I and others had no such issues in either test game or compiled.

[HEAD SCRATCH]I just don't get it.[/HEAD SCRATCH]

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

GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 1st Oct 2006 00:29
Zeppelin 37BDF was absolutely right. I changed key 49 to 51 and had no problem in test mode.

xplosys, even though its a simple script, I think you came across something people really want and I just want to thank you on behalf of those of us who know nothing about scripting.

GeoNeo
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 1st Oct 2006 00:51
You're most welcome, and thank you for testing and fix it.

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

MK83
FPSC Reloaded TGC Backer
18
Years of Service
User Offline
Joined: 10th Jun 2006
Location: Greeneville, TN
Posted: 2nd Oct 2006 05:56
Yes changing to 51 worked for me too. Thanks guys.


http://www.mk83productions.com http://www.freewebs.com/mk83
Slickboy
18
Years of Service
User Offline
Joined: 19th Jul 2006
Location:
Posted: 8th Oct 2006 18:09
Xploysis u posted that on freeFPS didnt cha! Cool script

Slickboy
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 8th Oct 2006 18:49
Yes. Thanks.

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

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 8th Oct 2006 23:10 Edited at: 8th Oct 2006 23:11
Quote: ":state=0:state=1
:state=1,scancodekeypressed=49:ambience=50,ambiencegreen=180,state=2
:state=2,scancodekeypressed=50:ambience=0,ambiencegreen=0,state=0"


You challanged us to manipulate it so that you can use a single key, I accept that challange.

First off, recognition of the problem, pressing the "N" key will fill the keybuffer with multiple values of N, this means that N isn't really pressed once, it is pressed multiple times for the duration it is pressed.

The solution, rather obviously, while N is pressed you can NOT check it again so...

:state=0:state=1
:state=1,scancodekeypressed=49:ambience=50,ambiencegreen=180,state=2
:state=3,scancodekeypressed=49:ambience=0,ambiencegreen=0,state=4

:state=500:state=2
:state=2,scancodekeypressed=49:state=500
:state=2:state=3

:state=501:state=4
:state=4,scancodekeypressed=49:state=501
:state=4:state=1

if I did this right the two separated code packets will go in an infinite loop while scancode 49 returns true. when they break from the loop it proceeds to the following state.

Possible Errors, I can not tell you how FPSC handles this new scancodekeypressed, it is possible that there are brief pauses that will make this code not work propperly, in that case you will have to either resort to use of a timer, or a random= as a timer.

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 9th Oct 2006 16:02
So what you're saying is you don't know if this works or not.

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

GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 9th Oct 2006 20:39
I tired it and it doesn't work. I don't know how to add timers or random actions to the script.

GeoNeo
Locrian
19
Years of Service
User Offline
Joined: 21st Nov 2005
Location: Burton Mi.
Posted: 10th Oct 2006 11:10
Heh...script looks real familiar
X Curse
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: In the deepest region of Hell
Posted: 11th Oct 2006 03:12
I can't get the update, and I really want to, but I can't get my serial number. Can anyone tell me how I can?

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 11th Oct 2006 03:55
Quote: "I can't get the update, and I really want to, but I can't get my serial number. Can anyone tell me how I can?"



http://www.thegamecreators.com/?m=contact_orders

X Curse
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: In the deepest region of Hell
Posted: 11th Oct 2006 04:07
Is it ok if I use a different e-mail then the one that I used to order the game?

GeoNeo
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location: Canada
Posted: 11th Oct 2006 16:27
Quote: "Is it ok if I use a different e-mail then the one that I used to order the game?"


I don't see why that would matter, just remember that info coming from TGC will be under the email you used when you bought the game.

GeoNeo
stormboy
19
Years of Service
User Offline
Joined: 8th May 2005
Location:
Posted: 15th Oct 2006 16:06
Les Horribres that script you conjectured works good.
I only wish I could follow the logic of the code better.

a comment by line by comment description would be useful.
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 15th Oct 2006 22:05
@XPlosys: I was saying the the 'concept' should be fool proof. FPSC handles things 'differently' then what normal programmers would expect now and then. As a programmer, I can say for certain that the conceptual design of the script works. As a scripter I can say the syntax appears correct. But as an FPSC User, I could not verify the scripts authenticity.

@locrain: Did you read my intro, or just the script? I 'attempted' to bind 2 actions to 1 key. Xplosys challanged us to find a way to do so in his script (read his comments). I gave up commenting my scripts long ago because people just use them anyways. It's not like any serious game development company will look at an FPSC Game and look up my name anyways. Besides, the script was originally conjured entertainments (if I remember correctly).

@stormboy. I will explain the general concept of the 'one key rules them all' (LoTR joke here).

:state=1,scancodekeypressed=49:state=2
:state=3,scancodekeypressed=49:state=4
Conditional Statment, until the key is pressed, wait. Then change the state to the correspondent key pressed loop

:state=500:state=2
:state=2,scancodekeypressed=49:state=500
Conditional Statement, While State=2 and the key is being pressed state will not =2 for the next line to exist as true. The top line translates state back into 2 for another 'run' though the test.

:state=2:state=3
Conditional Statment, (translative action) changes state into 3 when state=2.

:state=501:state=4
:state=4,scancodekeypressed=49:state=501
:state=4:state=1
Same thing as above but with different states.



If the script actually works, then theoretically you can map 100 functions to a single key, and you 'cycle' through them. That could come in handy. Can I have the condition underwhich the function works? Perhaps if you are too far away it breaks, therefore a ::followplr is required.

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
stormboy
19
Years of Service
User Offline
Joined: 8th May 2005
Location:
Posted: 16th Oct 2006 05:03
Yes the script actually works, thanx for the description,
I will study it further for sure. As for mapping multiple
functions to a single key, I gotta admit it sounds exciting!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 16th Oct 2006 06:28
Quote: "Besides, the script was originally conjured entertainments (if I remember correctly)."

Yeah, the original Night Vision was mine.
I'm glad you remembered. I still remember your scripts that I edited back then too.

I always ran into problems when using high state numbers like your :state=500
Maybe thats fixed now (I haven't tried it), but I usually aviod high state numbers myself.
That means I have to break things down into multiple scripts, but I like to do that anyway.


Don't forget to visit Conjured Entertainment

Login to post a reply

Server time is: 2024-11-23 04:18:49
Your offset time is: 2024-11-23 04:18:49