Change passengers's view field and position

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
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Change passengers's view field and position

Post by Executer94 »

As you can see the pilot's head is in the sides of the gunship, which I would like to change. At the same time I would like to place the field of view at the point the camera is in. I changed it during the game with the free camera tool.
Which lines do I have to change in the odf of my gunship?
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "commandflyer"
GeometryName = "rep_la_at_gunship.msh"

[Properties]
FLYERSECTION = "BODY"

ReserveOneForPlayer = "1"

VehicleType = "transport"
MapTexture = "gunship_icon"
HealthTexture = "HUD_rep_gunship_icon"

MapScale = 1.5
MapViewMin = 750
MapViewMax = 750

GeometryName = "rep_la_at_gunship"
AnimationName = "rep_fly_gunship"
FirstPerson = "REP\repgunsh;rep_1st_cockpit_gunship"
FirstPersonFOV = "60"
CockpitTension = "12"
ThirdPersonFOV = "55"

// PathFollower Attributes
PathFollowerClass = "rep"
PathFollowerBranchPaths = "5"
PathFollowerBranchMaxAngle = "45
PathFollowerMinBranchDist = "250.0"
PathFollowerBranchRange = "1000"

SpawnPointCount = "6"
SpawnPointLocation = "-6.0 -3.0 8.0 0"
SpawnPointLocation = "6.0 -3.0 8.0 0"
SpawnPointLocation = "-7.0 -3.0 0.0 0"
SpawnPointLocation = "7.0 -3.0 0.0 0"
SpawnPointLocation = "-6.0 -3.0 -8.0 0"
SpawnPointLocation = "6.0 -3.0 -8.0 0"
AllyCount = 65536
Radius = 0.0
ValueBleed = 10
Value_ATK_Alliance = 10
Value_ATK_CIS = 10
Value_ATK_Empire = 10
Value_ATK_Republic = 10
Value_ATK_Locals = 0
Value_DEF_Alliance = 0
Value_DEF_CIS = 0
Value_DEF_Empire = 0
Value_DEF_Republic = 0
Value_DEF_Locals = 0
HUDIndexDisplay = 0

CollisionScale = "2.5"
CollisionThreshold = "5.0"

CollisionInflict = "0.1"

MaxHealth = 2800.0
MaxShield = 3000.0
AddShield = 60

//HitLocation = "p_crithit 0"

TakeoffTime = 3.0
TakeoffSpeed = 6.0
LandingTime = 3.0
LandingSpeed = 3.5
TakeoffHeight = 1.3

PilotSkillRepairScale = 0.015

Acceleraton = 900.0
BoostSpeed = 250
MinSpeed = 65.0
MidSpeed = 120
MaxSpeed = 170.0
BoostAcceleration = 80.0

EnergyBar = "150"
EnergyAutoRestore = "12.5"
EnergyBoostDrain = "20"
EnergyTrickDrainSingleTap = "0"
EnergyTrickDrainDoubleTap = "0"


TrickRollSpeed = "0"
TrickFlipSpeed = "0"
TrickSideRollStrafeSpeed = "0"

FOVEffect3rd = 90
//

PitchRate = 1.0
PitchFilter = 6.0
PitchFilterDecel = 6.0
PitchBuildupMultiplier = 1.0
TurnRate = 0.75
TurnFilter = 6.0
TurnFilterDecel = 6.0
TurnBuildupMultiplier = 1.0

BankAngle = 0.8
BankFilter = 3.5
LevelFilter = 1.5
LevelFilterLanding = 5.0 // LevelFilter for landing
RollRate = 3.15

PCPitchRate = 15.0
PCSpinRate = 15.0
PCTurnRate = 25.0

EyePointOffset = "0.0 1.5 0.0"
TrackCenter = "0.0 2.25 -6.0"
TrackOffset = "0.0 2.0 6.0"

TiltValue = "5.0"

AimTension = "20.0"

MoveTensionX = "2.8"
MoveTensionY = "2.0 12.0"
MoveTensionZ = "4.25"

//

EyePointOffset = "0.0 0.0 10.0"
TrackCenter = "0.0 0.0 0.0"
TrackOffset = "0.0 0.0 0.0"
TiltValue = "5.0"

FOVEFFectMinCamOffset3rd = "0.0 8.0 20.0"
FOVEFFectMaxCamOffset3rd = "0.0 13.0 15.0"

AimTension = "30.0"



WEAPONSECTION = "1"
//Pilottype = "self"
WeaponName = "rep_weap_fly_gunship_cannon_weak"
WeaponAmmo = "0"

