Change FoV?

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
deagle
Private Second Class
Posts: 60
Joined: Wed Mar 10, 2010 4:03 pm

Change FoV?

Post by deagle »

hi,
since I'm pretty new in modding swbf2 this newbie question; how do I edit the fov in swbf2? I already tried hex editing the all, rep, cis and imp.lvl and change all values for the thirdpersonfov from 65 to 120 but it doesn't seem to affect the game in any way.

can somebody help?
thanks in advance

-mark <-No signatures please. -Staff
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: change FoV

Post by THEWULFMAN »

I'm not sure. I know it can be done with the Fake Console, so it is possible. Hmm, I'll look into this.


This isn't a newbie question either by the way.
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 FoV

Post by Marth8880 »

Are you looking to do this via modding or real-time in-game? If the former, the ThirdPersonFOV/FirstPersonFOV settings are in com_inf_default.odf. If the latter, you can use FakeConsole's Lua console to inject a SetClassProperty function, though I'm not entirely sure that that function works under Init as I've never tried it myself, but I'd say it's worth a shot. If you do try it, you'd type this into the Lua console:

Code: Select all

SetClassProperty("com_inf_default", "ThirdPersonFOV", "60")
You would obviously change 60 to something else, but you'll figure it out.
deagle
Private Second Class
Posts: 60
Joined: Wed Mar 10, 2010 4:03 pm

Re: Change FoV?

Post by deagle »

Hi,

thanks for your reply. The 2nd way didn't worked, how do I edit the com_inf_default? I searched on how to edit shipped sides in swbf2 but didn't find anything :/


thanks in advance, mark
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: Change FoV?

Post by Tears2Roses »

com_inf_default is an ODF located in data_ABC/common/odf's. Im guessing you would want to edit these lines
Hidden/Spoiler:
FirstPersonFOV = "70"
ThirdPersonFOV = "65"

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

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

CAMERASECTION = "CROUCH"
EyePointOffset = "0.0 1.3 0.0"
TrackCenter = "0.0 1.3 0.0
TrackOffset = "0.0 0.15 3.0"
TiltValue = "10.0"
CameraBlendTime = "0.75"

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

CAMERASECTION = "PRONE"
EyePointOffset = "0.0 0.5 0.0"
TrackCenter = "0.0 0.5 0.0"
TrackOffset = "0.0 0.0 3.0"
TiltValue = "5.0"
CameraBlendTime = "1.0"

CAMERASECTION = "PRONEZOOM"
EyePointOffset = "0.0 0.5 0.0"
TrackCenter = "0.0 0.5 0.0"
TrackOffset = "0.4 0.2 2.8"
TiltValue = "3.5"

CAMERASECTION = "SPRINT"
EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.0 0.0 4.0"
TiltValue = "10.0"
CameraBlendTime = "0.75"
which are right at the bottom. you would need to make an Ingame.lvl Here is what you would put in your ingame.req

Code: Select all

ucft
{
    REQN
    {
          "class"
          "com_inf_default"
     }
}

This should work. If not, let us know.
Post Reply