Modifiying Tatooine Luke's odf. [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
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Modifiying Tatooine Luke's odf. [Solved]

Post by Indytotof »

Hello modders and mappers, here is Indytotof.

Like the title says, I want to modifiying the Tatooine Luke's odf from the Conversion Pack, make him carrying his father's lightsaber instead of the sniper rifle and add the saber throw.

The problem is not adding this, it's pretty simple. Well, there is the odf:
Hidden/Spoiler:
[code][GameObjectClass]
ClassParent = "com_hero_default"

[Properties]
UnitType = "pilot"

GeometryName = "all_inf_tatooinelukeskywalker"
GeometryLowRes = "all_inf_tatooinelukeskywalker_low1"
FoleyFXClass = "rep_inf_soldier"
ClothODF = "all_inf_tatooinelukeskywalker_cloth"

AnimationName = "hansolo"
HealthType = "person"
MaxHealth = 1500.0

WEAPONSECTION = 1
WeaponName = "all_weap_hero_hanpistol"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "all_weap_inf_recon_sniper_rifle"
WeaponAmmo = 1

WEAPONSECTION = 3
WeaponName = "all_weap_inf_detpack"
WeaponAmmo = 5
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "all_weap_inf_buff_defense"
WeaponAmmo = 1
WeaponChannel = 1 (stuff bolded are the stuff that will be replaced)[/code]
The things is I wonder If I have to modified some other stuff. I yes, can you clarified me what and how ?

Thanks a lot for your very appreciate help !
Last edited by Indytotof on Fri Jun 27, 2014 3:52 pm, edited 1 time in total.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Modifiying Tatooine Luke's odf.

Post by thelegend »

Easy 8)

Just change this lines:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "com_hero_default"

[Properties]
UnitType = "pilot"

GeometryName = "all_inf_tatooinelukeskywalker"
GeometryLowRes = "all_inf_tatooinelukeskywalker_low1"
FoleyFXClass = "rep_inf_soldier"
ClothODF = "all_inf_tatooinelukeskywalker_cloth"

AnimationName = "hansolo" <<<<<<<<<<<<<<<<<<<
HealthType = "person"
MaxHealth = 1500.0

WEAPONSECTION = 1
WeaponName = "all_weap_hero_hanpistol" <<<<<<<<<<<
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "all_weap_inf_recon_sniper_rifle" <<<<<<<<<<<<<
WeaponAmmo = 1

WEAPONSECTION = 3
WeaponName = "all_weap_inf_detpack" <<<<<<<<<<<<<<
WeaponAmmo = 5
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "all_weap_inf_buff_defense" <<<<<<<<<<<
WeaponAmmo = 1
WeaponChannel = 1 (stuff bolded are the stuff that will be replaced)
to this:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "com_hero_default"

[Properties]
UnitType = "pilot"

GeometryName = "all_inf_tatooinelukeskywalker"
GeometryLowRes = "all_inf_tatooinelukeskywalker_low1"
FoleyFXClass = "rep_inf_soldier"
ClothODF = "all_inf_tatooinelukeskywalker_cloth"

AnimationName = "luke" //<<<<<<<<<<<<
HealthType = "person"
MaxHealth = 1500.0

WEAPONSECTION = 1
WeaponName1 = "all_weap_lightsaber" //<<<<
WeaponAmmo1 = 0 //<<<<

WEAPONSECTION = 2
WeaponName2 = "com_weap_inf_sabre_throw" //<<<<<<<<<<<
WeaponAmmo2 = 0 //<<<<<<<
WeaponChannel2 = 1

WEAPONSECTION = 3
WeaponName3 = "com_weap_inf_force_push" //<<<<<<<<
WeaponAmmo3 = 0 //<<<<<<<<<<<<
WeaponChannel3 = 1

// And add this lines for his voice

VOUnitType = 184
SoldierMusic = "all_hero_Luke_lp"
HurtSound = ""
DeathSound = ""
AcquiredTargetSound = ""
HidingSound = ""
ApproachingTargetSound = ""
FleeSound = ""
PreparingForDamageSound = ""
HeardEnemySound = ""
//ShockFadeOutTime = "0.8"
//ShockFadeInTime = "2.0"
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
//LowHealthSound = "com_inf_saber_ambient"
LowHealthThreshold = "1.1"

FoleyFXClass = "all_inf_soldier"

SndHeroSelectable = ""
SndHeroSpawned = "hero_luke_spawn"
SndHeroDefeated = "hero_luke_exhausted"
SndHeroKiller = "hero_luke_exhausted"

