Page 1 of 1

Darth Vader on republic side [Solved]

Posted: Wed Apr 01, 2015 8:37 pm
by DrDrSheldonLeeCooper
Hello,I tried to add Darth Vader for Deathstar to republic side,but he is walking so odd.
Hidden/Spoiler:
Image
can smb help?

Re: Darth Vader on republic side

Posted: Wed Apr 01, 2015 8:53 pm
by razac920
It seems like you messed up the weapon/animation/skeleton. Please post the vader .odf you are using (I'm assuming this is a custom side, right?)

Re: Darth Vader on republic side

Posted: Thu Apr 02, 2015 7:42 am
by DrDrSheldonLeeCooper
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "com_jedi_default"
GeometryName = "imp_inf_darthvader.msh"

[Properties]
AISizeType = "HOVER"

GeometryName = "imp_inf_darthvader"
GeometryLowRes = "imp_inf_darthvader_low1"
ClothODF = "imp_inf_darthvader_cape"
SkeletonName = "vader"
SkeletonLowRes = "vaderlz"
SkeletonRootScale = "1.25"

UseDirectionalJumps = "0"

MaxHealth = 1800.0

MaxSpeed = 6.5 // base forward speed
MaxStrafeSpeed = 6.5 // base right/left speed
MaxTurnSpeed = 3.0 // base turn speed
JumpHeight = 3.5 // base jump height in meters
JumpForwardSpeedFactor = 1.3 // boost forward part of velocity by this factor when jumping
JumpStrafeSpeedFactor = 1.0 // boost side/backward part of velocity by this factor when jumping
RollSpeedFactor = 1.7 // in forward arc, boost speed by this factor when rolling
Acceleration = 90.0 // accelerate to full run in about 7/70 = 0.1 seconds
JetAcceleration = 20.0 // for characters with jet jump, use this acceleration for in air control
SprintAccelerateTime = 0.05 // accelerate from run to sprint in this time
EnergyDrainSprint = 40.0 // energy spent per second of sprinting
ControlSpeed = "sprint 5.00 0.50 0.50"

JetJump = "7.0" //The initial jump-push given when enabling the jet
JetPush = "7.0" //The constant push given while the jet is enabled (20 is gravity)
JetEffect = ""
JetType = "hover"
// Vader used JetFuel to control how long he can hover, even though it's not visible in the HUD
JetFuelRechargeRate = "0.9" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.3" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.25" //4initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "1.0" //minimum fuel to perform a jet jump(fuel is 0 to 1)
JetShowHud = 0
JetEnergyDrain = 30.0

CollisionScale = "0.0 0.0 0.0"

WEAPONSECTION = 1
WeaponName1 = "imp_weap_lightsaber"
WeaponAmmo1 = 0

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

WEAPONSECTION = 3
WeaponName3 = "com_weap_inf_force_choke"
WeaponAmmo3 = 0
WeaponChannel3 = 1

CAMERASECTION = "STAND"

EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.0 0.0 6.0"
TiltValue = "10.0"

CAMERASECTION = "STANDZOOM"

EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.4 0.05 2.8"
TiltValue = "3.5"

CAMERASECTION = "CROUCH"

EyePointOffset = "0.0 1.3 0.0"
TrackCenter = "0.0 1.3 0.0
TrackOffset = "0.0 0.15 3.5"
TiltValue = "5.0"

CAMERASECTION = "CROUCHZOOM"

EyePointOffset = "0.0 1.3 0.0"
TrackCenter = "0.0 1.3 0.0
TrackOffset = "0.4 0.2 2.8"
TiltValue = "3.5"

//SOUND
VOUnitType = 191
SoldierMusic = "imp_hero_Vader_lp"
//HurtSound = "imp_inf_com_chatter_wound"
//DeathSound = "imp_inf_com_chatter_death"
AcquiredTargetSound = ""
HidingSound = ""
ApproachingTargetSound = ""
FleeSound = ""
PreparingForDamageSound = ""
HeardEnemySound = ""
ShockFadeOutTime = ""
ShockFadeInTime = ""
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
LowHealthSound = "imp_inf_vo_darth_breath"
LowHealthThreshold = "1.0"
AmbientSound = ""
FoleyFXClass = "imp_inf_soldier"
SndHeroSelectable = ""
SndHeroSpawned = "hero_vader_spawn"
SndHeroDefeated = "hero_vader_exhausted"
SndHeroKiller = "hero_vader_exhausted"

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

VOSound = "hero_vader_AcquiredTarget AcquiredTarget"
VOSound = "hero_vader_KillingSpree4 KillingSpree4"
I copied DarthVader ODF,Mesh,Combo,lightsabre and imp_inf_darthvader (the original is imp_hero_darthvader)

Yes,it´s a custom side

Re: Darth Vader on republic side

Posted: Thu Apr 02, 2015 9:07 am
by razac920
You need to copy vader.anims, vader.zaabin, vader.zafbin, vaderlz.zafbin into your "munged" folder of your custom side as well.

Re: Darth Vader on republic side

Posted: Thu Apr 02, 2015 9:21 am
by DrDrSheldonLeeCooper
C:\BF2_ModTools\data_MEL\Sides\rep\munged

here?

Re: Darth Vader on republic side

Posted: Thu Apr 02, 2015 11:07 am
by razac920
Yep.

Re: Darth Vader on republic side

Posted: Thu Apr 02, 2015 11:29 am
by DrDrSheldonLeeCooper
Thank you it works now. :)
But how can I make that it plays the Darth Vader music like in gcw?

Re: Darth Vader on republic side

Posted: Thu Apr 02, 2015 4:21 pm
by thelegend
I have never done something like that before but I guess it works with the same method like adding shipped missing sounds. You may need to use other sound files. But I don't know which files exactly.

Re: Darth Vader on republic side

Posted: Thu Apr 02, 2015 4:26 pm
by DrDrSheldonLeeCooper
Okay thank you :)