Shields? (FAQ)

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

User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Shields? (FAQ)

Post by PR-0927 »

Well, I wanted to add shields to my TX-130S Saber-class Fighter Tank (to make it accurate). I really want to do this. Does anyone know how to?

Thanks in advance.

- Majin Revan
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Vyse »

Are you talking about adding the Droideka shield?
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

Nope. I want a shield that cannot be turned off or on and is like the capital ship shield-it appears when it is fired at and hit. I want it to be able to take the form of the tank and envelope it. I had earlier thought that SWBF II did this with the starfighters, but apparently I was wrong.

- Majin Revan
xwingguy

Post by xwingguy »

Since vehicle spawns are shown as objects...try putting the shield on the vehicle spawn and see what happens. If it works, 2 problems remain:

1) controller object needs to be scrubbed out of the Linked Shields file
2) the fact that they spawn more than one vehicle......
JabbaLovesLava
Sith
Sith
Posts: 1396
Joined: Tue Jun 07, 2005 11:50 am

Post by JabbaLovesLava »

You prolly had to add a line in the ODF, dont ya think? Not sure tho, just a hypothesis.
TAWArtemis

Post by TAWArtemis »

JabbaLovesLava wrote:You prolly had to add a line in the ODF, dont ya think? Not sure tho, just a hypothesis.
There is a script in the common folder called kinked shields. This script is used to protect the entire cap ship and not just the parts. This is most likely what you are looking for.
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

xwingguy wrote:Since vehicle spawns are shown as objects...try putting the shield on the vehicle spawn and see what happens. If it works, 2 problems remain:

1) controller object needs to be scrubbed out of the Linked Shields file
2) the fact that they spawn more than one vehicle......

Umm, what? Please explain, who furthest I got was finding the "Linked_shields" file.

- Majin Revan
xwingguy

Post by xwingguy »

MajinRevan wrote:
xwingguy wrote:Since vehicle spawns are shown as objects...try putting the shield on the vehicle spawn and see what happens. If it works, 2 problems remain:

1) controller object needs to be scrubbed out of the Linked Shields file
2) the fact that they spawn more than one vehicle......

Umm, what? Please explain, who furthest I got was finding the "Linked_shields" file.

- Majin Revan
Ok, I'll give a better explaination.
First here's the code that state your parameters.

Code: Select all

objs = nil,	--set this to a list of object  names which share the same shield
maxShield = 200000,	--maximum shield value
addShield = 10000,	--regeneration rate for the shields
controllerObject = nil,	--the object that, if blown up, will take down the shields
Make the object set the name of the vehicle spawn and it may put the shield on to the vehicle. (I don't really know if it will work.)

ControllerObject is the tricky part. (Usually this is the internal shield generator.) Some way this needs cut out of the file entirely if this were to work properly when used on vehicles.

Lastly if multiple vehicles come from the same spawn point, then they would probably share the same shield (bad).

How to declare and initiate a shield:

Code: Select all

<shieldName> = LinkedShields:New{objs = "<objectName>", controllerObject = "<controllerObjectName>"}    
shieldStuffIMP:Init()
MaxShield and ShieldRegain don't need to be included but in your case they do because tanks don't need shields of capitol ship strength.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

You are going to want to add a second shield controller for your fighter. I don't think you want a fighter with a 200000 shield value.
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

OMG, I got shields working!!

Hold on for a bit on how to do this!!

- Majin Revan
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

Add this to any ODF file for which you want shields:

MaxShield = 2000
AddShield = 50


The "MaxShield" line tells you the total shield amount. The "AddShield" tells you the shield regeneration rate.

ENJOY!!

- Majin Revan
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Vyse »

MajinRevan wrote:Add this to any ODF file for which you want shields:

MaxShield = 2000
AddShield = 50


The "MaxShield" line tells you the total shield amount. The "AddShield" tells you the shield regeneration rate.

ENJOY!!

- Majin Revan
SWEET! Thanks Majin this is going to be great!
Emraz

Post by Emraz »

This is what I love best -- simple solutions to seemingly very diffiult problems. Good work. Im gonna try it out... Dune Mod here we come (personal shields maybe!?)--- Looool.
Guest

Post by Guest »

Majin Revan
do you mean standart 2-men IFT-X or your 3-men IFT-X (from your Kashyyyk shores v.3.0 map)?
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

Yes, I love these simple solutions as well.

I mean the CORRECT TX-130S Saber-class Fighter Tank (with three seats; however, it has been made different and correct).

The Imperial Clone Commando has personal shiels in my map now too (in SWRC they have shields).

- Majin Revan
Big_rich

Post by Big_rich »

without me trying it myslef, but for future refrence. Does it show the "shiled" effect, like the bolts dancing off them and such, like the droideka? Or do you need to refrence that effect in your odf also?
Murdocr

Post by Murdocr »

it shows the capitol ship effect and not the droideka effect, so you only see it when you are hit. you do not need to reference any effects in you odf, the two lines will do it all.
Big_rich

Post by Big_rich »

cool, the capital ship would be good enough then. Ur the man.
OGEB1103

Post by OGEB1103 »

I'm wondering whether the bolt marks are the same size on the cap ship shields, cos that would look pretty stupid with the huge explosion marking on the little vehicle!
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

It is as large, but somehow it looks O.K.

- Majin Revan
Post Reply