Changing the viewmodel bob

From Valve Developer Community
Revision as of 07:25, 31 May 2022 by Tuxxego (talk | contribs) (Created page with "Viewmodel bob is the "movement" of your weapon whenever the player walks, runs, or moves. It's not hard to change it and all it requires is changing some values in one file....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Viewmodel bob is the "movement" of your weapon whenever the player walks, runs, or moves. It's not hard to change it and all it requires is changing some values in one file.


basehlcombatweapon_shared.cpp

Go to this file and scroll down until you find "AddViewModelBob". You should see values for LaternalBob, Vertical bob, and "Z bob". Change those to whatever and compile, your weapon should have different viewmodel bob.


To do: add an example.