VOSound = "all_off_response_hero_command SC_Follow"
VOSound = "all_off_response_hero_command SC_StopFollow"
VOSound = "all_off_response_hero_command SC_VehicleWaitUp"
VOSound = "all_off_response_hero_command SC_GetIn"
VOSound = "all_off_response_hero_command SC_GetOut"

VOSound = "hero_luke_AcquiredTarget AcquiredTarget"
VOSound = "hero_luke_KillingSpree4 KillingSpree4"
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: Modifiying Tatooine Luke's odf.

Post by Indytotof »

thelegend wrote:Easy 8)

Just change this lines:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "com_hero_default"

[Properties]
UnitType = "pilot"

GeometryName = "all_inf_tatooinelukeskywalker"
GeometryLowRes = "all_inf_tatooinelukeskywalker_low1"
FoleyFXClass = "rep_inf_soldier"
ClothODF = "all_inf_tatooinelukeskywalker_cloth"

AnimationName = "hansolo" <<<<<<<<<<<<<<<<<<<
HealthType = "person"
MaxHealth = 1500.0

WEAPONSECTION = 1
WeaponName = "all_weap_hero_hanpistol" <<<<<<<<<<<
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "all_weap_inf_recon_sniper_rifle" <<<<<<<<<<<<<
WeaponAmmo = 1

WEAPONSECTION = 3
WeaponName = "all_weap_inf_detpack" <<<<<<<<<<<<<<
WeaponAmmo = 5
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "all_weap_inf_buff_defense" <<<<<<<<<<<
WeaponAmmo = 1
WeaponChannel = 1 (stuff bolded are the stuff that will be replaced)
to this:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "com_hero_default"

[Properties]
UnitType = "pilot"

GeometryName = "all_inf_tatooinelukeskywalker"
GeometryLowRes = "all_inf_tatooinelukeskywalker_low1"
FoleyFXClass = "rep_inf_soldier"
ClothODF = "all_inf_tatooinelukeskywalker_cloth"

AnimationName = "luke" //<<<<<<<<<<<<
HealthType = "person"
MaxHealth = 1500.0

WEAPONSECTION = 1
WeaponName1 = "all_weap_lightsaber" //<<<<
WeaponAmmo1 = 0 //<<<<

WEAPONSECTION = 2
WeaponName2 = "com_weap_inf_sabre_throw" //<<<<<<<<<<<
WeaponAmmo2 = 0 //<<<<<<<
WeaponChannel2 = 1

WEAPONSECTION = 3
WeaponName3 = "com_weap_inf_force_push" //<<<<<<<<
WeaponAmmo3 = 0 //<<<<<<<<<<<<
WeaponChannel3 = 1

// And add this lines for his voice

VOUnitType = 184
SoldierMusic = "all_hero_Luke_lp"
HurtSound = ""
DeathSound = ""
AcquiredTargetSound = ""
HidingSound = ""
ApproachingTargetSound = ""
FleeSound = ""
PreparingForDamageSound = ""
HeardEnemySound = ""
//ShockFadeOutTime = "0.8"
//ShockFadeInTime = "2.0"
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
//LowHealthSound = "com_inf_saber_ambient"
LowHealthThreshold = "1.1"

FoleyFXClass = "all_inf_soldier"

SndHeroSelectable = ""
SndHeroSpawned = "hero_luke_spawn"
SndHeroDefeated = "hero_luke_exhausted"
SndHeroKiller = "hero_luke_exhausted"

VOSound = "all_off_response_hero_command SC_Follow"
VOSound = "all_off_response_hero_command SC_StopFollow"
VOSound = "all_off_response_hero_command SC_VehicleWaitUp"
VOSound = "all_off_response_hero_command SC_GetIn"
VOSound = "all_off_response_hero_command SC_GetOut"

VOSound = "hero_luke_AcquiredTarget AcquiredTarget"
VOSound = "hero_luke_KillingSpree4 KillingSpree4"
OK, but I want him to keep the pistol, to make him more accurate to the IV movie.

Is it possible ?
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Modifiying Tatooine Luke's odf.

Post by thelegend »

Why not? Just add the pistol weapon as second primary weapon.
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: Modifiying Tatooine Luke's odf.

Post by Indytotof »

When I munge my heroes side I got this:

Code: Select all

"ERROR (Invalid Parameter): heroes"
What that means ?
Post Reply