Configurable Head Bobbing Script

Some of you have mentioned the bob not looking natural, I encourage you to play with the constants, especially frequency and amplitude, to get the style and intensity of bob you like.

Here is an example of a bob with the following frequency and amplitude constants:

local BOB_FREQUENCY_Y = 4
local BOB_FREQUENCY_X = 2
local BOB_AMPLITUDE_X = 0.6
local BOB_AMPLITUDE_Y = 0.4

It gives an infinity shaped pattern that I like quite a lot. Since my amplitudes are fairly high, I would see this being used more for story/horror game type scenarios where camera bob doesn’t interfere with anything like aiming.

For a more tactical game like an fps, I would reduce the amplitude of the bob, or use the bob on the viewmodel instead of the camera, in order to reduce the potency of the camera bob.

Thank you for the support and your concerns. :slight_smile:

EDIT: I will update my post to use these adjusted settings as they seem to be better than the original

6 Likes