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 / How can I make a flashlight in my FPSC game?

Author
Message
The Fps Creator rocks!
16
Years of Service
User Offline
Joined: 24th Oct 2008
Location: Sneaking down your chimney.
Posted: 24th Oct 2008 18:03
I really want to make a flashlight in my FPSC game, but how do I make a flashlight? I want a flashlight like doom 3.
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 24th Oct 2008 20:34
Welcome to the forums.

For starters, you are gonna get flamed if you don't at the very least do a search for your answer first. And I can guarantee you that this topic has been approached by MULTIPLE people out here MULTIPLE TIMES. So go do a search for flashlights and see if that helps.

And to take this one step further, I am trying (with very LITTLE luck, I might add) to use one of the mods out there to create a realistic flashlight. Didn't mean it was going to work, only that I am trying to do it. Ply knows what I am trying to do (not only is it good practice at scripting, it's giving me a chance to work with the mod). If I ever figure out how the commands work, I'll probably get it. But I digress...

Anyhow - go do a search on flashlights. If none of them work, then come back and post.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 26th Oct 2008 01:42
with the next release of his mod it will most likely be possible, but I have an idea for a candle with the cureent ply mod release

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
Killer666
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: Inside your Emails causing a VIRUS!
Posted: 26th Oct 2008 12:07
Well I would love a flashlight so I will do a bit of seaching and find the best.


Thanks
Killer666

http://killer-fps.weebly.com
Killer666
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: Inside your Emails causing a VIRUS!
Posted: 26th Oct 2008 12:24
Ive found this really good.

http://forum.thegamecreators.com/?m=forum_view&t=128879&b=23

http://killer-fps.weebly.com
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 27th Oct 2008 01:13
Quote: "with the next release of his mod it will most likely be possible, but I have an idea for a candle with the cureent ply mod release"

I'm trying to use BINDENTITYTOCAM in his current release to bind a light marker to the camera, about 5-10 cm away from the player. And if it's bound, then it would move with the mouse/player. I'm just having a problem getting it that far. Hopefully I'll be able to get it.

Of course, if we I could get this to work, then hand held candles/torches/flashlights would be done. Finally. But I have to work on it more to get it.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 27th Oct 2008 08:42
Interesting concept Leon... though I'm afraid there may be a few flaws at the moment for that to work correctly. It, in theory, should work perfectly, however, I am not sure if I have correctly allowed the movement of dynamic lights.

You can test this by simply providing a dynamic light in your level with some simple movement code... perhaps have it move back and forth for a little bit... actually, since I am unable to test this myself, allow me to provide you (and anyone wanting to help out with this) with a test script.

Make the light move forward and backward by 50 units (If the light is centered in a segment then it should move from the edge of the segment to the other edge):




Explanation:
- Dim variables for the lights Starting position and the Light's Movement, as well as a calculation variable to temporarily hold (LightS+LightM) and position the entity at that location.
- Start the "LightS" variable at the entity's starting Z position ($EPZ)
- "LightM" will transition between -50 and +50


I don't have the manual with me and, to be honest, I can't exactly remember if the commands are correct... so if you could double check them in the readme before using it and make sure that the commands are right, that'd be helpful.


Lemme know how it goes.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 27th Oct 2008 12:57
I'll work on this tonight at home, Ply. I'll let you know how this goes.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 28th Oct 2008 12:34
yea, thats what i've been trying... when coffeegrunts concepts get added, I have thoughts for a really decent flashlight script That will change size based on how far away you are

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 28th Oct 2008 14:09
Add ma conceptz nao!

lol, just kidding, take your time....

Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 31st Oct 2008 17:44
@ply: I haven't had a chance to review your script here yet as I am knee-deep in my own problem with Dark Egypt. However, I just reviewed what you wrote in your script, and it should work fine. (listen to me telling the scripting guru that his code is fine )

Anyhow, I will get a chance this weekend to work on this, assuming my issue with Dark Egypt either goes away or I get too irritated with it.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 31st Oct 2008 21:57
mmmmmk, I know the concept should work fine, but the point of that is to SEE if the Mod allows moving dynamic lights.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.

Login to post a reply

Server time is: 2024-11-24 13:55:24
Your offset time is: 2024-11-24 13:55:24