Page 1 of 1

Auto Turret doesn´t work!

Posted: Mon Apr 20, 2009 12:53 pm
by FOOLIS
I added a turret from the space assets to my land map.
I modified the ODF and placed it.
The turret shows up ingame, but it doesn´t move or shoot.
Here´s the ODF:

Code: Select all

[GameObjectClass]
ClassLabel              = "armedbuilding"
GeometryName            = "rep_bldg_bandturret.msh"

[Properties]

BUILDINGSECTION            = "BODY"

Pilottype               = "self"
PilotType = self
MapTexture         	= "turret_icon"
IconTexture         	= "HUD_all_lascannon_icon"

MapScale            	= "0.0"
HealthTexture           = "HUD_kam_turret_icon"

GeometryName            = "rep_bldg_bandturret"
ExplosionName       = "uta1_bldg_turret_exp"
DestroyedGeometryName   = "rep_bldg_bandturret_chunk1"

MaxHealth           	= "3000.0"


BUILDINGSECTION         = "TURRET1"

ForceMode = 1

TurretNodeName          = "aimer_head"

PitchLimits             = "-40 15"
YawLimits           	= "-180 180"

PitchTurnFactor    	 = "0.0"

//FirstPerson           = "com\comviewf;com_1st_cockpit_viewfinder"
ThirdPersonFOV	    	= "65"

WeaponName           	= "uta_weap_turretcannon"
WeaponAmmo          	= "0"


MaxTurnSpeed            = "5.0"
MaxPitchSpeed           = "5.0"
PitchRate           		= "1.25"
TurnRate            		= "1.25"
PCMaxPitchSpeed         = "5.0"
PCMaxTurnSpeed          = "5.0"    
EyePointOffset          = "0.0 8.0 0.0"
TrackCenter							= "0.0 15.0 -15.0"
TrackOffset             = "0.0 0.0 -8.0"
TiltValue 					  	= "10"

TURRETSECTION       = "TURRET1"

  
AimerNodeName           = "aimer_barrels"
AimerPitchLimits        = "-30 10"
AimerYawLimits          = "-0 0"


BarrelNodeName          = "barrel1"
BarrelRecoil            = "0.5"
FirePointName           = "hp_fire1"

NextBarrel              = "-"

BarrelNodeName          = "barrel2"
BarrelRecoil            = "0.5"
FirePointName           = "hp_fire2"


TurretYawSound         = "turret_whir_yaw_lp"
TurretYawSoundPitch    = "0.7"
TurretPitchSound       = "turret_whir_pitch_lp"
TurretPitchSoundPitch   = "0.7"
TurretAmbientSound     = ""
TurretActivateSound    = "vehicle_equip"
TurretDeactivateSound  = "vehicle_equip"
TurretStartSound       = ""
TurretStopSound        = ""


FoleyFXGroup    = "metal_foley"

DamageStartPercent      = 50.0
DamageStopPercent       = 30.0
DamageEffect            = "com_sfx_vehiclespark"

DamageStartPercent      = 30.0
DamageStopPercent       = 0.0
DamageEffect            = "com_sfx_vehiclespark"
DamageAttachPoint       = "hp_spark_1"

//////  Chunks  //////////


//CHUNKSECTION        = "CHUNK1"
//ChunkGeometryName   = "rep_bldg_bandturret_chunk1"
//ChunkNodeName       = ""
//ChunkPhysics        = "STATIC"


CHUNKSECTION        = "CHUNK1"
ChunkGeometryName   = "rep_bldg_bandturret_chunk2"
ChunkNodeName       = ""
ChunkTerrainCollisions  = "6"
ChunkTerrainEffect  = "com_sfx_explosion_lg"
ChunkPhysics        = "FULL"
ChunkOmega      = "1.4 1.5 2.0"
ChunkBounciness     = 0.45
ChunkStickiness     = 0.25
ChunkSpeed      = "16.0"
ChunkUpFactor       = "14.00"
ChunkTrailEffect    = "com_sfx_chunktrail_sm"
What´s wrong?

Re: Auto Turret doesn´t work!

Posted: Mon Apr 20, 2009 1:23 pm
by KnightsFan
Did you assign it to a team? It's just like you do for CPs, that Team field in ZE.

Re: Auto Turret doesn´t work!

Posted: Mon Apr 20, 2009 1:30 pm
by FOOLIS
Yes, they are assigned for a team.

Re: Auto Turret doesn´t work!

Posted: Mon Apr 20, 2009 1:45 pm
by KnightsFan
Why do you have two of these?
Pilottype = "self"
PilotType = self

Re: Auto Turret doesn´t work!

Posted: Mon Apr 20, 2009 2:00 pm
by FOOLIS
Dunno, but it isn´t working even there´s only one of these lines in the odf.

Re: Auto Turret doesn´t work!

Posted: Mon Apr 20, 2009 2:12 pm
by KnightsFan
Which one did you try? Pilottype = "self" is all I've seen. Also, what turret is this?
I'm assuming "uta_weap_turretcannon" and "uta1_bldg_turret_exp" are customs that work fine? I don't seem to have them anywhere.

Re: Auto Turret doesn´t work!

Posted: Mon Apr 20, 2009 2:24 pm
by FragMe!
KnightsFan wrote:Which one did you try? Pilottype = "self" is all I've seen. Also, what turret is this?
I'm assuming "uta_weap_turretcannon" and "uta1_bldg_turret_exp" are customs that work fine? I don't seem to have them anywhere.
Those are in the UTA world folder, Speaking of which you did copy those files to your map right Foolis, just asking. And you did copy the .option file for the bandturret?