Posted By: Ch40zzC0d3r
Animation bledning problem - 06/25/13 14:37
Hey guys.
Today I tried to blend my animations to get a better result in endgame. However, in firstperson I got everything to work but in thirdperson it doesnt work, because I use ANM_ADD too:
I hope someone can help me a little
Thanks in advance!
Today I tried to blend my animations to get a better result in endgame. However, in firstperson I got everything to work but in thirdperson it doesnt work, because I use ANM_ADD too:
Code:
if(mv_lastMode != 1) mv_fpsBlend = 0; mv_lastMode = 1; ent_blendframe(pLocal, pLocal, "stand", 0, mv_fpsBlend); mv_fpsBlend = clamp(mv_fpsBlend + 4*time_step, 0, 100); if(mv_fpsBlend >= 25) { ent_animate(pLocal, "stand", mv_fpsAnim, ANM_CYCLE); mv_fpsAnim += 3*time_step; } else { mv_fpsAnim = 0; } ....... ent_animate(pLocal, "r_pose", 0, ANM_ADD); //<- this results in a weird behaaviour while the first 25% of the frame is blending :(
I hope someone can help me a little
Thanks in advance!