Weapons and Shields

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
Nobandwidth25
Private
Posts: 32
Joined: Mon Jul 04, 2011 12:22 am
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront II
xbox live or psn: No gamertag set

Weapons and Shields

Post by Nobandwidth25 »

Is there a way to make weapons that either only reduce shields (Like Ion Cannons) or bypass shields (Like Proton Torpedos)? What line in the odf would you need to change to make this happen?
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: Weapons and Shields

Post by DarthD.U.C.K. »

you can define the damage the weapon does with these values:

Code: Select all

VehicleScale        = "0.1"
ShieldScale         = "1.0"
PersonScale         = "1.0"
AnimalScale         = "1.0"
DroidScale          = "1.0"
BuildingScale       = "0.1"
if you set all scale biut the shieldscale to 0 it will only reduce the shield. i think its not possible to have a weapon bypass shields though.
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Weapons and Shields

Post by Bob »

once upon a time I did

Code: Select all

ShieldScale         = "0.0"
and the shot damaged the unit without damaging the shield. I just don't know if it was a bug or not, the map was laggin' (to many units).
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: Weapons and Shields

Post by Tears2Roses »

Now that you mention shields, which ODF'S/ODF lines do I need to add to make my character have a shield? since there is already a topic on this I may as well ask. Otherwise I would look at the droideka ODF when I get enough time.
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Weapons and Shields

Post by Bob »

The droideka's shield is actually a weapon called "cis_weap_walk_droideka_shield", but if you want a shield to be attached to the unit itself you can add

Code: Select all

MaxShield           = number
AddShield           = number
to the unit's odf.
This shield will lay on the unit instead of being a sphere, like on the ships in space assault.
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: Weapons and Shields

Post by Tears2Roses »

Bob wrote:The droideka's shield is actually a weapon called "cis_weap_walk_droideka_shield", but if you want a shield to be attached to the unit itself you can add

Code: Select all

MaxShield           = number
AddShield           = number
to the unit's odf.
This shield will lay on the unit instead of being a sphere, like on the ships in space assault.
can it be any number or does the number matter? I will give this a try :D
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Weapons and Shields

Post by Bob »

any number you want, from 0 to
Hidden/Spoiler:
999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
or higher. AddShield heals the shield.
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: Weapons and Shields

Post by Tears2Roses »

Bob wrote:any number you want, from 0 to
Hidden/Spoiler:
999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
or higher. AddShield heals the shield.
Thats helpfull. I roflmaoed at the infinite 9's :funny2:

EDIT: i tried just adding those lines but it didnt work. I'm thinking I need some mesh or ODF files (duh) :roll: I will have to do some searching around maybe. Looking at space cruisiers ODF's didnt turn up anything usefull unless I missed something...
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: Weapons and Shields

Post by DarthD.U.C.K. »

these lines will work if you add them to the units odf. the shieldenergy is displayed on the right side of the screen the same way the jetenergy is displayed.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Weapons and Shields

Post by Noobasaurus »

Bob wrote:AddShield heals the shield.
So that's what it does!
Post Reply