Jetpack Fuel via 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
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Jetpack Fuel via LUA

Post by Fiodis »

I know you can get an object's shield amount by CurShield, and tinker with it using SetProperty. Is there a way to do the same with jetpack fuel? Are they the same thing, LUA-wise?
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Jetpack Fuel via LUA

Post by RogueKnight »

Fiodis wrote:I know you can get an object's shield amount by CurShield, and tinker with it using SetProperty. Is there a way to do the same with jetpack fuel? Are they the same thing, LUA-wise?
I would assume so, i believe there is a FC code for unlimited jetpack fuel.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Jetpack Fuel via LUA

Post by [TFA]Padawan_Fighter »

Yes, but that's different, as not only does it give you unlimited fuel, it gives everyone jetpacks.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: Jetpack Fuel via LUA

Post by myers73 »

it also overides the jetpacks that units already have and replaces them with the default rep jetpack.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Jetpack Fuel via LUA

Post by Fiodis »

What I need is a meter that can be replenished via LUA, and I don't want to hijack the health bar. Energy bar you can't alter via LUA directly, and the shield bar would have some side effects (such as the unit having a shield) that I don't want. The jetpack seemed the only way to do it, to have a unit that has a jetpack, and jetpack fuel, and an insanely high amount of fuel necessary to activate.

So is it feasable to hijack the jetpack fuel meter for this purpose? Or is there some other meter I could use?

Actually, is there any way to create your own meter? I wouldn't think so, but I want to make sure.
Post Reply