Turret Weapon Problem

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
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Turret Weapon Problem

Post by Sky_216 »

Turret weapons

Okay, problem is that I've given several of the vehicles turrets a second weapon. However, human players can't fire them with any button, even though AIs can. What am I doing wrong.

Here's the script for the tiebomber bombardier
Hidden/Spoiler:
FLYERSECTION = "TURRET1"
VehiclePosition = "common.vehiclepositions.copilot"
ForceMode = "1"
FirstPersonFOV = "48"
PCPitchRate = 8.0
TurnRate = 2.5

EyePointOffset = "0.0 3.3 4.0"
MountPos = "0.0 0.0 0.0"

TrackCenter = "0.0 0.0 0.0"
TrackOffset = "0.0 0.0 20.0"

TiltValue = "-10.0"

TurretNodeName ="camera_node"

PitchLimits = "0 90"
YawLimits = "-90 90"

WEAPONSECTION = "1"
WeaponName ="imp_weap_fly_tiebomber_bomb"
WeaponAmmo = "20"

AimerNodeName = "bomb_bay"
AimerPitchLimts = "0 90"
AimerYawLimts = "-90 90"
FirePointName = "hp_fire_04"

WEAPONSECTION = "2"
WeaponName ="imp_weap_fly_tiefighter_ptorpedo"
WeaponAmmo = "20"

AimerNodeName = "hp_fire_03"
AimerYawLimts = "-90 90"
AimerPitchLimts = "-90 90"
And here's the Imperial Tank Turret
Hidden/Spoiler:
FLYERSECTION = "TURRET1"

PilotPosition = "hp_active"
Pilot9Pose = "minigun_9pose"
VehiclePosition = "common.vehiclepositions.gunner"

PitchLimits = "-40.0 15.0"
YawLimits = "-180.0 180.0"
TurnRate = 1.8
TurnFilter = 10.0
PitchRate = 0.5
PitchFilter = 15.0

PitchTurnFactor = "0.0"

TurretNodeName ="turret_y"
AimerNodeName = "turret_x"
AimerPitchLimits = "-10.0 90.0"
AimerYawLimits = "0.0 0.0"

BarrelNodeName = "turret_barrel1"
BarrelRecoil = 0.25
FirePointName = "hp_gun_1"

EyePointOffset = "0.0 0.5 3.0"
TrackCenter = "0.0 1.0 -1.0"
TrackOffset = "0.0 0.0 2.0"
TiltValue = "3.0"

ForceMode = 1

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 = ""

WEAPONSECTION = 1
WeaponName = "imp_weap_hover_fightertank_cannon"
WeaponAmmo = 0

WEAPONSECTION = 2
WeaponName = "imp_weap_hover_fightertank_laser"
WeaponAmmo = 0
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Turret Weapon Problem

Post by Maveritchell »

Vehicles can only have one weapon per unit slot. There's no keymap set up that includes both a secondary fire and a position swap button.
Post Reply