Shooting while mounted
Posted: Wed Jul 23, 2014 11:47 am
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:
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]
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]