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 / FlashLight with working battery & hud

Author
Message
GOTH 1 SNIPER
User Banned
Posted: 2nd May 2008 22:46 Edited at: 3rd May 2008 00:30
this this script is done.
I just need to talk to s4real and freak16.To see if i can post it
I just did some editing to the script

this is what is dose
When you hit F the flash light turns on an a small hud pops up with a battery bar



More the timer gose down the bar moves slowly


an if the bar is gone the flash light turns off



The light can stay on for bout 30 to 45 secs

Then you hit F agen an it will turn back on an repeat the battery life
You can turn the light off b4 it battery dies by hiting F agen


well thats all

s4real and freak16 if you see this can i post this script?
an if any one knows s4real or freak16 can you tell thim to look at this post

Tell me what you think of this script so far

and thank you plystire For the tuts on scripting.I know i sid that b4 =)


Edit: Files attached have fun =)

this is what the script looks like lol



That is the 2nd script i ever made
lol the forum took out the / srry bout that still the good script is in the
attached file.

Attachments

Login to view attachments
Orrion Carn
16
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: Sandpoint, Idaho
Posted: 2nd May 2008 23:09
Sounds great! Is it possible to have it where it's completely dead and you have to find some batteries?



My first animated Gif. Made in GIMP 2.
GOTH 1 SNIPER
User Banned
Posted: 2nd May 2008 23:17 Edited at: 2nd May 2008 23:18
Ummm... i can try that ill just edit the script a bit like the doorkey

so say the battery hits 0 then wont let you hit F till you have a item called battery

Im just learning to script a little
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd May 2008 23:50
...that's actually pretty darn good work.

After you get the approval to post your modified flashlight script, please do post it here.

I've got an idea for a much more realistic HUD image indicating the loss of battery power. I'll swap the images out and post it here for the community's use...


GOTH 1 SNIPER
User Banned
Posted: 2nd May 2008 23:54 Edited at: 2nd May 2008 23:55
ya i know the hud was a little messed u but it looks like it was made with crayon lol
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 3rd May 2008 00:04 Edited at: 3rd May 2008 00:05
Well if you edited the flashlight script by s4real,I see no problem with releasing it,just ensure you give him credit for work and inspiring he did and all should be good.
Many folks add and sometimes even improve on previous work,I could only see a problem if the original creator was selling his product and ideas.Since s4's flashlight was a free download you shouldn't run into any of that
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd May 2008 00:04
...no, no...not all. The HUD looks fine.

I was thinking of just representing the battery losing life in a different way, that's all...


GOTH 1 SNIPER
User Banned
Posted: 3rd May 2008 00:08
Quote: "Well if you edited the flashlight script by s4real,I see no problem with releasing it,just ensure you give him credit for work and inspiring he did and all should be good.
Many folks add and sometimes even improve on previous work,I could only see a problem if the original creator was selling his product and ideas.Since s4's flashlight was a free download you shouldn't run into any of that "


Ok =) s4real and freak16 are sitll it the credits of the script i just added my name behind thim =)

ok just me get the huds an stuff ready an ill post =)
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd May 2008 00:12
...cool beans.


GOTH 1 SNIPER
User Banned
Posted: 3rd May 2008 00:34
ok file attached hope you like it

an Seth Black id like to see your huds too =)
Foxhound7
17
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 12th May 2008 06:54
When I activate it in a lit area I get a black HUD over the edges outside of where the flashlight is. Is there anyway to change the texture so the transparency on that part is 100% so when you turn it on in lit areas u don't get that shadow?

Your signature has been erased by a mod
GOTH 1 SNIPER
User Banned
Posted: 12th May 2008 08:46 Edited at: 12th May 2008 09:00
Well i think if you make it transparent an you turn it will look like you turned on a light it will fill the room

to stop it when i was useing it was i lowered the ambience=50 to
ambience=30 an it stoped an the lights in the room still had a glow

this is with the flashlight you can see there is still the glow


This is with out the flashlight


Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
Kerrby
16
Years of Service
User Offline
Joined: 14th Mar 2008
Location: Australia mate.
Posted: 12th May 2008 09:02
How did it end up going Seth?
Peter gee
16
Years of Service
User Offline
Joined: 11th Jan 2008
Location: behind you!!!!
Posted: 12th May 2008 18:40
good work and how did you get that weopan

