Implement release animation. Could use some logic clean up but works.
@@ -24408,11 +24408,27 @@ void common_block()
// forces blockpain animations to finish before
// entity can act again.
if (!self->inpain || !self->animating)
+ {
+ if (self->animnum == ANI_BLOCKRELEASE && !self->animating)
{
self->blocking = 0;
self->takeaction = NULL;
set_idle(self);
}
+ else
+ {
+ if (validanim(self, ANI_BLOCKRELEASE))
+ {
+ ent_set_anim(self, ANI_BLOCKRELEASE, 0);
+ }
+ else
+ {
+ self->blocking = 0;
+ self->takeaction = NULL;
+ set_idle(self);
+ }
+ }
+ }
}
}
