viewmodel-settings

command
v5.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 5 Imported by: 0

README

Player Viewmodel Settings

This example shows how to use the library to extract player viewmodel settings from CS2 demos. Viewmodel settings include the viewmodel offset (X, Y, Z) and field of view.

Running the example

go run viewmodel_settings.go -demo /path/to/cs2-demo.dem

Sample output
Player viewmodels:
degster: Viewmodel Offset=(2.5, 0.0, -1.5), FOV=60.0
kyxsan: Viewmodel Offset=(1.0, 1.0, -1.0), FOV=60.0
NiKo: Viewmodel Offset=(-1.0, 1.5, -2.0), FOV=60.0
SOMEBODY: Viewmodel Offset=(2.5, 2.0, -2.0), FOV=60.0
Summer: Viewmodel Offset=(2.5, 0.0, -1.5), FOV=60.0
L1haNg: Viewmodel Offset=(2.5, 0.0, -1.5), FOV=60.0
ChildKing: Viewmodel Offset=(2.5, 1.0, -1.5), FOV=60.0
TeSeS: Viewmodel Offset=(2.5, 0.0, -1.5), FOV=60.0
Magisk: Viewmodel Offset=(2.5, 0.0, -1.5), FOV=60.0
kaze: Viewmodel Offset=(2.5, 0.0, -1.5), FOV=60.0

Note: Viewmodel settings are only available in CS2 demos. CS:GO demos will show zero values.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL