Page 1 of 1

lights (solved)

Posted: Thu Jul 31, 2008 10:40 am
by elfie
I am attaching a light odf to hardpoints on a model I made, but ingame it does not appear as individual lights at each hardpoint, it just is generally illuminated. How would I change the light odf so that it applies an individual light at each hardpoint, and make the light flicker on and off?

Re: lights

Posted: Thu Jul 31, 2008 8:21 pm
by FragMe!
Search the shipped modtools documentation for one called AttachedEffects it explains all about attaching lights via odfs as well. If you can't locate it let me know in this topic.

Re: lights

Posted: Fri Aug 01, 2008 10:52 am
by elfie
Alright, I didn't find a tutorial called "attachedeffects", but I did find one called BF2_lighting. I read it, and the attached lights section with the example light odfs were nothing like my light odf.

Code: Select all

ConeLength = 1.0
ConeWidth = 5.0
ConeInitialWidth = 1.0
is stated in almost every example, but not in my light file which I got from the shipped dagobah odf folder, I also edited it a little. Plus I changed the color to red in the color section, but it still appears a light yellow or white, but no red at all. Here is my odf if you want to look at it:

Code: Select all

[GameObjectClass]       
ClassLabel          = "Light"

[Properties]
Color               = "255 10 10"
FlareIntensity      = 1.0
FlickerType         = 1
FlickerPeriod       = 1.0
OmniRadius          = 0.75
static		    = 1
And here is my model odf where I attatch the lights through hardpoints:

Code: Select all

[GameObjectClass]		

ClassLabel		=	"prop"
GeometryName	=	"platform.msh"


[Properties]		

GeometryName	=	"platform"

AttachOdf 		= "light99"
AttachToHardPoint 	= "hp_light1"

AttachOdf 		= "light99"
AttachToHardPoint 	= "hp_light2"

AttachOdf 		= "light99"
AttachToHardPoint 	= "hp_light3"

AttachOdf 		= "light99"
AttachToHardPoint 	= "hp_light4"

AttachOdf 		= "light99"
AttachToHardPoint 	= "hp_light5"

AttachOdf 		= "light99"
AttachToHardPoint 	= "hp_light6"

FoleyFXGroup    = "wood_foley"

Re: lights

Posted: Fri Aug 01, 2008 11:30 am
by FragMe!
I am not in front of my home computer right now but those look okay.
Are they at least attaching to the hardpoints now?

Just snuck a look at my laptop at work which has modtools on it (shh don't tell anyone)
Have a look at Tantive there is one call flicker_white_light.

They show it having a name in the Properites section

Name = "white_light_flicker" which is weird cause it is different from the odf name but... then the one right below it for barracks doesn't
point being is try copying one or the other to your map and see if they work.

Re: lights

Posted: Fri Aug 01, 2008 11:54 am
by elfie
Wait, hold on got it working. :D Thanks for directing me to that tutorial fragme it helped! Lock please :)