Page 1 of 1

Cloth Addon Help

Posted: Fri Jun 12, 2015 10:57 am
by CmdSmith
I'm sure I'm doing this right, but my addon cloth isn't showing up in game. I am using the Jedi Robes i got from http://www.gametoast.com/viewtopic.php?f=64&t=23298.

I have this in the cloth ODF:

Code: Select all

[GameObjectClass]       
ClassLabel          = "cloth"

[Properties]
attachedmesh    = "rep_inf_jedi_male_open"

WindDirection = "100 -120" 

WindSpeed = 0.3

Dampening = 0.5

Drag = -2.25

ParticleMass = 1.25

MaxAcceleration = 20

Priority = 1

Transparent = 0

CrossConstraint = 1
BendConstraint = 1
StretchConstraint = 1
And this in my unit ODF: (SHORTENED)

Code: Select all

[GameObjectClass]
ClassParent           = "com_jedi_default"
GeometryName            = "rep_inf_jedi_male_open.msh"
In my msh folder, there are all the .tga files and .msh files that come with the download. But when I clean/munge/load, the cape doesnt show up (only the model).

Re: Cloth Addon Help

Posted: Fri Jun 12, 2015 11:18 pm
by AceMastermind
This kind of cloth is actually part of the unit msh and not an addon, just enabled by ODFs. Addons are both incorporated and enabled by the ODF, like Dooku's cape for SWBF1. Post your whole unit ODF, you probably didn't call the cloth ODF under properties.

Re: Cloth Addon Help

Posted: Sat Jun 13, 2015 7:34 pm
by CmdSmith
Here it is:
Hidden/Spoiler:
[code]// Guardian (padawan), maul
[GameObjectClass]
ClassParent = "com_jedi_default"
GeometryName = "rep_inf_jedi_male_open.msh"

[Properties]
AISizeType = "HOVER"

GeometryName = "rep_inf_jedi_male_open"
ClothOdf ="rep_inf_ep3heavytrooper_cape"
GeometryLowRes = "jed_inf_jedi_low1"
OverrideTexture = "jed_inf_jedi01"

AnimationName = "mace"

HealthType = "person"
MaxHealth = 600.0

MaxSpeed = 8.0
MaxStrafeSpeed = 6.0
MaxTurnSpeed = 5.0
JumpHeight = 3.5
RecoverFromTumble = "1"

NoEnterVehicles = 1

//Jet Jump
JetJump = "10.0" //The initial jump-push given when enabling the jet
JetPush = "0.0" //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration = "10.0" // for characters with jet jump, use this acceleration for in air control
JetEffect = ""
JetFuelRechargeRate = "0.0" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.0" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.0" //4initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "0.0" //minimum fuel to perform a jet jump(fuel is 0 to 1)
JetShowHud = 0
JetEnergyDrain = 40.0

CollisionScale = "0.0 0.0 0.0" // don't take damage from collisions
//Jet Jump End


WEAPONSECTION = 1
WeaponName1 = "saber_1_gaurdian"
WeaponAmmo1 = 0

WEAPONSECTION = 2
WeaponName = "com_weap_inf_sabre_throw"
WeaponAmmo = 0
WeaponChannel = 1

WEAPONSECTION = 3
WeaponName = "com_weap_inf_force_push"
WeaponAmmo = 0
WeaponChannel = 1

//SOUND
//SndHeroSelectable = ""
//SndHeroSpawned = "hero_secura_spawn"
//SndHeroDefeated = "hero_secura_exhausted"
//SndHeroKiller = "hero_secura_exhausted"

//VOSound = "hero_secura_AcquiredTarget AcquiredTarget"
//VOSound = "hero_secura_KillingSpree4 KillingSpree4"

VOUnitType = 0181
//SoldierMusic = "rep_hero_secura_lp"
HurtSound = ""
DeathSound = ""
AcquiredTargetSound = ""
HidingSound = ""
//ApproachingTargetSound = ""
FleeSound = ""
PreparingForDamageSound = ""
HeardEnemySound = ""
ShockFadeOutTime = ""
ShockFadeInTime = ""
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
//LowHealthSound = "com_inf_saber_ambient"
LowHealthThreshold = "1.1"
FoleyFXClass = "rep_inf_soldier"

[/code]

Re: Cloth Addon Help

Posted: Sat Jun 13, 2015 8:47 pm
by AceMastermind
Change that:
CmdSmith wrote:

Code: Select all

ClothOdf = "rep_inf_ep3heavytrooper_cape"
to this:

Code: Select all

ClothOdf = "rep_inf_jedi_male_open_robe"

Re: Cloth Addon Help

Posted: Sat Jun 13, 2015 9:40 pm
by CmdSmith
*facepalm* Am I really THAT stupid?