Lightning Door

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
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Lightning Door

Post by StarkillerMarek »

I am trying to add a "lightning" door to this :
Hidden/Spoiler:
Image

I want it to have something like the endor generator effect. I sent up nulls as hp_emitter1, hp_emitter2, etc., but it seems like a model can only have one "Emitter" in its odf. I would like it also to cause damage if a player touches it. I tried looking at the hp_lighting.fx, but I didn't really understand any of it. Any help is appreciated.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Lightning Door

Post by Maveritchell »

You can put as many hardpoints on a model as you want.
Ex.

Code: Select all

[GameObjectClass]       

ClassLabel      =   "prop"
GeometryName    =   "cis_fedcruiser_commandroom_engine.msh"


[Properties]        

GeometryName    =   "cis_fedcruiser_commandroom_engine"

AttachEffect = "spa_steamgrate"
AttachToHardPoint = "hp_steam_1"
AttachToHardPoint = "hp_steam_2"
AttachToHardPoint = "hp_steam_3"
AttachToHardPoint = "hp_steam_4"

AttachOdf = "spa_light_cisengblu"
AttachToHardPoint = "hp_enginelt2_1"
AttachToHardPoint = "hp_enginelt2_2"
AttachToHardPoint = "hp_enginelt2_3"
AttachToHardPoint = "hp_enginelt2_4"

AttachOdf = "spa_light_impenglt"
AttachToHardPoint = "hp_enginelt1_1"

AttachEffect = "empire_halo2"
AttachToHardPoint = "hp_enginelt3_2"
AttachToHardPoint = "hp_enginelt3_3"


FoleyFXGroup    = "metal_foley"
Use a damage region to make the player take damage.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Lightning Door

Post by StarkillerMarek »

Oh, I did not know you could do that, thanks. Unfortunately, it looks like I will have to setup the effect myself, since I don't see a stock effect I could use.
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: Lightning Door

Post by FragMe! »

Just to clarify, you are actually trying to make a lightning barrier as opposed to a "door" that will make the lightning go away as you walk up to it.
If it is a door then you don't have to worry about damage as the door will open way before he can touch it.

As for a lightning effect how about seeing how close the force lightning effect comes to your needs, if nothing else it may give you are starting place for your desired effect.
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Lightning Door

Post by SW_elite »

Probably a stupid question, but how do you get a "damage" region instead of a death region?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Lightning Door

Post by Maveritchell »

SW_elite wrote:Probably a stupid question, but how do you get a "damage" region instead of a death region?
You use a "damageregion" instead of a "deathregion." Take a look at Zeroeditor.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Lightning Door

Post by StarkillerMarek »

FragMe! wrote:Just to clarify, you are actually trying to make a lightning barrier as opposed to a "door" that will make the lightning go away as you walk up to it.
If it is a door then you don't have to worry about damage as the door will open way before he can touch it.

As for a lightning effect how about seeing how close the force lightning effect comes to your needs, if nothing else it may give you are starting place for your desired effect.
I guess it would be more of a barrier, then a door. I'm starting to second guess how I am going to do this, as I want the lightning barrier there for a time, and then later I want it to go away.


Thanks for the ideas, though.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Lightning Door

Post by lucasfart »

What they do in the stock campaigns is make a separate object for the barrier and kill that object when they want to let you through.....
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Lightning Door

Post by Commander_Fett »

yeah, if you just model a few bars for the door you can make it an object and spawn it/kill it at will.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Lightning Door

Post by lucasfart »

Is it possible to make an animated/static prop use an effect, like the lightning? Because that would probably solve all your problems...
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Lightning Door

Post by StarkillerMarek »

lucasfart wrote:Is it possible to make an animated/static prop use an effect, like the lightning? Because that would probably solve all your problems...
Yes, there is and I know how, I just don't think that it will do what I want to do at this point. I think I am just going to model a separate object, and maybe attach the effect to that.
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: Lightning Door

Post by FragMe! »

A good example of a there not there damage region and effects is the the turbine generator on Tantive IV. It actaully attaches the effect as damage effects of which you can have many.
Damage is set to start at 100 and once it goes below 80 percent damage the effect goes away.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Lightning Door

Post by StarkillerMarek »

That would probably to do what I wanted. My real problem is still settin up the effect. There's a lot of stuf that goes into an effect file, and I have literally no experiece with setting up effects.
Post Reply