loki79uk / FS22_CabView

Mod for FS22. Please download latest release below.
19 stars 4 forks source link

[Request] LeanForward as default #11

Open thekalbb opened 5 months ago

thekalbb commented 5 months ago

Would you be able to make an option to have Lean Forward as the default?

I like sitting closer, so i changed the OnEnter Lean to be true. But if i use this on multiplayer the scripts no longer match, and people cannot join.

loki79uk commented 5 months ago

How would it work though? Would you always be permanently leaning forward, or press a key to lean back? Maybe a better setting for you would just be to change the in cab field of view to a higher zoom?

thekalbb commented 5 months ago

Hey, thanks for replying, love the mod!

All i do is change:

function CabView:onEnterVehicle(isControlling, playerStyle, farmId) if isControlling then local spec = self[CabView.specName] spec.resetView = true spec.leanButtonPressed = false spec.lean = 0 end end

to spec.leanButtonPressed = true

So just flipping what the default is. So the next press on zoom button, zooms out.

I dont know about the in cab field of view zoom, where do i set that? Is that a default game setting? I dont want my normal fov changed

loki79uk commented 5 months ago

So you could try adding a multiplier to the FOV from the settings. Maybe something like 0.8*settingsFovY here: https://github.com/loki79uk/FS22_CabView/blob/974cc1f1649e90c8eb5f2f4f4ecab6c5126afaca/CabView.lua#L72C37-L72C49

This was added because some large vehicles like harvesters have an extra wide FOV by default. Setting it here makes it consistent with your setting in the game menu for all vehicles. If you change it to scale by a multiple it would only affect an "indoor camera". I don't know what it would look like though, you will have to experiment.

thekalbb commented 5 months ago

I understand, but it leads to the same problem.

If i change anything in the script, the people who join my multiplayer - the game sees as having another script - so they cant join.

loki79uk commented 5 months ago

But if that works to fix your problem then it is easier for me to add a multiplier, and I think it makes more sense than to invert the leaning.

thekalbb commented 5 months ago

i tried adding the multiplier, dosent look like it changes anything? Tried 0.8 and 0.1 to see if any diffrence. (not sure if it should work when zoomed out or in, so added pic of both)

0.8: fs-default 0.1: fs-0-1-nozoom

0.8: 0-8 0.1: fs-0-1

Would it be possible for you to add a changable bool as an option menuitem, instead of the current spec.leanButtonPressed = false bool? That would sort it for sure.