I am using the fpsc character models for my entities. Because the entities are deciding to changing actions quick and constantly, the animations are jumpy and look terrible. Is there a way to fix this or would I need to get something like enhanced animations to create smoother animation transitions?
this is the code I have for seting the animations.
enemyact$(e)= ai get entity action$(e)
if enemyact$(e)="Stopped" then enemyanim(e)=1
if enemyact$(e)="Moving Forwards" then enemyanim(e)=2
if enemyact$(e)="Moving Backwards" then enemyanim(e)=3
if enemyact$(e)="Strafing Left" then enemyanim(e)=4
if enemyact$(e)="Strafing Right" then enemyanim(e)=5
if enemyact$(e)="Stopped And Attacking" then enemyanim(e)=1
if enemyact$(e)="Moving Forwards And Attacking" then enemyanim(e)=2
if enemyact$(e)="Moving Backwards And Attacking" then enemyanim(e)=3
if enemyact$(e)="Strafing Left And Attacking" then enemyanim(e)=4
if enemyact$(e)="Strafing Right And Attacking" then enemyanim(e)=5
if ai entity exist(e)
if enemyanim(e)=1
set object speed e,64.6
set object frame e,573
endif
if enemyanim(e)=2
set object speed e,64.6
loop object e,598,622
endif
if enemyanim(e)=3
set object speed e,-64.6
loop object e,598,622
endif
if enemyanim(e)=4
set object speed e,64.6
loop object e,623,642
endif
if enemyanim(e)=5
set object speed e,64.6
loop object e,643,662
endif
if enemyhealth(e)<1
enemyisdead(e)=1
endif
if enemyisdead(e)>0
ai kill entity e
set object speed e,64.6
play object e,0,15
endif
endif