How to attach a Light Beam?

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
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

How to attach a Light Beam?

Post by noMatt »

Hey Guys i figured out that the question and how i asked was unsolveable so here the new question:

How can i attach a static lightbeam? Here are my ODF's

Lighthouse.odf

Code: Select all

[GameObjectClass]
ClassLabel = "prop"
GeometryName = "Lighthouse.msh"

[Properties]

GeometryName = "Lighthouse"


AttachOdf = “Light"
AttachToHardPoint    = "hp_light"

FoleyFXGroup    = "stone_foley"



and Light.odf

Code: Select all


[GameObjectClass]                           

ClassLabel   = "Light"

 

[Properties]

Color    = "65 65 30"

ConeLength   = 8

ConeWidth    = "4.0 6.0"

ConeInitialWidth    = "0.8 3.0"

ConeFadeFactor    = 0.3

ConeFadeLength     = 0.1

FlareIntensity    = 0

FlickerType     = 0

FlickerPeriod    = 1.0

OmniRadius     = 0
It really doesnt work so is here someone who can tell me whats wrong?
I have a null called hp_light in my Model Directory and i have rotated it so it points in the right directory so i really dont know why it doesnt work
I am now using the Demo ODF of Psych0 fred still no succes

EDIT: Sorry i did a mistake on Pasting the light odf
Last edited by noMatt on Sat Aug 10, 2013 5:21 pm, edited 1 time in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to attach a Light Beam?

Post by Marth8880 »

Add this to the very beginning of your light's ODF:

Code: Select all

[GameObjectClass]
ClassLabel = "light"

Also, you might wanna consider separating the light part of the lighthouse mesh into its own mesh so you can have it be a rotatingmodel object class (or you could just make it a normal animatedprop and animate it yourself in XSI).
[color=#FF0000]ODF Parameters.txt[/color] wrote:

Code: Select all

    RotatingModel 
                                        RotateNodeName
                                        YawConstant
                                        YawRandom
Or alternatively again, separate the meshes like aforementioned and animate the light mesh in ZE. :o


Just, whichever you choose, make sure to have the light actually attached to the light mesh and stuff. ;)
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: How to attach a Light Beam?

Post by noMatt »

I actually had that line i just did a mistake on pasting it here :(
Just, whichever you choose, make sure to have the light actually attached to the light mesh and stuff. ;)
What did you mean with that? I didnt attached anything in xsi :O Just added that line in my odf
AttachODF = "Light"
AttachToHardPoint = "hp_Light"

But Thank you anyway for your fast reply marth

EDIT: Now the light appears but in the wrong direction :) How can i redirect it?
Rotating the null doesnt seem to work
I wrote AttachToHard point without d :D
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to attach a Light Beam?

Post by Marth8880 »

noMatt wrote:
Just, whichever you choose, make sure to have the light actually attached to the light mesh and stuff. ;)
What did you mean with that? I didnt attached anything in xsi :O Just added that line in my odf
AttachODF = "Light"
AttachToHardPoint = "hp_Light"
I meant to make sure to add those two parameters (AttachODF and AttachToHardPoint) to your light mesh's ODF.
noMatt wrote:EDIT: Now the light appears but in the wrong direction :) How can i redirect it?
Rotating the null doesnt seem to work
I wrote AttachToHard point without d :D
Which method of mine did you use?
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: How to attach a Light Beam?

Post by noMatt »

until now none since its not animated (until now) but now i am going to animate it via XSI
But i Have one more question: The Light is now displayed but its flat. How can i get it round?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to attach a Light Beam?

Post by Marth8880 »

Please post a screenshot of what it looks like currently.
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: How to attach a Light Beam?

Post by noMatt »

Hidden/Spoiler:
Image
How can i increase the radius of the Light? Sorry but i cant translate omni :)
What does it mean?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How to attach a Light Beam?

Post by Marth8880 »

Ah, umm, increase the ConeInitialWidth, I think.

Don't worry about OmniRadius, it's just for omnidirectional lights. (Lights that cast light in all directions at once.)
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: How to attach a Light Beam?

Post by noMatt »

Ah thanks again ;)
Post Reply