Frictional Games Forum (read-only)
How can I remove view bobbing? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - SOMA (https://www.frictionalgames.com/forum/forum-74.html)
+--- Thread: How can I remove view bobbing? (/thread-53289.html)



How can I remove view bobbing? - tomcat3000 - 11-22-2016

I have the GOG Version of SOMA and I want to remove the head bobbing / camera swaying while walking.

In Amnesia: A Machine for Pigs you could edit some lines in the game.cfg file:
CrouchBobMax = "0.00 0.00"
WalkBobMax = "0.00 0.00"
RunBobMax = "0.00 0.00"

How is this done in SOMA?
These Variables are not in the cfg and adding them have no effect.


RE: How can I remove view bobbing? - Mudbill - 11-22-2016

Try editing this section of /scripts/player/MoveState_Normal.hps:

PHP Code:
////////////////////////////////////////
// Head Bob
cVector2f gvCrouchBobMax = cVector2f(0.06, 0.04);
cVector2f gvWalkBobMax = cVector2f(0.03, 0.03);
cVector2f gvRunBobMax = cVector2f(0.05, 0.06);
cVector2f gvCrawlBobMax = cVector2f(0.09, 0.03);
cVector2f gvEnergyBobSize = cVector2f(0.1f,0.2f);
            
float gfCrouchMinBobSpeed = 0.2;
float gfCrouchMaxBobSpeed = 1.2;
    
float gfWalkMinBobSpeed = 0.4;
float gfWalkMaxBobSpeed = 1.8;
    
float gfRunMinBobSpeed = 0.5;
float gfRunMaxBobSpeed = 2.5;

float gfCrawlMinBobSpeed = 0.2;
float gfCrawlMaxBobSpeed = 1.0; 

I imagine setting the first 5 lines to using (0.00, 0.00) should do it.


RE: How can I remove view bobbing? - tomcat3000 - 11-22-2016

(11-22-2016, 08:11 PM)Mudbill Wrote: Try editing this section of /scripts/player/MoveState_Normal.hps:

I imagine setting the first 5 lines to using (0.00, 0.00) should do it.

Perfect!
Thank you very much.