Hi i been searching for a way to add the crawling anim directly, this is how far i came,
however the client crawling can see the crawl anim but the other clients can just see sliding not sure how to go from here.
Maybe someone else has a better way to work on it.
You could use the old Dynamic Hooks Survivor Animation Fix pack plugin I made a while back as a base, just grab the gamedata if it hasn't broken that is), since the plugin hijacks the m_SetSequence function meaning you can actually force the animation of your choosing, however this poses the problem that the survivor's model orientation will not match the view orientation with the crawl animations, dunno how to fix that.
Here's an example I made, a long time ago, you need to have Dynamic Hooks for this to work obv, and the gamedata from the linked plugin, also note that since this was written a long time ago it was written on sm 1.7 I believe? So I don't know how much the current compiler will like this;
Here's a video example from before the Dynamic Hooks implementation (hence the survivor "falling" back down after the animation, since instead of hijacking m_nSetSequence I was freezing it), but the premise is the same, the survivor itself is playing the animation.
Ahhh thanks i saw this a long time ago thought about using it however by the looks of it your using the animation layering not the primary layer, maybe ill have a playaround with it when i get back in to coding.
I use DeathChaos25's recently posted version, but it seems to be hit and miss in two ways for me:
- It works, but the animation itself may glitch and the sliding issue will continue. I think it has something to do with taking pistols out, because it's that sequence that tries to play before sliding.
- It simply sometimes works and sometimes doesn't. As in the plugin itself is either disabled or enabled, by itself. Means I have to restart the server and it's not 100% guarantee that it will work. Could it be conflicting with anything?
Yeah the changing of position in the models when crawling seems to be with custom models
Ive noticed it seems to play on the Posture or Gestures & Animations function to the models, where if you wanna put a custom model on a survivor you can just name it and set it for that survivor and it all works fine but ONLY in single player, you have to set the Anims and Gestures lines in the QC file to the MDL file to get the animations working in online games
So if i have custom models it doesnt matter in single player but online it messes them up
Does the original L4D2 survivor_allow_crawling just moves the body on the ground without crawling animations or is there other bugs that made Valve disable it by default?
yeah the original if you just add the cvars to your cfg makes it so they slide across the ground with no animations but other than that it works fine, o or you cant shoot while crawling but thats usual, so my guess is they couldnt quite work it out and gave up on it, but still left the code in much like they did with the 3rd person view mode
yeah the custom models and online would make sense for the plugin, my guess is it would have to detect what character models the users have for their survivors and which anims they use, or something to that effect if possible
cuz some custom models like the ones that are female chars that are put on the male survivors use zoeys gestures and animations even tho it replaces bill or coach, so unless you dont use any it doesnt work well online per player on a server