Left 4 Dead 2

Left 4 Dead 2

[V-Script] Empty Reload And Pickup Animations
 此主题已被置顶,因此可能具有重要性
NachosChipeados  [开发者] 11 月 20 日 下午 3:31
How to add support for this mod
Just add ACT_VM_RELOAD_EMPTY and ACT_VM_PICKUP sequences with their respective _LAYER sequences and thats about it. The hunting rifle already has all of them, so you don't need to add anything to it.

IMPORTANT

You need to place the new animations right below every single other sequence in the .qc file. If you don't, every person using your mod will have issues when playing playing online.

The source engine syncs the animation order of a model on the server AND client (you). When the game wants to play a viewmodel animation, it doesn't say "play any sequence with the activity ACT_VM_RELOAD. Doesn't matter which one idrc". Instead, it says "play sequence #12" and if sequence #12 on the client (you, or anyone else that has the mod installed) isn't the same as animation #12 on the server, you'll get broken animations (for example, playing the shove animation when drawing a weapon).

That's why it's so important to keep the sequence ordering the same AND to add new sequences right at the bottom. This is also why things like RNG reload anims don't work online, your game knows that the animation exists but the server doesn't.

Also, if someone hosts a server with an edited sequence order and someone that doesn't have that custom model joins, they'll also have those same issues. So thats fun

https://www.youtube.com/watch?v=ljl1jBEY3_A
最后由 NachosChipeados 编辑于; 11 月 20 日 下午 4:13