computer cookies are not tasty i found that out the hard way

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 12th May 2008 19:00
...having deep personal problems right now, this will have to wait...


GOTH 1 SNIPER
User Banned
Posted: 12th May 2008 22:19
@Peter gee the store beta


@Seth Black I hope every thing works out for you

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
Foxhound7
17
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 13th May 2008 01:58
@ Goth Sniper

That's not the problem I have. If you look at your screens, you can clearly see that the area outside of where the flashlight shines is darker when the flashlight is on than when it is off. I was asking if you could make just that outside part transparent so that when you turn the flashlight on, just the center gets brighter and the edges don't get darker.

Your signature has been erased by a mod
GOTH 1 SNIPER
User Banned
Posted: 13th May 2008 04:40 Edited at: 13th May 2008 07:28
@Foxhound7
Ya i see now.if you make the hud transparent it will just look like you turnd a light on in the room
The hud is what makes it look like its shining like a flash light

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
s4real
VIP Member
17
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 21st May 2008 23:41
Nice work on the hub you more than welcome to use my script as is anyone else.



Best s4

GOTH 1 SNIPER
User Banned
Posted: 22nd May 2008 02:05 Edited at: 22nd May 2008 02:09
thanx man =)
you made Vishnu ?

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
s4real
VIP Member
17
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 22nd May 2008 19:59
Yes I did make Vishnu and your welcome.


Best s4

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 23rd May 2008 21:11 Edited at: 23rd May 2008 23:23
GOTH, I think a nice little effect to add onto this now would be for the flashlight to get dimmer as the battery power gets lower.....

You could do this by simply editing the ambience levels when you change the HUD.....

I think that'd take this to the next level....

-=EDIT=-

Here we are:


Now the light will slowly get dimmer as the timer progresses, I recommend having ambience at 0 for this to work though, as whe the batteries go flat it would look like the room got darker than before... :S

I have returned, after 28 days of exile, fear me!
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 23rd May 2008 22:21
...that's pretty much the idea I had in mind as far as making it more realistic, coffee grunt.

Good call...


Foxhound7
17
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 23rd May 2008 22:58
Whenever I turn the flashlight on in a room where the light is a different color (i.e. red, blue, green, etc.) the lighting in the entire room changes to white until the flashlight shuts off. Anyway to adjust that so the flashlight doesn't interfere with the room's natural lighting?

Your signature has been erased by a mod
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 23rd May 2008 23:25
Foxhound, that's because theflashlight washes out other lights, I'd only really use it on darened levels with little or no light.....

Seth, I've finished the script but don't have time to test it, it's in my last post, can someone please give it the once-over..?

I have returned, after 28 days of exile, fear me!
Fuzz
17
Years of Service
User Offline
Joined: 14th Nov 2006
Location: Tasmania, Australia
Posted: 27th May 2008 13:09
having the torch flicker on low battery would be cool

Victory Is Imminent
GOTH 1 SNIPER
User Banned
Posted: 28th May 2008 00:59
Kool i Finley dont some thing good editing that script =) wo0o
ya the light fade thing is grate
I tryed is it look's good

Im working on Orrion Carn's idea and makeing it where you have to find the flash light to use it

an trying to get it to save the battery time
say i only use 20% of the battery an i cut the flash light off an when i turn it back on the life will till be at the 90%

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
some kid
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: in UR room, stealin\' UR stuff
Posted: 29th May 2008 05:01
nice. very. btw, were did you get the mchetti?

did you know I'm smart?
GOTH 1 SNIPER
User Banned
Posted: 29th May 2008 06:21
THe store

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
some kid
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: in UR room, stealin\' UR stuff
Posted: 30th May 2008 03:35
Quote: "THe store"
link? I can't find the store.

did you know I'm smart?
GOTH 1 SNIPER
User Banned
Posted: 30th May 2008 08:56
http://forum.thegamecreators.com/?m=forum_view&t=129667&b=21

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
some kid
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: in UR room, stealin\' UR stuff
Posted: 5th Jun 2008 00:49
ty. BTW I got the light to shine, but the HUD is no were to be found.

did you know I'm smart?
See This!
15
Years of Service
User Offline
Joined: 13th Jun 2008
Location: US
Posted: 13th Jun 2008 14:24
wow that realy nice flashlight ! thanks !

But.. are there any flash light script without hud? i mean some like on horor games, there shadow when we used flashlight on object or character. Thanks the script !

