Turret doesn't fire from hp

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Turret doesn't fire from hp

Post by Oceans14 »

I turned the dwarf spiderdroid into a turret but for some reason it fires from where its dummyroot would be, not the hp_fire defined in the odf (and present in the model, I checked). It actually doesn't have a dummyroot null either, so I guess it's just firing from 0,0,0. Either way... that is wrong. If it helps, here's the odf:
Hidden/Spoiler:
[code][GameObjectClass]
ClassLabel = "armedbuilding"
GeometryName = "cis_walk_dwarfspider.msh"

[Properties]
BUILDINGSECTION = "BODY"

DeathDustEffect = "deathdustcloud_brown"
DeathDustDelay = "5.1"
DeathDustOffset = "0.0 0.0 0.0"

ExplosionName = "cis_walk_spider_exp"
DeathAnimationExplosion = "small_explosion"
DeathAnimationExplosion = "med_explosion"
MapTexture = "spider_icon"
HealthTexture = "HUD_cis_spiderwalker_icon"
MapScale = "1.6"

GeometryName = "cis_walk_dwarfspider"
AnimationName = "cis_walk_dwarfspider"
FirstPerson = "cis\cisspdrw;cis_1st_cockpit_spiderwalker"

//Pilottype = "self"

MaxHealth = "2200.0"
HealthType = "vehicle"

EyePointOffset = "0.0 8.0 0.0"
TrackCenter = "0.0 12.0 0.0"
TrackOffset = "0.0 0.0 10.0"
TiltValue = "5.0

PitchLimits = "-20.0 20.0"
YawLimits = "-90.0 90.0"

BUILDINGSECTION = "TURRET1"

Pilottype = "self"
Autofire = 1

WEAPONSECTION = "1"
WeaponName = "cis_weap_hover_aat_cannon"
WeaponAmmo = "0"
PitchLimits = "-25.0 25.0"
YawLimits = "-40.0 40.0"

AimerYawLimits = "-40.0 40.0"
AimerPitchLimits = "-25 25"

TurretNodeName = "aimer_x"
AimerNodeName = "aimer_y"

FireOutsideLimits = "0"

FirePointName = "hp_fire"


TerrainCollision = "collision15"
TerrainCollision = "collision11"
TerrainCollision = "collision7"
TerrainCollision = "collision3"


////SOUND////


//LeftFootstepSound = "cis_walk_dwarfspider_stepl"
//RightFootstepSound = "cis_walk_dwarfspider_stepr"
HydraulicSound = ""
HydraulicSoundHeight = ""
HydraulicLowerSound = ""
HydraulicLowerHeight = ""
HurtSound = ""
DeathSound = "com_weap_obj_small_exp"
Music = ""
MusicSpeed = ""
MusicDelay = ""
EngineSound = ""
TurnOnSound = ""
TurnOffSound = ""

[/code]
Could somebody tell me if there's something wrong with the odf that would cause this? Maybe some sort of offset value (although those are usually for the camera, no?) That's why I disabled FireOutsideLimits, cause I figured yup, that's what it's doing.

Btw, I had to add aimers x and y myself and I think I mismatched them, but everything still works - just in case that was concerning to anyone.
Post Reply