Quote:
Originally Posted by Silvers
Why would you even want this? If you don't want the crawling anim delete the plugin and use the games cvar only to enable. No.
|
EDIT 2: I'm a dummy, but you also acted a bit harsh, so I guess it evens out. The only good thing about my version of crawling so far is the firstperson view without the animated prop blocking the way, so you could probably check it out.
Or not.
Original comment:
Ok then, did the clones/coach cvar by myself.
I suggested them because I figured I could reuse and re-edit DeathChaos25's animation fix to do the crawling animations for everyone else except Coach, but I realized it was way too lousy of a suggestion for the main plugin.
EDIT: Alright scratch that, the idea kinda didn't work. They did the animation, but they remained fixed in one direction until they stop crawling, which looked unnatural.
The attached files here are a modified version of the plugin, with
l4d2_crawling_clones and
l4d2_crawling_coach as leftovers, as well as preventing the crawling anim from transmitting to the first-person view of the crawling client if
l4d2_crawling_view is set to 0. Feel free to remove the former 2 convars and their functionality from the code.
This version requires SDKHooks, which is already bundled with Sourcemod 1.5+. If you have an older version, (attached smx is compiled with 1.10) you need to compile the source with your own compile.exe in
scripting. And if your Sourcemod doesn't have SDKHooks,
download it here.