Hero health? [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
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Hero health? [Solved]

Post by skelltor »

How would i make heros not lose health or gain health by killing units also how would i make units get health by killing units. I would think it would be in the lua but idk.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: hero health?

Post by Teancum »

99% sure the hero bar is hard-coded. If you want the hero to not lose "hero health", make them a selectable unit and set minimum to 0, max to 1.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: hero health?

Post by skelltor »

Oh ok thx
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: Hero health? [Solved]

Post by myers73 »

you could also write some code so that they arent added to the team until the player gets a certain number of points.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: hero health?

Post by skelltor »

Teancum wrote:99% sure the hero bar is hard-coded. If you want the hero to not lose "hero health", make them a selectable unit and set minimum to 0, max to 1.
how would i make it if i want to be a hero and there is already that hero in the game that that hero will die so i can be the hero?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Hero health? [Solved]

Post by Teancum »

You can't.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Hero health? [Solved]

Post by skelltor »

Oh ok the reson i asked was that i thought it was in skys dark space map pack.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Hero health? [Solved]

Post by Teancum »

Maybe - I don't know how you would kill someone else off and make sure that you get the hero. The hero unlock system is all hard coded.
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: Hero health? [Solved]

Post by Fiodis »

I thought I had some early success using Fake Console commands to give the hero unending life (through some health regen?) a long, long while ago. It may have just been wishful thinking, though, as I tried the same thing recently and had it pseudofail.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Hero health? [Solved]

Post by lucasfart »

Archer01's hero support script is what you're thinking about skelltor. It allows the ai to use the hero, but when the player spawns as it, the ai hero is killed....
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Hero health? [Solved]

Post by skelltor »

yah thanks i did not know if sky edited the script or not.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Hero health? [Solved]

Post by Teancum »

Ah, I misunderstood. I thought you meant kill a human to take over.
RevanSithLord
Sith Master
Sith Master
Posts: 2636
Joined: Mon Nov 07, 2005 12:40 am
Projects :: Designated Days + LFC + GT vs SWBFC
Games I'm Playing :: FO3 + FO New Vegas
xbox live or psn: Master Revan
Location: GDSS Philadelphia

Re: Hero health? [Solved]

Post by RevanSithLord »

Teancum wrote:Ah, I misunderstood. I thought you meant kill a human to take over.
Lol. That would be pretty mean, though.

I had a hard time understanding the dude myself, actually. I was about to try and help out with what limited knowledge I have, but since the topic is solved, my post is essentially useless. :(
Post Reply