new hero = no attack

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
cloneknight
Chief Warrant Officer
Chief Warrant Officer
Posts: 357
Joined: Sun Aug 20, 2006 11:39 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

new hero = no attack

Post 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?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: new hero = no attack

Post by ryukaji »

Might be helpful if you showed us the odf...
cloneknight
Chief Warrant Officer
Chief Warrant Officer
Posts: 357
Joined: Sun Aug 20, 2006 11:39 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: new hero = no attack

Post 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
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: new hero = no attack

Post by ryukaji »

I blieve you will need a jedi's animation to use a lightsaber
Use something like

Code: Select all

AnimationName           = "obiwan"
cloneknight
Chief Warrant Officer
Chief Warrant Officer
Posts: 357
Joined: Sun Aug 20, 2006 11:39 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: new hero = no attack

Post by cloneknight »

oh he can use the saber, the ai just dont use it...
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: new hero = no attack

Post by ryukaji »

Is there a .combo in your side folder?

So its just the AI that dont use a saber?
cloneknight
Chief Warrant Officer
Chief Warrant Officer
Posts: 357
Joined: Sun Aug 20, 2006 11:39 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: new hero = no attack

Post by cloneknight »

Precisely, all he does is jump and shock.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: new hero = no attack

Post by ryukaji »

well try copying the jedi odf and see if that works and also try another animation
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: new hero = no attack

Post 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)
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: new hero = no attack

Post by ryukaji »

But the AI for obiwan and luke and others will attack lots with a lightsaber
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: new hero = no attack

Post 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 :P
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: new hero = no attack

Post 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.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: new hero = no attack

Post 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
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: new hero = no attack

Post 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? :?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: new hero = no attack

Post by Maveritchell »

Code: Select all

AITargetPerson        = "0"
AITargetAnimal        = "0"
AITargetDroid         = "0"
AITargetVehicle       = "0"
AITargetBuilding      = "0"
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: new hero = no attack

Post 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?
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: new hero = no attack

Post by MandeRek »

Maveritchell wrote:

Code: Select all

AITargetPerson        = "0"
AITargetAnimal        = "0"
AITargetDroid         = "0"
AITargetVehicle       = "0"
AITargetBuilding      = "0"
This goes in the weapon odf, right? :P
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: new hero = no attack

Post 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.)
Post Reply