AimerNodeName = "front_gun_1"
AimerYawLimits = "-20.0 20.0"
AimerPitchLimits = "-20.0 20.0"
BarrelLength = "1.0"
FireOutsideLimits = "1"

NextAimer = "-"

AimerNodeName = "front_gun_2"
AimerYawLimits = "-20.0 20.0"
AimerPitchLimits = "-20.0 20.0"
BarrelLength = "1.0"
FireOutsideLimits = "1"

WEAPONSECTION = "2"

WeaponName = "rep_weap_fly_gunship_cannon_heavy"
WeaponAmmo = "0"

AimerNodeName = "front_gun_1"
AimerYawLimits = "-20.0 20.0"
AimerPitchLimits = "-20.0 20.0"
BarrelLength = "1.0"
FireOutsideLimits = "1"

NextAimer = "-"

AimerNodeName = "front_gun_2"
AimerYawLimits = "-20.0 20.0"
AimerPitchLimits = "-20.0 20.0"
BarrelLength = "1.0"
FireOutsideLimits = "1"

VehiclePosition = "common.vehiclepositions.pilot"

//********************************
//********** CO PILOT *********
//********************************
FLYERSECTION = "TURRET1"
//Pilottype = "self"
//FirstPerson = "rep\repsccam;rep_1st_cockpit_securitycam"
FirstPerson = "REP\repgunsh;rep_1st_cockpit_gunship"

PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75


PitchLimits = "-0 0"
YawLimits = "-0 0"
EyePointOffset = "0.0 10.0 0.0"
TrackCenter = "0.0 7.0 -10.0"
TrackOffset = "0.0 -1.0 20.0"
TiltValue = "7.0"

ForceMode = 1



WEAPONSECTION = "1"

WeaponName = "col_weap_fly_gun_missile"
WeaponAmmo = "0"

AimerNodeName = "hp_cannon_1"
AimerYawLimits = "-0.0 0.0"
AimerPitchLimits = "-0.0 0.0"
BarrelLength = "1.0"

NextAimer = "-"

AimerNodeName = "hp_cannon_2"
AimerYawLimits = "-0.0 0.0"
AimerPitchLimits = "-0.0 0.0"
BarrelLength = "1.0"




VehiclePosition = "common.vehiclepositions.copilot"


//********************************
//********** GUNNER *********
//********************************

FLYERSECTION = "TURRET2"
//Pilottype = "self"
FirstPerson = "rep\repsccam;rep_1st_cockpit_securitycam"
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75


PitchLimits = "-20 50"
YawLimits = "-89 89"
EyePointOffset = "0.0 10.0 0.0"
TrackCenter = "0.0 7.0 -10.0"
TrackOffset = "0.0 1.0 14.0"
TiltValue = "5.0"

WEAPONSECTION = "1"
WeaponName = "cis_weap_walk_spider_beam"
WeaponAmmo = "0"

AimerNodeName = "wing_turret_2"
AimerYawLimits = "-160.0 20.0"//"-160.0 -20.0"
AimerPitchLimits = "-80.0 80.0"
BarrelLength = "1.0"

//WEAPONSECTION = "2"
NextAimer = "-"

WeaponName = "cis_weap_walk_spider_beam"
WeaponAmmo = "0"

AimerNodeName = "wing_turret_1"
AimerYawLimits = "-20.0 160.0"//"20.0 160.0"
AimerPitchLimits = "-80.0 80.0"
BarrelLength = "1.0"

VehiclePosition = "common.vehiclepositions.copilot"




//********************************
//******** R BALL TURRET *******
//********************************

FLYERSECTION = "TURRET3"
//Pilottype = "self"
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75


FirstPerson = "REP\repguntr;rep_1st_cockpit_gunshipgnr"
YawLimits = "-115.0 0.0"
PitchLimits = "-30.0 70.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"


EyePointOffset = "0.0 0.3 0.25"
TrackOffset = "0.0 0.0 0.0"
TrackCenter = "0.0 1.2 -1.0"
ThirdPersonFOV = "55"
TiltValue = "0.0"
TurretNodeName = "ball_turret_2"
FirePointName = "hp_turret_right"


WeaponName = "ani_weap_spa_chaingun"
WeaponAmmo = "0"

BarrelLength = "0.0"

PilotPosition = "hp_gunner2"
PilotAnimation = "drive"
//IsPilotExposed = "0"

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




VehiclePosition = "common.vehiclepositions.rightturret"

//********************************
//******** L BALL TURRET *******
//********************************
FLYERSECTION = "TURRET4"
//Pilottype = "self"
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75