"FPScreator is the easy way to create fps games"
GOTH 1 SNIPER
User Banned
Posted: 23rd Jun 2008 05:31
@See This! your welcome


Quote: "are there any flash light script without hud?"

You can try deleteing the hud but i dont think your going to like that

Myspace:http://www.myspace.com/DEATH1sniper
Hame Page:http://snipereliteforce.spruz.com/
AMSHNOK!!!
FPS Creator G0D
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: 40oz To Freedom
Posted: 1st Jul 2008 01:13
I hate to bump a topic but I have a few errors.

I go in an place the light, exactly like the instructions said. Then I go to test play the game and I get a loud clicking noise. It repeats over and over and over till I exit the game. The flashlight also seems to not work, any ideas?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Jul 2008 01:27
Judging by your name, I'm sure you'll figure it out.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
FPS Creator G0D
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: 40oz To Freedom
Posted: 1st Jul 2008 01:59
Well, I use to be pretty damn good at FPSC, but since I've taken a year long break and modded Morrowind I've forgot a few things. lol
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 1st Jul 2008 23:33
...like riding a bicycle.

You should have it all flooding back to you, in no time...


FPS Creator G0D
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: 40oz To Freedom
Posted: 2nd Jul 2008 01:36 Edited at: 2nd Jul 2008 02:19
Actually alot of it has, from rotating items to killing npc's from the start. The only thing is, I can't figure out why it keeps clicking.

EDIT: My Name isn't FPS God For nothing. I guess its my fault, I diddn't update Man does this add alot of ambience to the level.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Jul 2008 16:49
Quote: "...why it keeps clicking..."


...sounds like you've placed a zone in your map. I'm only guessing, but that's the first thing that comes to mind...the default sound that plays when the player enters a zone...


FPS Creator G0D
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: 40oz To Freedom
Posted: 2nd Jul 2008 18:59
I fixed it, know worries now. The only thing is, when I turn the flash light on and off theres a big "flash". My ambient level is set to zero by the way, and it still continues to do this.
Clock Works
User Banned
Posted: 5th Jul 2008 04:33
I know (SEF)DEATH
He use to have the best klan on F.E.A.R and bf1942
MadChicken Games
15
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 12th Jul 2008 00:00
Do you have to pick up the flashlight to make it work if so how?
If not then how can I make that happen?
xXThe Dead OneXx
16
Years of Service
User Offline
Joined: 20th Oct 2007
Location: In My Own Little World/s
Posted: 24th Jul 2008 20:37
I've got an idea for the power HUD.
instead of a straight line "________",
maybe it should look more like this:

" -|||||||||||||+ "

negative and positive representing the batteries life.
and maybe it could be gold-like or copper colored.
Oh! and another idea, would you be able to make the
negative and positive a lime green color,
than when the battery life starts to go down
the positive would turn red and when completely
depleted the negative turns red, and finally put a
little lightning bolt sign in the middle of the
depleted bars?

Offset a little to the left. Or was it the right?
Themoreruler s
16
Years of Service
User Offline
Joined: 3rd Jan 2008
Location:
Posted: 26th Sep 2008 10:33
maybe you can make, than the flashlight turn off, the battery load , and when finish load, this finish this in on

sorry for my english xD
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 26th Sep 2008 17:37
Is it possible to get the files in a .zip?


BUMP = Bring Up My Post
dreadzor
15
Years of Service
User Offline
Joined: 26th Sep 2008
Location:
Posted: 28th Sep 2008 12:05 Edited at: 29th Sep 2008 16:41
I´m really new to fps creator, but where do I put this script? At first I thought in the main AI-Script for the torch, but that doesn´t work.

I´ll appreciate anyhelp I can get.


EDIT: I got it to work, but it only do so, if I dont use any other lightmarkers. A shame I really wanted it to have the same kinda look as GOTH 1 SNIPER:s screenshots (with the light).

EDIT2: It´s really strange, it´s only certain objects that gets lit up :/
A fatzombie from modelpack 4, but a Zombiecop from the same modelpackage remains dark. Walls don´t get any brighter either (or a really small change). I´ve been trying to change in the FPI-File but no change. I really want this to work


Any way thx again for the script.

Login to post a reply

Server time is: 2024-04-20 11:06:29
Your offset time is: 2024-04-20 11:06:29