Page 1 of 1
new hero = no attack
Posted: Sat Apr 12, 2008 3:05 pm
by cloneknight
i made my clone commander a the hero. gave him a coustom color lightsaber, force lightning, saber throw, and raised his hp.. but all he does is force lightning he has never once attacked with the saber, what do i need to change to make it so he attacks melee?
Re: new hero = no attack
Posted: Sat Apr 12, 2008 3:18 pm
by ryukaji
Might be helpful if you showed us the odf...
Re: new hero = no attack
Posted: Sat Apr 12, 2008 3:21 pm
by cloneknight
[GameObjectClass]
ClassParent = "rep_inf_default"
[Properties]
UnitType = "trooper"
AISizeType = "HOVER"
AnimationName = "gunner"
MaxSpeed = 11.0 // base forward speed
MaxStrafeSpeed = 6.8 // base right/left speed
ScanningRange = 30.0
TransmitRange = 300.0
MaxHealth = 1500
ControlSpeed = "jet 1.50 1.25 1.25"
JetJump = "5.0" //7 //The initial jump-push given when enabling the jet
JetPush = "8.0" //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration = "30.0" //Acceleration while hovering.
JetEffect = "rep_sfx_jetpack"
JetType = "hover"
JetFuelRechargeRate = "0.10" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.05" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.05" //initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "0.20" //minimum fuel to perform a jet jump(fuel is 0 to 1)
WEAPONSECTION = 1
WeaponName = "rep_weap_lightsaber_yellow"
WeaponAmmo = 0
WEAPONSECTION = 2
WeaponName = "com_weap_inf_sabre_throw"
WeaponAmmo = 0
WeaponChannel = 1
WEAPONSECTION = 3
WeaponName = "com_weap_inf_force_lightning"
WeaponAmmo = 0
WeaponChannel = 1
CollisionScale = "0.0 0.0 0.0"
EngineSound = "rep_inf_Jetpack_engine_parameterized"
TurnOnSound = "rep_weap_jetpack_turnon"
TurnOffSound = "rep_weap_jetpack_turnoff"
TurnOffTime = 0.0
VOUnitType = 121
Re: new hero = no attack
Posted: Sat Apr 12, 2008 3:40 pm
by ryukaji
I blieve you will need a jedi's animation to use a lightsaber
Use something like
Re: new hero = no attack
Posted: Sat Apr 12, 2008 4:07 pm
by cloneknight
oh he can use the saber, the ai just dont use it...
Re: new hero = no attack
Posted: Sat Apr 12, 2008 4:22 pm
by ryukaji
Is there a .combo in your side folder?
So its just the AI that dont use a saber?
Re: new hero = no attack
Posted: Sat Apr 12, 2008 4:25 pm
by cloneknight
Precisely, all he does is jump and shock.
Re: new hero = no attack
Posted: Sat Apr 12, 2008 5:05 pm
by ryukaji
well try copying the jedi odf and see if that works and also try another animation
Re: new hero = no attack
Posted: Sun Apr 13, 2008 1:44 pm
by Blade
No, I'm pretty sure it's just the AI. (You'll also notice that AI Emperor and Count Dooku hardly ever do anything but block, jump, and lightning)
Re: new hero = no attack
Posted: Sun Apr 13, 2008 2:30 pm
by ryukaji
But the AI for obiwan and luke and others will attack lots with a lightsaber
Re: new hero = no attack
Posted: Sun Apr 13, 2008 6:21 pm
by MandeRek
This is kinda noncense ryukaji.. Have we ever played Hero Assault? You'll see flying lightsabers, mostly from Anakin, Obi, Maul etc., and you just know that Dooku and Sidious will ALWAYS use force Lightning.
There is a line for the odf, saying if AI will use it or not.. I don't know this line, maybe Mav' knows it. If there isn't a line, try changing the slots, so make Force Lightning the second weapon in the secondary slot (so
WEAPONSECTION = 3, etc)
Good luck
Edit: I noticed it is the third slot already.. Then i ask support from someone who knows odf lines

Re: new hero = no attack
Posted: Sun Apr 13, 2008 8:16 pm
by Maveritchell
Just set the AI behavior to not use force lightning or throw. I haven't been able to find a happy middle ground; the best mix of AI behavior (in this scenario) is to tell them not to use anything but the actual saber melee.
Re: new hero = no attack
Posted: Sun Apr 13, 2008 10:38 pm
by ryukaji
MandeRek wrote:This is kinda noncense ryukaji.. Have we ever played Hero Assault? You'll see flying lightsabers, mostly from Anakin, Obi, Maul etc., and you just know that Dooku and Sidious will ALWAYS use force Lightning.
Actually.. I hardly ever play I just like modding. Its been a while since I played hero assault, and I thought I remembered seeing lightsabers used normally
Re: new hero = no attack
Posted: Mon Apr 14, 2008 2:07 am
by MandeRek
Maveritchell wrote:Just set the AI behavior to not use force lightning or throw. I haven't been able to find a happy middle ground; the best mix of AI behavior (in this scenario) is to tell them not to use anything but the actual saber melee.
Ok, but how do we do that?

Re: new hero = no attack
Posted: Mon Apr 14, 2008 3:18 am
by Maveritchell
Code: Select all
AITargetPerson = "0"
AITargetAnimal = "0"
AITargetDroid = "0"
AITargetVehicle = "0"
AITargetBuilding = "0"
Re: new hero = no attack
Posted: Mon Apr 14, 2008 8:21 am
by ryukaji
Maveritchell wrote:Code: Select all
AITargetPerson = "0"
AITargetAnimal = "0"
AITargetDroid = "0"
AITargetVehicle = "0"
AITargetBuilding = "0"
wouldnt that make them not attack at all?
Re: new hero = no attack
Posted: Mon Apr 14, 2008 9:45 am
by MandeRek
Maveritchell wrote:Code: Select all
AITargetPerson = "0"
AITargetAnimal = "0"
AITargetDroid = "0"
AITargetVehicle = "0"
AITargetBuilding = "0"
This goes in the weapon odf, right?

Re: new hero = no attack
Posted: Mon Apr 14, 2008 10:07 am
by Maveritchell
Right. And yes, it makes them "not attack at all," but only with the weapon in question.
(Technically, it just makes it very highly unlikely for them to use it. I seem to recall AI choosing to ignore these on rare occasion.)