FirstPerson = "REP\repguntr;rep_1st_cockpit_gunshipgnr"
YawLimits = "0.0 115.0"
PitchLimits = "-30.0 70.0"

//YawLimits = "0.0 170.0"
//PitchLimits = "10.0 70.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"

//PitchTurnFactor = "1.0"
//YawTurnFactor = "1.0"

EyePointOffset = "0.0 0.3 0.25"
TrackOffset = "0.0 0.0 0.0"
TrackCenter = "0.0 1.2 -1.0"
ThirdPersonFOV = "55"
TiltValue = "0.0"
TurretNodeName = "ball_turret_1"
FireNodeName = "hp_turret_left"

WeaponName = "ani_weap_spa_chaingun"
WeaponAmmo = "0"

BarrelLength = "0.0"

PilotPosition = "hp_gunner1"
PilotAnimation = "drive"
//IsPilotExposed = "0"

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

////////////////////////////////
FLYERSECTION = "TURRET5"
////////////////////////////////
//PassengerSlots = "6"
//PassengerEyePoint = "hp_passenger1"

ForceMode = 1
ThirdPersonFOV = 59.5
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75

YawLimits = "-95 -60"
PitchLimits = "-10.0 20.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"

PitchTurnFactor = "1.0"
YawTurnFactor = "1.0"

EyePointOffset = "0.0 10.0 -3.0"
MountPos = "1.5 -0.75 1.75"
TrackCenter = "0.0 0.0 0.0"
TrackOffset = "0.0 0.0 0.0"

//ControlsUnit = "1"
PilotPosition = "hp_passenger1"
PilotAnimation = "standing"



VehiclePosition = "common.vehiclepositions.passenger"

///////////////////////////////////////////////////////////////

//*****************************
////////////////////////////////
FLYERSECTION = "TURRET6"
////////////////////////////////
//PassengerSlots = "6"
//PassengerEyePoint = "hp_passenger1"

ForceMode = 1
ThirdPersonFOV = 59.5
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75

YawLimits = "-95 -60"
PitchLimits = "-10.0 20.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"

PitchTurnFactor = "1.0"
YawTurnFactor = "1.0"

EyePointOffset = "0.0 10.0 -3.0"
MountPos = "1.5 -0.75 1.75"
TrackCenter = "0.0 0.0 0.0"
TrackOffset = "0.0 0.0 0.0"

//ControlsUnit = "1"
PilotPosition = "hp_passenger2"
PilotAnimation = "standing"



VehiclePosition = "common.vehiclepositions.passenger"

///////////////////////////////////////////////////////////////

//*****************************
////////////////////////////////
FLYERSECTION = "TURRET7"
////////////////////////////////
//PassengerSlots = "7"
//PassengerEyePoint = "hp_passenger1"

ForceMode = 1
ThirdPersonFOV = 59.5
PitchRate = 0.8
PitchFilter = 2.75
TurnRate = 1.3
TurnFilter = 2.75

YawLimits = "-95 -60"
PitchLimits = "-10.0 20.0"

PCPitchTurnFactor = "20.0"
PCYawTurnFactor = "20.0"

PitchTurnFactor = "1.0"
YawTurnFactor = "1.0"

EyePointOffset = "0.0 10.0 -3.0"
MountPos = "1.5 -0.75 1.75"
TrackCenter = "0.0 0.0 0.0"
TrackOffset = "0.0 0.0 0.0"

//ControlsUnit = "1"
PilotPosition = "hp_passenger3"
PilotAnimation = "standing"



VehiclePosition = "common.vehiclepositions.passenger"

///////////////////////////////////////////////////////////////




VehiclePosition = "common.vehiclepositions.leftturret"


CHUNKSECTION = "CHUNK1"
ChunkGeometryName = "gunship_chunk1"
ChunkNodeName = "Wing_gun_housing_2"
ChunkTerrainCollisions = "5"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 2.0 1.5"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "10.0"
ChunkUpFactor = "0.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"
ChunkGravity = "0.0 0.0 0.0"
ChunkVelocityFactor = "0.15"

CHUNKSECTION = "CHUNK2"
ChunkGeometryName = "gunship_chunk2"
ChunkNodeName = "main_backdoor_R"
ChunkTerrainCollisions = "4"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 2.5 2.0"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "8.0"
ChunkUpFactor = "0.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"
ChunkGravity = "0.0 0.0 0.0"
ChunkVelocityFactor = "0.15"

