Left 4 Dead 2

Left 4 Dead 2

1,970 个评价
Viewmodel Sway (Motion)
5
2
3
3
5
4
2
3
3
3
   
奖励
收藏
已收藏
取消收藏
Game Content: Weapons, Items, Miscellaneous, Models
Weapons: Melee, Throwable
文件大小
发表于
更新日期
26.213 MB
2023 年 12 月 30 日 上午 9:26
2024 年 1 月 5 日 上午 4:18
5 项改动说明 ( 查看 )

订阅以下载
Viewmodel Sway (Motion)

描述
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![www.dropbox.com]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.: not a single joke about beta yet???
P.P.S.: Oh, MAN! This is just like Terror-Strike Insurgency, amirite?
热门讨论 查看全部(2)
1
10 月 16 日 上午 2:44
make a min mode version
ModestShoducks
0
9 月 7 日 下午 7:08
置顶: Proper sway plugin got released recently
XENORT
191 条留言
CBOLλ 10 月 21 日 下午 5:11 
@CJ7MASTER he stated in the descriptions that it only works with vanilla weapons
CaesarInculta 10 月 6 日 下午 6:53 
wish it worked with rng skins smh
CJ7MASTER 9 月 12 日 下午 9:53 
idk if it is a bug but it only works with the original weapons not modded weapons can you fix that?
XENORT  [作者] 9 月 7 日 下午 7:11 
thought I'll let anyone interested in this mod know: a better alternative, accurate CSS sway got released recently.
available here: l4d2-viewmodel-lag-plugin [github.com]
the downsides:
1. enabling this plugin prevents you from connecting to VAC-secured servers (not ever going to change, that's just how external plugins are)
2. lookposes and run animations are broken (will be fixed soon)
It's a client-side plugin, meaning you can play singleplayer, join your friend's game, join community/non-VAC servers and still be able to see sway. It also won't affect anyone in your lobby if you're the host, other players have to install it on their side to see it.
the upsides compared to this mod/jigglebone method:
1. works with any reanimations/remodels without manual adaption
2. configurable, sway strength and delay are adjustable
LazyError[Real] 8 月 15 日 上午 2:05 
''half 4 dead 2''
Theodore Roosevelt 8 月 2 日 下午 2:05 
Puro, i have same problem!
уроненный ребено 8 月 2 日 上午 11:33 
the swaying is too intense, it doesnt even sway when i move, only when i move my mouse around
BlueCup43 7 月 18 日 下午 9:11 
finally sway but like damn
nomad 6 月 28 日 下午 8:47 
Can you please provide a guide to convert weapons to have sway?
Theodore Roosevelt 6 月 8 日 上午 11:02 
In my game this mod is too sharp and not smooth at all, which breaks the very meaning, I am sure that it should not be like this, please tell me what the problem is?