Head Bobbing

I’m adding headbobbing to my gamemode. Any idea how I should do that?

Use the CalcView gamemode function and move the origin with a sine wave.

[editline]06:05PM[/editline]

**[Gamemode.CalcView

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.CalcView)**
**[Math.sin

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Math.sin)**

Thanks for the quick reply!

steal it from gmdm