Change commandpostgenerator into destroyable prop [Solved]

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
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Change commandpostgenerator into destroyable prop [Solved]

Post by Executer94 »

I try to change the generator and shield (working fambaa shield) from a commandpost into a destroyable prop, because all units run the commandpost.



nab_bldg_fambaa_shield
Hidden/Spoiler:
[GameObjectClass]

ClassLabel ="commandarmedanimatedbuilding"
GeometryName ="nab1_walk_fambaa.msh"


[Properties]

GeometryName ="nab1_walk_fambaa"

BUILDINGSECTION ="BODY"
Label ="Control Zone"
MapTexture ="hud_dest_icon"
MapScale =3.0

GeometryName ="nab1_walk_fambaa"
AnimationName ="nab_walk_fambaa"
IdleAnimation ="fambaa_idle"
DeathAnimation ="fambaa_death"

MaxHealth ="10000.0"
RespawnTime ="6000000"

AmbientSound = "all famba_moan"
AmbientSound = "cis famba_moan"
AmbientSound = "imp famba_moan"
AmbientSound = "rep famba_moan"
HurtSound = "famba_hurt"
DeathSound = "famba_death"
SpawnPointCount = "6"
SpawnPointLocation = "8.0 0.0 0.0 5"
SpawnPointLocation = "8.0 0.0 4.0 5"
SpawnPointLocation = "8.0 0.0 -4.0 5"
SpawnPointLocation = "-8.0 0.0 0.0 355"
SpawnPointLocation = "-8.0 0.0 4.0 355"
SpawnPointLocation = "-8.0 0.0 -4.0 355"

BUILDINGSECTION = "TURRET1"

PilotType = "self"
Controllable = "0"
AutoFire = "1"

TurretNodeName = "hp_fire"
PitchLimits = "0.0 0.0"
YawLimits = "0.0 0.0"
MaxTurnSpeed = "0.0"
MaxPitchSpeed = "0.0"

WeaponName = "nab_weap_bldg_fambaa_shield"
WeaponAmmo = 2

[InstanceProperties]
CaptureRegion = ""
ControlRegion = ""
KillRegion = ""
SpawnPath = "FambaSpawnPath"
AllyPath = ""
AllyCount = 65536
Radius = 0.0
ValueBleed = 15
Value_ATK_Alliance =
Value_ATK_CIS =
Value_ATK_Empire =
Value_ATK_Republic =
Value_DEF_Alliance =
Value_DEF_CIS =
Value_DEF_Empire =
Value_DEF_Republic =
Value_DEF_Locals =
VO_All_AllCapture = ""
VO_All_AllLost = ""
VO_All_AllInDispute = ""
VO_All_AllSaved = ""
VO_All_AllInfo = ""
VO_All_ImpCapture = ""
VO_All_ImpLost = ""
VO_All_ImpInDispute = ""
VO_All_ImpSaved = ""
VO_All_ImpInfo = ""
VO_Imp_AllCapture = ""
VO_Imp_AllLost = ""
VO_Imp_AllInDispute = ""
VO_Imp_AllSaved = ""
VO_Imp_AllInfo = ""
VO_Imp_ImpCapture = ""
VO_Imp_ImpLost = ""
VO_Imp_ImpInDispute = ""
VO_Imp_ImpSaved = ""
VO_Imp_ImpInfo = ""
VO_Rep_RepCapture = ""
VO_Rep_RepLost = ""
VO_Rep_RepInDispute = ""
VO_Rep_RepSaved = ""
VO_Rep_RepInfo = "cis_destroy_famba"
VO_Rep_CISCapture = ""
VO_Rep_CISLost = ""
VO_Rep_CISInDispute = ""
VO_Rep_CISSaved = ""
VO_Rep_CISInfo = "cis_destroy_famba"
VO_CIS_RepCapture = ""
VO_CIS_RepLost = ""
VO_CIS_RepInDispute = ""
VO_CIS_RepSaved = ""
VO_CIS_RepInfo = "cis_destroy_famba"
VO_CIS_CISCapture = ""
VO_CIS_CISLost = ""
VO_CIS_CISInDispute = ""
VO_CIS_CISSaved = ""
VO_CIS_CISInfo = "cis_destroy_famba"
Strategic_Filter1 = ""
Strategic_Filter2 = ""
Strategic_Filter3 = ""
Strategic_Filter4 = ""
Strategic_Filter5 = ""
Strategic_Filter6 = ""


SoldierBan = ""
HoverBan = ""
SmallBan = ""
MediumBan = ""
HugeBan = ""

CollisionScale = 100.0
nab_bldg_fambaa_generator
Hidden/Spoiler:
[GameObjectClass]

ClassLabel ="commandarmedanimatedbuilding"
GeometryName ="nab1_walk_fambaa.msh"


[Properties]

GeometryName ="nab1_walk_fambaa"

BUILDINGSECTION ="BODY"
Label ="Control Zone"
MapTexture ="hud_dest_icon"
MapScale =3.0

GeometryName ="nab1_walk_fambaa"
AnimationName ="nab_walk_fambaa"
IdleAnimation ="fambaa_idle"
DeathAnimation ="fambaa_death"

MaxHealth ="10000.0"
RespawnTime ="6000000"

