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
Coley
Sergeant Major
Posts: 249 Joined: Sun Aug 09, 2009 11:27 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: Germany
Post
by Coley » Sat Feb 13, 2010 1:28 pm
Hi,
I have a problem with the Maxhealth function. What´s wrong with this?
(it´s just a part of it)
Master_Ben
Lieutenant General
Posts: 675 Joined: Wed Nov 12, 2008 9:50 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: Watching your PC over your shoulder. No, the other sholder....
Post
by Master_Ben » Sat Feb 13, 2010 1:56 pm
Add those. Also on the AddHealth.
Coley
Sergeant Major
Posts: 249 Joined: Sun Aug 09, 2009 11:27 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: Germany
Post
by Coley » Sun Feb 14, 2010 7:56 am
Cant belive that this is the solution. With another unit it worked without the...you know, those " .
And the addhealth was in the stock units odf without " ...
sampip
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
Post
by sampip » Sun Feb 14, 2010 8:01 am
Which .odf file is that?
Coley
Sergeant Major
Posts: 249 Joined: Sun Aug 09, 2009 11:27 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: Germany
Post
by Coley » Sun Feb 14, 2010 8:10 am
Oh wtf it isn´t the stock one is a downloaded one
But that doesn´t change anything; with the other unit it worked without those signs
sampip
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
Post
by sampip » Sun Feb 14, 2010 8:14 am
Sorry, I mean what's the name of the odf?
Coley
Sergeant Major
Posts: 249 Joined: Sun Aug 09, 2009 11:27 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: Germany
Post
by Coley » Sun Feb 14, 2010 8:34 am
cis_inf_officer(.odf)
sampip
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
Post
by sampip » Sun Feb 14, 2010 8:50 am
Change the parent class (ClassParent) to "cis_inf_default_officer", then in cis_inf_default_officer.odf put your MaxHealth and AddHealth lines:
Like so. Remove them from cis_inf_officer. Then munge and try if it works.
Coley
Sergeant Major
Posts: 249 Joined: Sun Aug 09, 2009 11:27 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: Germany
Post
by Coley » Sun Feb 14, 2010 10:52 am
Thank you, but the problem is that my weapons are in "cis_inf_officer" (like a jedi) and this:
cis_inf_officer -> cis_inf_default_officer -> cis_inf_default
In cis_inf_default I have got another maxhealth for the rest of droids. Have I to make a maxhealth line for every single droid if I just want to have ONE which is different?
AceMastermind
Gametoast Staff
Posts: 3285 Joined: Mon Aug 21, 2006 6:23 am
Contact:
Post
by AceMastermind » Sun Feb 14, 2010 11:04 am
Coley wrote: I have a problem with the Maxhealth function. What´s wrong with this?
Maxhealth = 100.0
Max
H ealth = 100.0
You got it correct in your topic name but not in the ODF.
Coley
Sergeant Major
Posts: 249 Joined: Sun Aug 09, 2009 11:27 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: Germany
Post
by Coley » Sun Feb 14, 2010 11:17 am
Ok, thank you I will try this!