CHUNKSECTION = "CHUNK3"
ChunkGeometryName = "REP_LA_AT_Gunship_hulk"
ChunkNodeName = ""
ChunkTerrainCollisions = "0"
ChunkTerrainEffect = "com_sfx_explosion_lg"
ChunkTrailEffect = "com_sfx_chunktrail_sm"
ChunkPhysics = "FULL"
ChunkOmega = "1.0 1.0 1.0"
ChunkSpeed = "12.0"
ChunkGravity = "0.0 0.0 0.0"
ChunkVelocityFactor = "0.15"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke1"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke2"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke3"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke4"

ContrailEffect = "com_sfx_contrail"
ContrailAttachPoint = "dummyroot"
ContrailAttachOffset = "-10.0 -0.75 -4.7162"
ContrailEffectMinScale = "0.0"
ContrailEffectMaxScale = "0.8"

ContrailEffect = "com_sfx_contrail"
ContrailAttachPoint = "dummyroot"
ContrailAttachOffset = "10.0 -0.75 -4.7162"
ContrailEffectMinScale = "0.0"
ContrailEffectMaxScale = "0.8"

//////////////////////////
////DAMAGE///////////
///////////////
// SPARK

DamageStartPercent = "85"
DamageStopPercent = "25"
DamageEffect = "com_sfx_vehiclespark_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_1"

DamageStartPercent = "75"
DamageStopPercent = "15"
DamageEffect = "com_sfx_vehiclespark_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_2"

DamageStartPercent = "65"
DamageStopPercent = "5"
DamageEffect = "com_sfx_vehiclespark_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_3"

// SMOKE

DamageStartPercent = "75"
DamageStopPercent = "35"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_1"

DamageStartPercent = "65"
DamageStopPercent = "25"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_2"

DamageStartPercent = "55"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_3"

// FLAME

DamageStartPercent = "35"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehicleflame_sc"
DamageEffectScale = "0.75"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_1"

DamageStartPercent = "25"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehicleflame_sc"
DamageEffectScale = "0.75"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_2"



//ExplosionCritical = "rep_fly_gunship_exp"
ExplosionDestruct = "rep_fly_gunship_exp"


VOUnitType = 131
EngineSound = "rep_fly_gunship_engine_parameterized"
TakeoffSound = "rep_fly_gunship_take_off"
LandSound = "rep_fly_gunship_land"
HurtSound = "imp_weap_ord_exp_lg"
DeathSound = "imp_weap_ord_exp_lg"
VehicleCollisionSound = "com_veh_collision_lg"
TurnOnSound = "rep_fly_gunship_turn_on"
TurnOffSound = "rep_fly_gunship_turn_off"
TurningOffSound = "rep_fly_gunship_airbrakes_off"
TurnOffTime = "1.5"
CISMusic = "cis_vehicle"
RepMusic = "rep_vehicle"
MusicSpeed = ".30"
MusicDelay = "3.0"
FoleyFXGroup = "metal_foley"
Cockpit1stPersonSound = "rep_inf_com_space_chatter"
Cockpit3rdPersonSound = "rep_inf_com_space_chatter"
BoostSound = "rep_fly_gunship_shift_up_property 0.11 1"
BoostSound = "rep_fly_gunship_shift_up_property 0.53 1"
BoostSound = "rep_fly_gunship_shift_up_high_property 0.66 1"
BoostSound = "rep_fly_gunship_shift_down_property 0.17 0"
BoostSound = "rep_fly_gunship_shift_down_property 0.9 0"
TrickSound = "rep_fly_gunship_roll" //Played when the flyer performs a roll
FlipSound = "rep_fly_gunship_flip" //Played when the flyer performs a flip
ProximityMinDist = "25" // Distance from target where proximity parameter of engine is 0.
ProximityMaxDist = "100" // Distance from target where proximity parameter of engine is 1.
Hidden/Spoiler:
Image
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: Change passengers's view field and position

Post by Cleb »

Code: Select all

EyePointOffset = "0.0 10.0 -3.0"
Possibly this for the camera view? I'm not sure, its been a little while since I last modded but try that. :wink:
I don't know how to move the person but Im guessing you have to move the hard point the person is attached to or somehow edit the standing stance so he's leaning back.
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Change passengers's view field and position

Post by Executer94 »

I can shift the point of view with that, but how can I turn it?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Change passengers's view field and position

Post by Marth8880 »

I believe you'd want to adjust the TrackCenter values for that. Remember, think of it as a huge top-down grid when setting these parameters. :o
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Change passengers's view field and position

Post by DarthD.U.C.K. »

the cameras will alway slook forward by default, you cant change that.
trackcenter offsets the camera from the turretnode, here is an explanation of all turret and camera commands
Post Reply