Add droideka shield as a unit's weapon? [Solved]

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
CodaRez
Field Commander
Field Commander
Posts: 940
Joined: Mon May 25, 2009 6:49 am
Projects :: I would like one.....
Location: Ride around the world! And I won't give you anything :P

Add droideka shield as a unit's weapon? [Solved]

Post by CodaRez »

Are there any requirements in the .odf in order to add a droideka shield to their weapons?

I want it to be a primary weapon(along with the rifle, for example)

When I applied it and played ingame it is fine.

I see my bots use it fine, but when I switch my weapon to it it crashes.....

Any help?

--------------------------

On another note, how would you replace/remove weapons on a shipped unit to be replaced with your own choosing?(.odf meddling)

Maybe meddling with the parent file may help, if so how?
Last edited by CodaRez on Sun Jul 05, 2009 8:08 am, edited 1 time in total.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 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: Owning people in SWBF2
Contact:

Re: Droideka Shield prob

Post by Par3210 »

CodaRez wrote:Are tehre any requirements in the .odf in order to add a droideka shield to their weapons?

I want it to be a primary weapon(along with the rifle, for example)

When I applied it and played ingame iz fine.

I see my bots use it fine

But when I switch weapon to it it crashes.....

Any help?
Well when I have played on mods, the shield is the ONLY secondary weapon there, and there is only one primary weapon there too. So that's why I guess, you have got more than one primary and secondary weapon.
User avatar
CodaRez
Field Commander
Field Commander
Posts: 940
Joined: Mon May 25, 2009 6:49 am
Projects :: I would like one.....
Location: Ride around the world! And I won't give you anything :P

Re: Droideka Shield prob

Post by CodaRez »

yes I do have 2 secondary and primary weapons

But SWBF1 Conversion pack had Ord Ibanna, a Gammorean with a shield AND thermal detonator as secondarys in Classic Conquest
Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

Re: Droideka Shield prob/ Overriding Weapon cutomizations

Post by Jaspo »

It's certainly possible, I just did it, with my Bothan Scout. hmm, odf would be good, 1 moment...
note: it may not be possible to put it in the primary slot though, it IS a bit finicky about that.
sda_inf_bothan.odf

Code: Select all

[GameObjectClass]
ClassParent     = "all_inf_default_officer2"

[Properties]

GeometryName    = "rebel_bothan2"
GeometryLowRes  = "rebel_bothan_low2"
FirstPerson     = "all\allbothn;all_1st_bothanspy"
all_inf_default_officer2.odf

Code: Select all

[GameObjectClass]
ClassParent     = "all_inf_default"


[Properties]
PointsToUnlock          = 16
UnitType           	= "pilot"

AnimationName		= "bothanspy"

EnergyRestore           = 12.0      // energy regained per second if moving

ScanningRange       = 30.0
TransmitRange       = 300.0

MaxHealth           	= 300.0

WEAPONSECTION = 1
WeaponName     = "all_weap_inf_commando_pistol"
WeaponAmmo     = 4

WEAPONSECTION           = 4

WeaponName          = "cis_weap_walk_droideka_shield"
WeaponAmmo          = 0
WeaponChannel  	= 1

WEAPONSECTION = 2
WeaponName         = "all_weap_inf_fusioncutter"
WeaponAmmo         = 0


WEAPONSECTION = 3
WeaponName     	= "cis_weap_inf_debuff_poison"
WeaponAmmo     	= 3
WeaponChannel  	= 1

WEAPONSECTION = 5
WeaponName     = "all_weap_award_pistol"
WeaponAmmo     = 4

VOUnitType              = 3

VOSound = "all1_inf_pc_com_hostile      SpottedVO"                               
VOSound = "all1_inf_pc_com_bacta      NeedMedicVO"                               
VOSound = "all1_inf_pc_com_mechanic      NeedRepairVO"                           
VOSound = "all1_inf_pc_com_ammo      NeedAmmoVO"                                 
VOSound = "all1_inf_pc_com_transport      NeedPickupVO"                          
VOSound = "all1_inf_pc_com_backup      NeedBackupVO"                             
VOSound = "all1_inf_pc_com_clear_area      AttackPositionVO"                     
VOSound = "all1_inf_pc_com_defend     DefendPositionVO"                          
                                                                   
VOSound = "all1_inf_pc_com_hostile_inVehicle      SpottedVO +InVehicle"          
VOSound = "all1_inf_pc_com_bacta_inVehicle      NeedMedicVO +InVehicle"          
VOSound = "all1_inf_pc_com_mechanic_inVehicle      NeedRepairVO +InVehicle"      
VOSound = "all1_inf_pc_com_ammo_inVehicle      NeedAmmoVO +InVehicle"            
VOSound = "all1_inf_pc_com_transport_inVehicle      NeedPickupVO +InVehicle"     
VOSound = "all1_inf_pc_com_backup_inVehicle      NeedBackupVO +InVehicle"        
VOSound = "all1_inf_pc_com_clear_area_inVehicle      AttackPositionVO +InVehicle"
VOSound = "all1_inf_pc_com_defend_inVehicle     DefendPositionVO +InVehicle"     
and in the droideka shield odf I made it 1/6th as poweful and also adjusted the recharge rates, because otherwise its waaay too powerful on any unit which can easily move around with it deployed:

cis_weap_walk_droideka_shield

Code: Select all

[WeaponClass]

ClassLabel          = "shield"

[Properties]
HUDTag     = "hud_droideka_shield"
Label               = "Shield"

RoundsPerClip       = "1"
ReloadTime          = "0.0"

MaxShield           = 500
AddShield           = -50
AddShieldOff        = 100

ShieldOffset        = "0.0 1.0 0.125"
ShieldRadius        = 1.10

FireSound           = "cis_droideka_shield_on"
FireEmptySound      = ""
FireLoopSound       = ""
ReloadSound         = ""
ChargeSound         = ""
ChangeModeSound     = ""
WeaponChangeSound   = ""
ShieldSound           = "cis_droideka_shield"
//ShieldSound         = "droid_fx7_hum"
ShieldOffSound      = ""

ShieldEffect        = "droidekashield"
Post Reply