Auto Turret doesn´t work!

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
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Auto Turret doesn´t work!

Post 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?
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Auto Turret doesn´t work!

Post by KnightsFan »

Did you assign it to a team? It's just like you do for CPs, that Team field in ZE.
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Re: Auto Turret doesn´t work!

Post by FOOLIS »

Yes, they are assigned for a team.
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Auto Turret doesn´t work!

Post by KnightsFan »

Why do you have two of these?
Pilottype = "self"
PilotType = self
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Re: Auto Turret doesn´t work!

Post by FOOLIS »

Dunno, but it isn´t working even there´s only one of these lines in the odf.
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Auto Turret doesn´t work!

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Auto Turret doesn´t work!

Post 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?
Post Reply