Page 1 of 1
Hero questions
Posted: Tue Sep 27, 2016 4:15 am
by SkinnyODST
I made the ep3 Officer the republic`s hero and I have some questions about him:
1. How do I alter the amount of points needed to unlock him?
2. How do stop him having "lightsaber health"?
3. I gave him a shield, and it doesn`t recharge. It DID recharge BEFORE I made him a hero but now it doesn`t. HOW DOES ONE STOP THIS MADNESS?!

Re: Hero questions
Posted: Tue Sep 27, 2016 7:51 am
by CdtFox
SkinnyODST wrote:I made the ep3 Officer the republic`s hero and I have some questions about him:
1. How do I alter the amount of points needed to unlock him?
2. How do stop him having "lightsaber health"?
3. I gave him a shield, and it doesn`t recharge. It DID recharge BEFORE I made him a hero but now it doesn`t. HOW DOES ONE STOP THIS MADNESS?!

1) Open rep_inf_default_officer.odf, in the unit's odf you have a line for that: "PointsToUnlock = 8" <--- just change that value
2) Just Change the healt type of your unit, "HealtType = whatever you want"
3)
MaxShield is the shields strength
AddShield is the shields recharge rate
Hopefully this helped some

Re: Hero questions
Posted: Tue Sep 27, 2016 3:02 pm
by DylanRocket
SkinnyODST wrote:2. How do stop him having "lightsaber health"?
All Hero units have this and it can't be removed.
Re: Hero questions
Posted: Wed Sep 28, 2016 7:00 am
by SkinnyODST
2) Just Change the healt type of your unit, "HealtType = whatever you want"
What do you mean "Whatever you want"? I would like him to have the same health type that standard units have "health bar". What do I write?
2) Just Change the healt type of your unit, "HealtType = whatever you want"
What do you mean "Whatever you want"? I would like him to have the same health type that standard units have "health bar". What do I write?
Also, that`s not the right kind of points I was talking about when I said "How do I alter the amount of points to unlock him, I meant the amount of points needed to get that yellow and red "You can now play as ***" notification. I should have been more specific.
*EDIT* ALSO! I know how to set up a shield for him, it just kind of gets...disabled because he`s a hero.
Re: Hero questions
Posted: Wed Sep 28, 2016 10:49 am
by Oceans14
I don't believe what you're trying to do is possible. Not certain, but pretty sure. In my experience, any unit you add as a hero in that special line in the script will have lightsaber health. Pretty sure you can put the regular clone trooper in there and he'll have the saber bar. Try it.
However, there's a chance that this behavior is controlled by a lua or odf somewhere. You'll have to poke around a little.
Re: Hero questions
Posted: Wed Sep 28, 2016 12:02 pm
by JimmyAngler
DylanRocket wrote:SkinnyODST wrote:2. How do stop him having "lightsaber health"?
All Hero units have this and it can't be removed.
Doesn't MEU have heroes with regular health?
Re: Hero questions
Posted: Wed Sep 28, 2016 3:36 pm
by Marth8880
JimmyAngler wrote:Doesn't MEU have heroes with regular health?
Their health bars *look* the same as normal health bars (with the custom HUD enabled), but the way their health functions is still that of a normal hero.
Re: Hero questions
Posted: Sun Oct 02, 2016 10:10 pm
by Samee3
The desired effect
could be produced through some slightly complicated LUA scripting, if that's your kind of thing.
Alternatively, you could set him up to have like this:
Code: Select all
AddUnitClass(REP, "rep_inf_ep3_officer", 0, 1)
The two numbers on the end are the most important part. It basically says that "there can only be one", and BF2 reserves it for the player. I use this in conjunction with PointsToUnlock for all my "heroes".