Page 1 of 1

2 Light questions

Posted: Mon Mar 30, 2009 7:10 pm
by ryukaji
Ok ive got 2 more questions before ill quit bothering everyone with my questions, for now anyways...
1. How could i go about making a map dark
and then
2. How can I make a flashlight to light up the dark when used (I could swear I remember someone did this before)

This is another area I havent got much knowledge in so I may as well learn, right

Re: 2 Light questions

Posted: Mon Mar 30, 2009 7:18 pm
by Fiodis
1. What type of "dark" do you want?

2. Not sure it's possible the way you want it to be. You could do a beacon, by dispensing a prop with a light odf attached.

Re: 2 Light questions

Posted: Mon Mar 30, 2009 7:26 pm
by ryukaji
Fiodis wrote:1. What type of "dark" do you want?

2. Not sure it's possible the way you want it to be. You could do a beacon, by dispensing a prop with a light odf attached.
Like dark as in the inside of a building with no light sources so that a flashlight must be used to see, that kind of dark.

I almost 100% someone made a flashlight and they had a vid of it but if only i could remember...

Re: 2 Light questions

Posted: Mon Mar 30, 2009 7:48 pm
by YaNkFaN
flash lights are possible (ie attaching lights to a hardpoint, but i'm not sure they move up and down when the weapon moves or go away when the unit dies. in order to make a dark map that you speak of just put lots of omni lights that have very dark color also possibly darken the texture a little as well (of the room not the light obvi) that;s about it really

Re: 2 Light questions

Posted: Mon Mar 30, 2009 8:03 pm
by ryukaji
So your saying i could make a flashlight model, and attach a light to the hp_fire and taht would work?

Re: 2 Light questions

Posted: Mon Mar 30, 2009 8:09 pm
by Fiodis
I've never tried it myself, but it is possible to attach lights to meshes to form a flashlight; however, it'd be permanently on.


EDIT - Eh, you may be able to use LUA scripting to alter the weapon odf to attatch/detatch the light upon the firing of a dispensable rigged to look like a flashlight and dispense something useless that vanishes in a heartbeat. But I'm not sure wether you'd have to enter a CP or not for that to take effect.

Re: 2 Light questions

Posted: Mon Mar 30, 2009 8:13 pm
by FragMe!
Flashlights don't really work, I have tried many times and many ways. They don't really light anything up, you can't attach a light to a weapon, you can attach a light as a effect to unit but it stays when the unit dies and you end up with a bazillion lights all over the place. Closest I have come is seting the flashlight, light as a long lasting beam weapon and it still din't really light anything up either but you can always try if you want :D

Re: 2 Light questions

Posted: Mon Mar 30, 2009 8:15 pm
by ryukaji
didnt you have a video showing a flashlight though? I guess it was you who was trying to make a flashlight

Re: 2 Light questions

Posted: Mon Mar 30, 2009 8:41 pm
by Fiodis
FragMe! wrote:you can attach a light as a effect to unit but it stays when the unit dies and you end up with a bazillion lights all over the place.


You can work around this; but it's a moot point since effects don't light anything up.

Re: 2 Light questions

Posted: Mon Mar 30, 2009 9:06 pm
by ryukaji
What does light things up then?

Re: 2 Light questions

Posted: Tue Mar 31, 2009 10:04 am
by DarthD.U.C.K.
directional light, commandpostlight, and maybe another i dont know of

@fragme: cant you simply attach the light as damage effect??
it would go away if the unit dies then

Re: 2 Light questions

Posted: Tue Mar 31, 2009 10:51 am
by FragMe!
Tried that too, it is great for showing other people where you are, especially if you have lens flare on but it still doesn't light things up the way people would like. Closest I ever got was the light grenade which will light up the area it is passing though until it finally hits the ground and explodes.

BTW just in case you are interested here is the discussion for the Light grenade and other flashlight attempts.
Light Grenade
Of course the video link to FF doesn't work. Might upload the video to my Photobucket account when I get home.

Re: 2 Light questions

Posted: Tue Mar 31, 2009 11:34 am
by ryukaji
So couldnt you attach that same light to a unit then and have a sort of attached flashlight? I dont care if its on all of the time cause your the only person on your team so it wouldnt look crazy with tons of lights

EDIT: ok i figured out the lighting one on my own I had to change the fog range in the sky file and the ambient light setting in ZE, so heres what it looks like:
Hidden/Spoiler:
[attachment=0]darkness.JPG[/attachment]
Sorry but I have 1 new question haha, is there a way to remove the radar in the corner, or else make it so there are no enemy icons? Id prefer option 1, but if its not possible then 2nd is fine

Re: 2 Light questions

Posted: Tue Mar 31, 2009 12:52 pm
by theultimat
Yes, the code is used in space maps. It is as follows:

Code: Select all

	DisableSmallMapMiniMap()
Put that in your

Code: Select all

function ScriptPostLoad()

Re: 2 Light questions

Posted: Tue Mar 31, 2009 1:25 pm
by ryukaji
Oh wow thats easy thanks alot

lol now im scared to go around corners cause you never know where the zombies are

Re: 2 Light questions

Posted: Tue Mar 31, 2009 3:35 pm
by Fiodis
Hold on, you changed ambient lighting in ZE?

Re: 2 Light questions

Posted: Tue Mar 31, 2009 3:40 pm
by ryukaji
Yeah I could make the terrain darker with one setting and the objects darker with another its in the lighting button Top Ambient Color, and Bottom Ambient Color.

Re: 2 Light questions

Posted: Tue Mar 31, 2009 5:15 pm
by YTGTangerine
ryukaji wrote:Yeah I could make the terrain darker with one setting and the objects darker with another its in the lighting button Top Ambient Color, and Bottom Ambient Color.
Sorry for comandeering this topic, but what exactly did you set everything to, and how? Maybe just PM me so we don't get off topic.

Re: 2 Light questions

Posted: Tue Mar 31, 2009 8:28 pm
by FragMe!
If you wanted to see it I updated the link in the lightgrenade topic I posted above.
The flashlight thing you see is an attached effect if I remember correctly. The grenade is also an early version it has a better glow to it now.

Re: 2 Light questions

Posted: Tue Mar 31, 2009 8:36 pm
by ryukaji
Yeah thats the vid i remember seeing :)

So that attached effect doesnt do anything to light things up even if it was made wider and longer of a beam?