Lightsaber Throw [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
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Lightsaber Throw [Solved]

Post by sampip »

I was wondering what actually determines the AI heroes to constantly throw their lightsabers? Unless they are up close to you, the only attack they use is lightsaber throw (or force lighting - in Count's and The Emperor's case), it's not too bad but is there any way to just make them do something else? Each hero has two force powers, yet they only ever use one.

Is there anything that can be done about this to make them use both - and use their melee attack a bit more? It's not really important, I was just wondering.
Last edited by sampip on Thu Feb 25, 2010 2:35 pm, edited 1 time in total.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Lightsaber Throw

Post by kinetosimpetus »

Look for an odf that uses TargetPerson and AITargetPerson lines, set them to 1 and AI will now spam away with that power!

You can limit how oftn they are used using overheat, look at any overheating odf.
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: Lightsaber Throw

Post by sampip »

Hmm, I wonder; is it possible to set the value of AITargetPerson and TargetPerson lines to a value in between 0 and 1 (using a decimal (0.1 - you get the idea)) so they aren't pointlessly spamming them but they aren't just not using them at all. Because if they are both set to 1, I guess they would only spam the first weapon, which happens to be normally lightsaber throw (for those who have it). Is that correct?

If not, the second option seems like a better idea - but I'm really looking for them to use both, which is kinda what the first part of my post points towards. What I'm really looking for is a sensible balance between a number of force powers - not just using 1, even if it does overheat. I suppose you could use both to create what you need.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Lightsaber Throw

Post by kinetosimpetus »

I think the target values are booleans (true/false,1/0)
using just what ive described though, units will use saber throw and push, but i may want to change push, maybe so it affects enemies only, like force pull, and maybe fewer targets or a narrower range.
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: Lightsaber Throw

Post by sampip »

Oh, ok then, will do that. Thanks for your help! :D
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Lightsaber Throw [Solved]

Post by kinetosimpetus »

No problem :)
Post Reply