2 Light questions

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

2 Light questions

Post 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
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: 2 Light questions

Post 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.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post 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...
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: 2 Light questions

Post 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
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post by ryukaji »

So your saying i could make a flashlight model, and attach a light to the hp_fire and taht would work?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: 2 Light questions

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: 2 Light questions

Post 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
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post by ryukaji »

didnt you have a video showing a flashlight though? I guess it was you who was trying to make a flashlight
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: 2 Light questions

Post 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.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post by ryukaji »

What does light things up then?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: 2 Light questions

Post 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
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: 2 Light questions

Post 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.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post 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
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: 2 Light questions

Post 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()
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post by ryukaji »

Oh wow thats easy thanks alot

lol now im scared to go around corners cause you never know where the zombies are
Last edited by ryukaji on Tue Mar 31, 2009 7:42 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: 2 Light questions

Post by Fiodis »

Hold on, you changed ambient lighting in ZE?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post 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.
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: 2 Light questions

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: 2 Light questions

Post 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.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: 2 Light questions

Post 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?
Post Reply