new hero = no attack
Moderator: Moderators
-
cloneknight
- Chief Warrant Officer

- Posts: 357
- Joined: Sun Aug 20, 2006 11:39 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
new hero = no attack
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?
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: new hero = no attack
Might be helpful if you showed us the odf...
-
cloneknight
- Chief Warrant Officer

- Posts: 357
- Joined: Sun Aug 20, 2006 11:39 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: new hero = no attack
[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
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: new hero = no attack
I blieve you will need a jedi's animation to use a lightsaber
Use something like
Use something like
Code: Select all
AnimationName = "obiwan"-
cloneknight
- Chief Warrant Officer

- Posts: 357
- Joined: Sun Aug 20, 2006 11:39 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: new hero = no attack
oh he can use the saber, the ai just dont use it...
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: new hero = no attack
Is there a .combo in your side folder?
So its just the AI that dont use a saber?
So its just the AI that dont use a saber?
-
cloneknight
- Chief Warrant Officer

- Posts: 357
- Joined: Sun Aug 20, 2006 11:39 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: new hero = no attack
Precisely, all he does is jump and shock.
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: new hero = no attack
well try copying the jedi odf and see if that works and also try another animation
- Blade
- Captain

- Posts: 496
- Joined: Fri Apr 04, 2008 11:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: new hero = no attack
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)
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: new hero = no attack
But the AI for obiwan and luke and others will attack lots with a lightsaber
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: new hero = no attack
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
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
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: new hero = no attack
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.
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: new hero = no attack
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 normallyMandeRek 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.
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: new hero = no attack
Ok, but how do we do that?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.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: new hero = no attack
Code: Select all
AITargetPerson = "0"
AITargetAnimal = "0"
AITargetDroid = "0"
AITargetVehicle = "0"
AITargetBuilding = "0"-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: new hero = no attack
wouldnt that make them not attack at all?Maveritchell wrote:Code: Select all
AITargetPerson = "0" AITargetAnimal = "0" AITargetDroid = "0" AITargetVehicle = "0" AITargetBuilding = "0"
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: new hero = no attack
This goes in the weapon odf, right?Maveritchell wrote:Code: Select all
AITargetPerson = "0" AITargetAnimal = "0" AITargetDroid = "0" AITargetVehicle = "0" AITargetBuilding = "0"
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: new hero = no attack
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.)
(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.)
