Changing the viewmodel bob: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(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....")
 
No edit summary
 
Line 1: Line 1:
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.
{{stub}}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.




Line 9: Line 9:


To do: add an example.
To do: add an example.
[[Category:tutorials]]

Latest revision as of 17:09, 18 August 2023

Stub

This article or section is a stub. You can help by expanding it.

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.