Using "Elite" difficulty in LUA

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
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Using "Elite" difficulty in LUA

Post by Sky_216 »

Just wondering...is it possible? I know you can use SetDifficulty to make the AI shoot better, but I'd also like to use a function to check if difficulty is on "hard", and if so add the advanced blaster bonus to both sides.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Using "Elite" difficulty in LUA

Post by [RDH]Zerted »

I've never used it, but I think this is what you want: ScriptCB_GetDifficulty()
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 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: Using "Elite" difficulty in LUA

Post by Sky_216 »

Tested it out, works fine (used max fly height to check).

What's the code/function needed to give a team advanced blasters though?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Using "Elite" difficulty in LUA

Post by [RDH]Zerted »

If you searched the FAQ topic for bonus, it would have directly lead you to this topic: http://www.gametoast.com/forums/viewtop ... 27&t=12015
Post Reply