Page 1 of 1

MaxHealth problem

Posted: Sat Feb 13, 2010 1:28 pm
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)

Re: MaxHealth problem

Posted: Sat Feb 13, 2010 1:56 pm
by Master_Ben
Hidden/Spoiler:
Maxhealth = "100.0"
Add those. Also on the AddHealth.

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 7:56 am
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 " ...

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 8:01 am
by sampip
Which .odf file is that?

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 8:10 am
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

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 8:14 am
by sampip
Sorry, I mean what's the name of the odf?

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 8:34 am
by Coley
cis_inf_officer(.odf)

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 8:50 am
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.

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 10:52 am
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? :(

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 11:04 am
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. :)

Re: MaxHealth problem

Posted: Sun Feb 14, 2010 11:17 am
by Coley
:oops:
Ok, thank you I will try this!