Shooting while mounted

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
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Shooting while mounted

Post by MileHighGuy »

I'm trying to make it so I can shoot with the unit's gun while riding a tauntaun.

I'm following this tutorial:

http://www.gametoast.com/viewtopic.php?f=27&t=26809

I cant get it to work, the unit holds his gun, and goes into alert stance when you look at an enemy, but can't fire. Could someone with more knowledge of vehicles help me?

Tauntaun odf:
Hidden/Spoiler:
[code][GameObjectClass]
ClassLabel = "walker"
GeometryName = "all_walk_tauntaun.msh"
GeometryScale = 1.0

[Properties]
WALKERSECTION = "BODY"
VehicleType = "scout"
Label = "Tauntaun"
MapTexture = "tauntaun_kaadu_icon"
HealthTexture = "HUD_all_tauntaun_icon"
//ForceMode = "1"
MapScale = "1.0"

CollisionScale = "0.5 0 0"
//CollisionThreshold = "20.5 2.5 10.0",

CollisionInflict = "0"

GeometryName = "all_walk_tauntaun"
AnimationName = "all_walk_tauntaun"
//FirstPerson = "all\alltaun;all_1st_cockpit_tauntaun"

MaxHealth = "400.0"
HealthType = "animal"
//HitLocation = "p_crithit 0"

Acceleraton = "2.4"

MaxSpeed = "20.0"
MaxStrafeSpeed = "2.5"
MaxTurnSpeed = "2.0"
BoostSpeed = "30.0"
//JumpHeight = "1.2"
//JumpForwardSpeedBoost = "1.5"
//JumpMinSpeed = "14.0"

StoppedTurnSpeed = "0.5"
ForwardTurnSpeed = "0.8"
BoostTurnSpeed = "0.3"
TurnThreshold = "1.0"

SteerAtYawLimit = "0" //"1" changed for mounted shooting
SteerAtStrafeLimit = "0"
CorrectAimForSteering = "1"
SteerTowardAimFactor = "0.0"
ReverseBackwardSteering = "1" //steer in reverse like a car - ThrustAngleToStrafe works more intuitively this way
ThrustAngleToStrafe = "87" //should match yaw limit or 0.0
ThrustAngleToTurn = "88" //thrust angle to reach full forward turn speed
ThrustAngleToStop = "89" //thrust angle to turn in place

//old values
//YawLimits = "-90 90"
//PitchLimits = "-35 40"

//for mounted shooting
YawLimits = "-179 90"
PitchLimits = "-35.0 35.0"
//for mounted shooting
ControlsUnit = "1"

EnergyBar = "100.0"
EnergyOverheat = "20.0"
EnergyAutoRestore = "20.0"
EnergyBoostDrain = "10.0"
EnergyCostJump = "20.0"

PrimaryWeapon = ""
SecondaryWeapon = ""

AISizeType = "SMALL"
NoCombatInterrupt = 1
AIUseHoverPhysics = 1

StompDecal = "decal_tauntaun_footprint"
StompDecalSize = "0.38"

NoDeathExplosions = 1

EyePointOffset = "0.0 2.5 0.0"
TrakCenter = "0.0 2.5 0.0"
TrackOffset = "0.0 1.0 12.0"

TEMP_Type = "2"

AnimatedPilotPosition = "bone_root"
PilotAnimation = "ride"

//for mounted shooting
PilotPosition = "hp_active"

VehicleCollision = "p_collision"
SoldierCollision = "p_torso"
TerrainCollision = "p_collision"
TerrainCollision = "p_l_foot"
TerrainCollision = "p_r_foot"
BuildingCollision = "p_collision"
BuildingCollision = "p_collision1"
OrdnanceCollision = "p_torso"
OrdnanceCollision = "p_l_foot"
OrdnanceCollision = "p_r_foot"
OrdnanceCollision = "p_neck"
OrdnanceCollision = "p_tail"

LegPairCount = "1"

WalkerLegPair = "LEGS"

LegBoneLeft = "bone_l_thigh"
LegBoneRight = "bone_r_thigh"

LegBoneTopLeft = "bone_l_thigh"
LegBoneTopRight = "bone_r_thigh"

TerrainLeft = "p_l_foot"
TerrainRight = "p_r_foot"

FootBoneLeft = "bone_collision"
FootBoneRight = "bone_collision1"

IgnorableCollsion = "p_l_foot"
IgnorableCollsion = "p_r_foot"

DropShadowSize = "1.8"

StompThreshold = "0.5"
FootStepSound0 = "tauntaunstepleft"
FootStepSound1 = "tauntaunstepright"
HydraulicSound = ""
HydraulicSoundHeight = ""
HurtSound = "tauntaunhurt"
DeathSound = "tauntaundie"
TurnOnSound = "tauntaunstart"
TurnOffSound = "tauntaunstop"
MusicSpeed = "0.15"
MusicDelay = "3.0"

VOUnitType = 12


//WEAPONSECTION = 1
//
//WeaponName = "com_weap_null"
//WeaponAmmo = "0"[/code]
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: Shooting while mounted

Post by Lorul1 »

Sorry for the bump. But I have the same question, so intead of making a new post im just going to bump this one.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Shooting while mounted

Post by AceMastermind »

The guide DarthD.U.C.K posted was from a passenger standpoint, it might not work properly from the pilot position. All I can say is keep trying different things until you get results.
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: Shooting while mounted

Post by Lorul1 »

ok thank you
Post Reply