//HoloOdf = "com_holo_controlzone"
//HoloImageGeometry = "alliance com_icon_alliance"
//HoloImageGeometry = "empire com_icon_imperial"
//HoloImageGeometry = "republic com_icon_republic"
//HoloImageGeometry = "CIS com_icon_CIS"
//HoloTurnOnTime = 2.2
//ChargeSound = "com_blg_commandpost_charge"
//CapturedSound = "com_blg_commandpost_capture"
//DischargeSound = "com_blg_commandpost_discharge"
//LostSound = "com_blg_commandpost_lost"
//DisputeSound = "com_blg_commandpost_dispute"
AmbientSound = "all famba_moan"
AmbientSound = "cis famba_moan"
AmbientSound = "imp famba_moan"
AmbientSound = "rep famba_moan"
HurtSound = "famba_hurt"
DeathSound = "famba_death"
//SoundPitchDev = "0.4"

SpawnPointCount = "6"
SpawnPointLocation = "8.0 0.0 0.0 5"
SpawnPointLocation = "8.0 0.0 4.0 5"
SpawnPointLocation = "8.0 0.0 -4.0 5"
SpawnPointLocation = "-8.0 0.0 0.0 355"
SpawnPointLocation = "-8.0 0.0 4.0 355"
SpawnPointLocation = "-8.0 0.0 -4.0 355"

BUILDINGSECTION = "TURRET1"

PilotType = "self"
Controllable = "0"
AutoFire = "1"

TurretNodeName = "hp_fire"
YawLimits = "150.0 210.0"
PitchLimits = "-30.0 30.0"
MaxTurnSpeed = "0.0"
MaxPitchSpeed = "0.0"
RestDir = "0 0 -1"

WeaponName = "nab_weap_bldg_fambaa_generator"
WeaponAmmo = "0"

[InstanceProperties]
CaptureRegion = ""
ControlRegion = ""
KillRegion = ""
SpawnPath = "FambaSpawnPath"
AllyPath = ""
AllyCount = 65536
Radius = 0.0
ValueBleed = 15
Value_ATK_Alliance =
Value_ATK_CIS =
Value_ATK_Empire =
Value_ATK_Republic =
Value_DEF_Alliance =
Value_DEF_CIS =
Value_DEF_Empire =
Value_DEF_Republic =
Value_DEF_Locals =
VO_All_AllCapture = ""
VO_All_AllLost = ""
VO_All_AllInDispute = ""
VO_All_AllSaved = ""
VO_All_AllInfo = ""
VO_All_ImpCapture = ""
VO_All_ImpLost = ""
VO_All_ImpInDispute = ""
VO_All_ImpSaved = ""
VO_All_ImpInfo = ""
VO_Imp_AllCapture = ""
VO_Imp_AllLost = ""
VO_Imp_AllInDispute = ""
VO_Imp_AllSaved = ""
VO_Imp_AllInfo = ""
VO_Imp_ImpCapture = ""
VO_Imp_ImpLost = ""
VO_Imp_ImpInDispute = ""
VO_Imp_ImpSaved = ""
VO_Imp_ImpInfo = ""
VO_Rep_RepCapture = ""
VO_Rep_RepLost = ""
VO_Rep_RepInDispute = ""
VO_Rep_RepSaved = ""
VO_Rep_RepInfo = "cis_destroy_famba"
VO_Rep_CISCapture = ""
VO_Rep_CISLost = ""
VO_Rep_CISInDispute = ""
VO_Rep_CISSaved = ""
VO_Rep_CISInfo = "cis_destroy_famba"
VO_CIS_RepCapture = ""
VO_CIS_RepLost = ""
VO_CIS_RepInDispute = ""
VO_CIS_RepSaved = ""
VO_CIS_RepInfo = "cis_destroy_famba"
VO_CIS_CISCapture = ""
VO_CIS_CISLost = ""
VO_CIS_CISInDispute = ""
VO_CIS_CISSaved = ""
VO_CIS_CISInfo = "cis_destroy_famba"
Strategic_Filter1 = ""
Strategic_Filter2 = ""
Strategic_Filter3 = ""
Strategic_Filter4 = ""
Strategic_Filter5 = ""
Strategic_Filter6 = ""


SoldierBan = ""
HoverBan = ""
SmallBan = ""
MediumBan = ""
HugeBan = "1"

CollisionScale = 100.0
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Change commandpostgenerator into destroyable prop

Post by AQT »

So... what did you change? I would assume that you should just remove the command part in both ODFs from the ClassLabel. I'm not sure whether armedanimatedbuildingis valid though. Try it out and see.
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Change commandpostgenerator into destroyable prop

Post by Executer94 »

thanks I will try.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Change commandpostgenerator into destroyable prop

Post by DarthD.U.C.K. »

for future reference:
ODF Parameters from psych0freds site wrote:Classlabels
Collision-less Object Classlabels
DustEffect
Cloth
Light

Objects with Collision
Prop
Any building with infinite health should be classlabel prop.
Prop subclasses include
Door
AnimatedProp


Damageable objects with finite health
Asteroid
Building/DestructableBuilding - If you want a building with health use classlabel destructible building.

AnimatedBuilding
CommandPost
BuildingAnimatedArmed ?
CommandArmedAnimatedBuilding
ArmedBuilding
CommandBuildingArmed ?
BuildingArmedDynamic ?
DefenseGridTurret
PortableTurret
Trap
PowerupStation
Droid
Droideka
Flyer
CommandFlyer
Carrier
Hover
CommandHover
Item
Mine
FlagItem
PowerupItem
RemoteTerminal
Soldier
Walker
CommandWalker
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Change commandpostgenerator into destroyable prop

Post by Executer94 »

It works!
Thanks :thumbs:

And also thanks DarthD.U.C.K. show me this useful list :D
Post Reply