Better (hopefully...)

I uploaded a demo. If you don't mind the ugly level, models and animations, try it

Use the usual WSAD keys to walk around.

Z X and C will switch to Crawl, Walk and Run respectivelly.

SHIFT will RUN if current mode is WALK.

Please note that the blendspeed is set to SLOW (about 8 frames) , so I can look for bugs. It's intended to be faster (2 or 4 frames blend) just as any other blending code from the templates.

No jump or attack for now. (coming soon). Sorry that it's packed, but the rest of the code is confidential. The reason for this is that it's ugly and ordinary and I feel shame to show it away.