Changing viewpoint height and disabling sprint

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

Changing viewpoint height and disabling sprint

Post by MileHighGuy »

i made a sbd which was scaled up by 8 and its :runaway: huge,but my viewpoint was in between his legs so i added this to his odf
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "cis_inf_default_rifleman"


[Properties]
UnitType = "trooper"

GeometryName = "cis_inf_sbdroid"
GeometryLowRes = "cis_inf_sbdroid_low1"
SkeletonName = "sbdroid"
SkeletonLowRes = "sbdroidlz"
SkeletonRootScale = "8.0"
SkeletonRootScaleLowRes = "8.0"


FirstPerson = "CIS\cissbdrd;cis_1st_sbdroid"

CollisionHeadOffset = "0.0 -0.2 0.0"

CAMERASECTION = "STAND"
EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.0 0.0 4"
TiltValue = "10.0"

CAMERASECTION = "STANDZOOM"
EyePointOffset = "0.0 14.4 0.0"
TrackCenter = "0.0 14.4 0.0
TrackOffset = "0.4 0.05 2.8"
TiltValue = "3.5"

CAMERASECTION = "CROUCH"
EyePointOffset = "0.0 10.4 0.0"
TrackCenter = "0.0 10.4 0.0
TrackOffset = "0.0 0.15 3.5"
TiltValue = "10.0"
CameraBlendTime = "0.75"

CAMERASECTION = "CROUCHZOOM"
EyePointOffset = "0.0 10.4 0.0"
TrackCenter = "0.0 10.4 0.0
TrackOffset = "0.4 0.2 2.8"
TiltValue = "3.5"

CAMERASECTION = "SPRINT"
EyePointOffset = "0.0 14.4 0.0"
TrackCenter = "0.0 14.4 0.0
TrackOffset = "0.0 0.0 5.0"
TiltValue = "10.0"
CameraBlendTime = "0.75"


but when i walked the viewpoint was still in betwen his legs but when i crouched and sprinted my view was fine
any ideas on how to fix the viewpoint?
Edit: omg i failed to notice i forgot to edit his walking camera section
view is fine now

also i need to disable his sprint because the model goes back to normal when sprinting, how is this achieved? (unless i can rename his walking anim to sprint then i dont have to)
Post Reply