MaxHealth problem

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
Coley
Sergeant Major
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

MaxHealth problem

Post by Coley »

Hi,
I have a problem with the Maxhealth function. What´s wrong with this? :(
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "com_inf_default"
GeometryName = "cis_inf_caped_magnaguard.msh"

[Properties]
GeometryName = "cis_inf_caped_magnaguard"
GeometryLowRes = "cis_inf_caped_magnaguard"
FirstPerson = "CIS\cisoff;cis_1st_magnaguard"
ClothODF = "cis_inf_magnaguard_cape"
Maxhealth = 100.0

SkeletonName = "magnaguard"
SkeletonLowRes = "magnaguardlz"
SkeletonRootScale = "1.24"

AddHealth = 10.0

MaxSpeed = 10.5 // base forward speed
MaxStrafeSpeed = 6.6 // base right/left speed
MaxTurnSpeed = 6.0 // base turn speed
JumpHeight = 3.5 // base jump height in meters
RecoverFromTumble = "1"
(it´s just a part of it)
Master_Ben
Lieutenant General
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....

Re: MaxHealth problem

Post by Master_Ben »

Hidden/Spoiler:
Maxhealth = "100.0"
Add those. Also on the AddHealth.
Coley
Sergeant Major
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

Re: MaxHealth problem

Post by Coley »

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 " ...
User avatar
sampip
General
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

Re: MaxHealth problem

Post by sampip »

Which .odf file is that?
Coley
Sergeant Major
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

Re: MaxHealth problem

Post by Coley »

Oh wtf it isn´t the stock one is a downloaded one :oops:
But that doesn´t change anything; with the other unit it worked without those signs
User avatar
sampip
General
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

Re: MaxHealth problem

Post by sampip »

Sorry, I mean what's the name of the odf?
Coley
Sergeant Major
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

Re: MaxHealth problem

Post by Coley »

cis_inf_officer(.odf)
User avatar
sampip
General
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

Re: MaxHealth problem

Post by sampip »

Change the parent class (ClassParent) to "cis_inf_default_officer", then in cis_inf_default_officer.odf put your MaxHealth and AddHealth lines:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "cis_inf_default"


[Properties]
PointsToUnlock = 8

ExplosionName = "cis_inf_droid_exp"
UnitType = "support"

MaxHealth = 550.0
AddHealth = 10.0


WEAPONSECTION = 1
WeaponName = "cis_weap_inf_bulldog"
WeaponAmmo = 5

WEAPONSECTION = 2
WeaponName = "cis_weap_inf_mortar_launcher"
WeaponAmmo = 3

WEAPONSECTION = 3
WeaponName = "cis_weap_inf_debuff_poison"
WeaponAmmo = 1
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "cis_weap_inf_remotedroid"
WeaponAmmo = 1
WeaponChannel = 1


VOUnitType = 093

// the foot height where footstep sounds are played
MinFootHeight = 0.3

VOSound = "cis1_inf_pc_com_hostile SpottedVO"
VOSound = "cis1_inf_pc_com_bacta NeedMedicVO"
VOSound = "cis1_inf_pc_com_mechanic NeedRepairVO"
VOSound = "cis1_inf_pc_com_ammo NeedAmmoVO"
VOSound = "cis1_inf_pc_com_transport NeedPickupVO"
VOSound = "cis1_inf_pc_com_backup NeedBackupVO"
VOSound = "cis1_inf_pc_com_clear_area AttackPositionVO"
VOSound = "cis1_inf_pc_com_defend DefendPositionVO"

VOSound = "cis1_inf_pc_com_hostile_inVehicle SpottedVO +InVehicle"
VOSound = "cis1_inf_pc_com_bacta_inVehicle NeedMedicVO +InVehicle"
VOSound = "cis1_inf_pc_com_mechanic_inVehicle NeedRepairVO +InVehicle"
VOSound = "cis1_inf_pc_com_ammo_inVehicle NeedAmmoVO +InVehicle"
VOSound = "cis1_inf_pc_com_transport_inVehicle NeedPickupVO +InVehicle"
VOSound = "cis1_inf_pc_com_backup_inVehicle NeedBackupVO +InVehicle"
VOSound = "cis1_inf_pc_com_clear_area_inVehicle AttackPositionVO +InVehicle"
VOSound = "cis1_inf_pc_com_defend_inVehicle DefendPositionVO +InVehicle"
Like so. Remove them from cis_inf_officer. Then munge and try if it works.
Coley
Sergeant Major
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

Re: MaxHealth problem

Post by Coley »

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? :(
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: MaxHealth problem

Post by AceMastermind »

Coley wrote:I have a problem with the Maxhealth function. What´s wrong with this?
Maxhealth = 100.0
MaxHealth = 100.0

You got it correct in your topic name but not in the ODF. :)
Coley
Sergeant Major
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

Re: MaxHealth problem

Post by Coley »

:oops:
Ok, thank you I will try this!
Post Reply