///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
void main()
{
fps_max = 60;
video_mode = 10;
level_load(NULL);
ENTITY* ent_minitest = ent_create("minitest.mdl",vector(256,0,0),NULL);
ent_minitest.pan = 180;
while(1)
{
if(key_w) // first press [s]
{
ent_minitest.pose = 2;
ent_animate(ent_minitest,"testA",100,0);
}
if(key_s) // press this first, then [space] -> no effect
{
ent_minitest.pose = 1;
ent_animate(ent_minitest,"testA",100,0);
int i;
for(i = 1; i <= 4; i++) ent_bonerotate(ent_minitest,str_printf(NULL,"Bone%d",i),vector(sinv(total_ticks*5)*15*(1-2*(i > 2)),0,0));
ent_blendpose(ent_minitest,2,1,100); // has no effect, or the subsequent ent_blendpose call
}
ent_minitest.pose = 1;
ent_animate(ent_minitest,"testB",100,0);
if(key_space) ent_blendpose(ent_minitest,1,2,100);
wait(1);
}
}