Source-checkedWeapons, items & crafting

Viewmodel Sway

by XENORT · for Left 4 Dead 2

Short description: This mod makes your viewmodel less static by adding sway via jigglebones for ALL vanilla firearms, melees, and items (meaning, it doesn't work with reanimations or remodels due to…

76KDownloads
3 yr agoLast updated
Steam WorkshopSource

About Viewmodel Sway

From Steam Workshop

Short description: This mod makes your viewmodel less static by adding sway via jigglebones for ALL vanilla firearms, melees, and items (meaning, it doesn't work with reanimations or remodels due to…

Short description:

This mod makes your viewmodel less static by adding sway via jigglebones for ALL vanilla firearms, melees, and items (meaning, it doesn't work with reanimations or remodels due to its nature). It also works online!

Full description:

Howdy, everyone! I reckon some of you might've seen a similar mod for Team Fortress 2 a while back (like, 8 years ago?) and wondered "why hasn't this been done for Left 4 Dead 2?" The answer is: inverse kinematics (a.k.a., IK chain), which TF2 didn't use.

For those that are unaware, inverse kinematics ensure that your character's arms stay properly connected to the weapon, preventing any madness when all the "blending/layering" magic happens (e.g., looking up/down, walking, reloading, all happening at the same time).

Obvious question, what do the inverse kinematics have to do with anything? Apparently, using the IK chain in the viewmodel's .qc causes jigglebones affected by it to be completely ignored upon compilation (a safety measure most likely)... If you couldn't understand a single word: the jigglebones that do their work to display our fake sway are not used in-game anymore, which renders the whole mod unusable. The only way to avoid this is by removing the IKs entirely, but that will break animation blending for the viewmodels. Quite a puzzling situation, isn't it?

What should do we do? After some pondering I came up with two possible solutions: disable fancy blending (it's like pre-TLS days all over again) or manually simplify each problematic animation to eliminate the need for the inverse kinematics. I opted for the latter approach, which wasn't an easy task, and here's the result.

Features:

– Natural, "physically-based" swaying for all viewmodels. Affects your flashlight too! – Works on official and on local/dedicated servers. – Jigglebones won't bug out no matter how hard you jerk your mouse around (thank L4D2's Sorse engine branch). – Fully compatible with retextures and survivor mods. Not compatible with remodels and reanimations (since the jigglebone needs to be added per item/weapon. Sorry, not possible to do any other way as of now).

Notes:

– If a custom campaign has a custom melee weapon that uses existing original melee weapon animations (as $includemodel), it won't appear on your screen. – Default view model FOV (51) is recommended.

We have the SOURCE FILES here!You can use them however you like, just don't forget to provide proper credits where it's due.

Credits:

XENORT – decompiling/compiling, adding and setting up jigglebones, editing animations, adjusting .qc's Valve/TLS Team/Turtle Rock Studios – models, original animation data

Report if you have any floating arms or some other scary stuff happening. All in all, this mod was a wild journey to get done. Won't take your time any longer, hope you enjoy!

P.S.: [spoiler]not a single joke about beta yet???[/spoiler] P.P.S.: [spoiler]Oh, MAN! This is just like Terror-Strike Insurgency, amirite?[/spoiler]

Highlights

From source data

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 3 yr ago.

Viewmodel Sway on Nxeon

From our catalogue
One-click install
Supported on Nxeon Left 4 Dead 2 servers. We download it from Steam Workshop, place it, and restart the server.
Server load
light
Latest build
2024-01-05, released 2024-01-05

Game versions by loader

LoaderGame versionsNewest
Workshop

From 1 recorded build of Viewmodel Sway.

What kind of mod it is

From the catalog
Listed on Steam Workshop as “Workshop”

Weapons, items & crafting

New weapons, gear, items and the recipes to make them.

Compatibility

Game
Left 4 Dead 2

Verified at the source

  • ✓Steam WorkshopOfficial listing, checked 2026-11-01Open ↗
  • ✓AuthorXENORT, as published on Steam Workshop
  • ✓LicenseNot published by the sourceFree

Viewmodel Sway, answered

Generated from the mod’s own source data.

Is it free?

Yes. Viewmodel Sway is free to download from Steam Workshop.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Viewmodel Sway on a Left 4 Dead 2 server.

Free to download from Steam Workshop.