This commit is contained in:
Paul 2001-07-27 14:43:39 +00:00
parent 9b159747fb
commit 84422fdd3b
3 changed files with 71 additions and 64 deletions

View File

@ -107,16 +107,14 @@ static const char *s_animNames[NUM_ANIM_SPONGEBOB]=
"ANIM_SPONGEBOB_CROUCHDOWN", "ANIM_SPONGEBOB_CROUCHDOWN",
"ANIM_SPONGEBOB_CROUCHUP", "ANIM_SPONGEBOB_CROUCHUP",
"ANIM_SPONGEBOB_LOOKUP", "ANIM_SPONGEBOB_LOOKUP",
//NOIDLE "ANIM_SPONGEBOB_IDLEBIGEYE", "ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN",
//NOIDLE "ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN", "ANIM_SPONGEBOB_IDLEBANDAID",
//NOIDLE "ANIM_SPONGEBOB_IDLEBANDAID",
//NOIDLE "ANIM_SPONGEBOB_IDLEEYEPOP",
//NOIDLE "ANIM_SPONGEBOB_IDLEINHAT", //NOIDLE "ANIM_SPONGEBOB_IDLEINHAT",
//NOIDLE "ANIM_SPONGEBOB_IDLEMATURE", "ANIM_SPONGEBOB_IDLEMATURE",
//NOIDLE "ANIM_SPONGEBOB_IDLEMOUSTACHE", "ANIM_SPONGEBOB_IDLEMOUSTACHE",
//NOIDLE "ANIM_SPONGEBOB_IDLENOFACE", "ANIM_SPONGEBOB_IDLENOFACE",
//NOIDLE "ANIM_SPONGEBOB_IDLENET", //NOIDLE "ANIM_SPONGEBOB_IDLENET",
//NOIDLE "ANIM_SPONGEBOB_IDLEZORRO", "ANIM_SPONGEBOB_IDLEZORRO",
"ANIM_SPONGEBOB_CELEBRATE", "ANIM_SPONGEBOB_CELEBRATE",
}; };

View File

@ -347,14 +347,14 @@ s8 s_animMapNet[NUM_PLAYER_ADDONS][NUM_ANIM_SPONGEBOB]=
ANIM_SPONGEBOB_NET_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN ANIM_SPONGEBOB_NET_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN
ANIM_SPONGEBOB_NET_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP ANIM_SPONGEBOB_NET_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP
ANIM_SPONGEBOB_NET_LOOKUP, // ANIM_SPONGEBOB_LOOKUP ANIM_SPONGEBOB_NET_LOOKUP, // ANIM_SPONGEBOB_LOOKUP
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEBANDAID, -1, // ANIM_SPONGEBOB_IDLEBANDAID,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT, //NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMATURE, -1, // ANIM_SPONGEBOB_IDLEMATURE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENOFACE, -1, // ANIM_SPONGEBOB_IDLENOFACE,
//NOIDLE ANIM_SPONGEBOB_NET_IDLENET, // ANIM_SPONGEBOB_IDLENET, //NOIDLE ANIM_SPONGEBOB_NET_IDLENET, // ANIM_SPONGEBOB_IDLENET,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEZORRO, -1, // ANIM_SPONGEBOB_IDLEZORRO,
ANIM_SPONGEBOB_NET_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE, ANIM_SPONGEBOB_NET_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE,
}, },
@ -388,14 +388,14 @@ s8 s_animMapNet[NUM_PLAYER_ADDONS][NUM_ANIM_SPONGEBOB]=
ANIM_SPONGEBOB_CORALBLOWER_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN ANIM_SPONGEBOB_CORALBLOWER_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN
ANIM_SPONGEBOB_CORALBLOWER_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP ANIM_SPONGEBOB_CORALBLOWER_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP
ANIM_SPONGEBOB_CORALBLOWER_LOOKUP, // ANIM_SPONGEBOB_LOOKUP ANIM_SPONGEBOB_CORALBLOWER_LOOKUP, // ANIM_SPONGEBOB_LOOKUP
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEBANDAID, -1, // ANIM_SPONGEBOB_IDLEBANDAID,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT, //NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMATURE, -1, // ANIM_SPONGEBOB_IDLEMATURE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENOFACE, -1, // ANIM_SPONGEBOB_IDLENOFACE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENET, //NOIDLE -1, // ANIM_SPONGEBOB_IDLENET,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEZORRO, -1, // ANIM_SPONGEBOB_IDLEZORRO,
ANIM_SPONGEBOB_CORALBLOWER_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE, ANIM_SPONGEBOB_CORALBLOWER_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE,
}, },
@ -429,14 +429,14 @@ s8 s_animMapNet[NUM_PLAYER_ADDONS][NUM_ANIM_SPONGEBOB]=
ANIM_SPONGEBOB_JELLYLAUNCHER_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN ANIM_SPONGEBOB_JELLYLAUNCHER_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN
ANIM_SPONGEBOB_JELLYLAUNCHER_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP ANIM_SPONGEBOB_JELLYLAUNCHER_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP
ANIM_SPONGEBOB_JELLYLAUNCHER_LOOKUP, // ANIM_SPONGEBOB_LOOKUP ANIM_SPONGEBOB_JELLYLAUNCHER_LOOKUP, // ANIM_SPONGEBOB_LOOKUP
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEBANDAID, -1, // ANIM_SPONGEBOB_IDLEBANDAID,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT, //NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMATURE, -1, // ANIM_SPONGEBOB_IDLEMATURE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENOFACE, -1, // ANIM_SPONGEBOB_IDLENOFACE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENET, //NOIDLE -1, // ANIM_SPONGEBOB_IDLENET,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEZORRO, -1, // ANIM_SPONGEBOB_IDLEZORRO,
ANIM_SPONGEBOB_JELLYLAUNCHER_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE, ANIM_SPONGEBOB_JELLYLAUNCHER_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE,
}, },
@ -470,14 +470,14 @@ s8 s_animMapNet[NUM_PLAYER_ADDONS][NUM_ANIM_SPONGEBOB]=
ANIM_SPONGEBOB_WAND_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN ANIM_SPONGEBOB_WAND_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN
ANIM_SPONGEBOB_WAND_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP ANIM_SPONGEBOB_WAND_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP
ANIM_SPONGEBOB_WAND_LOOKUP, // ANIM_SPONGEBOB_LOOKUP ANIM_SPONGEBOB_WAND_LOOKUP, // ANIM_SPONGEBOB_LOOKUP
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEBANDAID, -1, // ANIM_SPONGEBOB_IDLEBANDAID,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT, //NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMATURE, -1, // ANIM_SPONGEBOB_IDLEMATURE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENOFACE, -1, // ANIM_SPONGEBOB_IDLENOFACE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENET, //NOIDLE -1, // ANIM_SPONGEBOB_IDLENET,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEZORRO, -1, // ANIM_SPONGEBOB_IDLEZORRO,
ANIM_SPONGEBOB_WAND_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE, ANIM_SPONGEBOB_WAND_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE,
}, },
@ -511,14 +511,14 @@ s8 s_animMapNet[NUM_PLAYER_ADDONS][NUM_ANIM_SPONGEBOB]=
ANIM_SPONGEBOB_JELLYFISH_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN ANIM_SPONGEBOB_JELLYFISH_CROUCHDOWN, // ANIM_SPONGEBOB_CROUCHDOWN
ANIM_SPONGEBOB_JELLYFISH_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP ANIM_SPONGEBOB_JELLYFISH_CROUCHUP, // ANIM_SPONGEBOB_CROUCHUP
ANIM_SPONGEBOB_JELLYFISH_LOOKUP, // ANIM_SPONGEBOB_LOOKUP ANIM_SPONGEBOB_JELLYFISH_LOOKUP, // ANIM_SPONGEBOB_LOOKUP
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEBANDAID, -1, // ANIM_SPONGEBOB_IDLEBANDAID,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT, //NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMATURE, -1, // ANIM_SPONGEBOB_IDLEMATURE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENOFACE, -1, // ANIM_SPONGEBOB_IDLENOFACE,
//NOIDLE ANIM_SPONGEBOB_JELLYFISH_IDLENET, // ANIM_SPONGEBOB_IDLENET, //NOIDLE ANIM_SPONGEBOB_JELLYFISH_IDLENET, // ANIM_SPONGEBOB_IDLENET,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEZORRO, -1, // ANIM_SPONGEBOB_IDLEZORRO,
ANIM_SPONGEBOB_JELLYFISH_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE, ANIM_SPONGEBOB_JELLYFISH_CELEBRATE, // ANIM_SPONGEBOB_CELEBRATE,
}, },
@ -552,14 +552,14 @@ s8 s_animMapNet[NUM_PLAYER_ADDONS][NUM_ANIM_SPONGEBOB]=
-1, // ANIM_SPONGEBOB_CROUCHDOWN -1, // ANIM_SPONGEBOB_CROUCHDOWN
-1, // ANIM_SPONGEBOB_CROUCHUP -1, // ANIM_SPONGEBOB_CROUCHUP
-1, // ANIM_SPONGEBOB_LOOKUP -1, // ANIM_SPONGEBOB_LOOKUP
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN -1, // ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEBANDAID, -1, // ANIM_SPONGEBOB_IDLEBANDAID,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT, //NOIDLE -1, // ANIM_SPONGEBOB_IDLEINHAT,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMATURE, -1, // ANIM_SPONGEBOB_IDLEMATURE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, // ANIM_SPONGEBOB_IDLEMOUSTACHE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENOFACE, -1, // ANIM_SPONGEBOB_IDLENOFACE,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLENET, //NOIDLE -1, // ANIM_SPONGEBOB_IDLENET,
//NOIDLE -1, // ANIM_SPONGEBOB_IDLEZORRO, -1, // ANIM_SPONGEBOB_IDLEZORRO,
-1, // ANIM_SPONGEBOB_CELEBRATE, -1, // ANIM_SPONGEBOB_CELEBRATE,
}, },
}; };
@ -2563,9 +2563,19 @@ int CPlayer::moveVertical(int _moveDistance)
} }
else else
{ {
/*
int colHeightLeft,colHeightRight;
int blockLeft,blockRight;
colHeightLeft=getHeightFromGround(pos.vx-checkx,pos.vy+_moveDistance,16);
blockLeft=CGameScene::getCollision()->getCollisionBlock(pos.vx-checkx,pos.vy+colHeightLeft)&COLLISION_TILE_MASK<=1;
colHeightRight=getHeightFromGround(pos.vx+checkx,pos.vy+_moveDistance,16);
blockRight=CGameScene::getCollision()->getCollisionBlock(pos.vx+checkx,pos.vy+colHeightRight)&COLLISION_TILE_MASK<=1;
PAUL_DBGMSG("%d,%d %d,%d",colHeightRight,blockRight,colHeightLeft,blockLeft);
*/
colHeight=getHeightFromGround(pos.vx-checkx,pos.vy+_moveDistance,16); colHeight=getHeightFromGround(pos.vx-checkx,pos.vy+_moveDistance,16);
if(colHeight<=0/*&& if(colHeight<=0/*&&
CGameScene::getCollision()->getCollisionBlock(pos.vx-checkx,pos.vy+_moveDistance)&COLLISION_TILE_MASK<=1*/) CGameScene::getCollision()->getCollisionBlock(pos.vx-checkx,pos.vy+colHeight)&COLLISION_TILE_MASK<=1*/)
{ {
pos.vy+=colHeight+_moveDistance; pos.vy+=colHeight+_moveDistance;
_moveDistance=0; _moveDistance=0;
@ -2575,7 +2585,7 @@ int CPlayer::moveVertical(int _moveDistance)
{ {
colHeight=getHeightFromGround(pos.vx+checkx,pos.vy+_moveDistance,16); colHeight=getHeightFromGround(pos.vx+checkx,pos.vy+_moveDistance,16);
if(colHeight<=0/*&& if(colHeight<=0/*&&
CGameScene::getCollision()->getCollisionBlock(pos.vx+checkx,pos.vy+_moveDistance)&COLLISION_TILE_MASK<=1*/) CGameScene::getCollision()->getCollisionBlock(pos.vx+checkx,pos.vy+colHeight)&COLLISION_TILE_MASK<=1*/)
{ {
pos.vy+=colHeight+_moveDistance; pos.vy+=colHeight+_moveDistance;
_moveDistance=0; _moveDistance=0;
@ -2853,7 +2863,8 @@ int CPlayer::moveHorizontal(int _moveDistance)
targetX=pos.vx+_moveDistance; targetX=pos.vx+_moveDistance;
checkOfs=vx*checkx; checkOfs=vx*checkx;
moved=0; moved=0;
for(x=pos.vx;x!=targetX;x+=vx) int init=checkx*vx;
for(x=pos.vx+init;x!=targetX+init;x+=vx)
{ {
// Wall? // Wall?
colHeight=getHeightFromGround(x+checkOfs,pos.vy); colHeight=getHeightFromGround(x+checkOfs,pos.vy);

View File

@ -293,16 +293,15 @@ void CPlayerStateIdle::setNextIdleAnim(CPlayerModeBase *_playerMode)
static IdleAnims s_unarmedIdleAnims[]= static IdleAnims s_unarmedIdleAnims[]=
{ {
// start frame loop frame end frame loop count // start frame loop frame end frame loop count
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 10*6/*0*/ }, // default { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 10*60 }, // default
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*6/*0*/ }, { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*60 },
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*6/*0*/ }, { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 2*60 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLEFACEUPSIDEDOWN, -1, 1 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLEBANDAID, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLEBANDAID, -1, 1 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLEINHAT, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLEMATURE, -1, 1 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLEMATURE, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, 1 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLEMOUSTACHE, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLENOFACE, -1, 1 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLENOFACE, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLEZORRO, -1, 1 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLEZORRO, -1, 1 },
}; };
static int s_numUnarmedIdleAnims=sizeof(s_unarmedIdleAnims)/sizeof(IdleAnims); static int s_numUnarmedIdleAnims=sizeof(s_unarmedIdleAnims)/sizeof(IdleAnims);
IdleAnims *CPlayerStateUnarmedIdle::getIdleAnimsDb(int _animNo) IdleAnims *CPlayerStateUnarmedIdle::getIdleAnimsDb(int _animNo)
@ -325,9 +324,9 @@ int CPlayerStateUnarmedIdle::getNumIdleAnims()
static IdleAnims s_weaponIdleAnims[]= static IdleAnims s_weaponIdleAnims[]=
{ {
// start frame loop frame end frame loop count // start frame loop frame end frame loop count
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 10*6/*0*/ }, // default { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 10*60 }, // default
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*6/*0*/ }, { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*60 },
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*6/*0*/ }, { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 2*60 },
{ -1, ANIM_SPONGEBOB_IDLEWEAPON, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLEWEAPON, -1, 1 },
}; };
static int s_numWeaponIdleAnims=sizeof(s_weaponIdleAnims)/sizeof(IdleAnims); static int s_numWeaponIdleAnims=sizeof(s_weaponIdleAnims)/sizeof(IdleAnims);
@ -351,10 +350,9 @@ int CPlayerStateWeaponIdle::getNumIdleAnims()
static IdleAnims s_netIdleAnims[]= static IdleAnims s_netIdleAnims[]=
{ {
// start frame loop frame end frame loop count // start frame loop frame end frame loop count
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 10*6/*0*/ }, // default { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 10*60 }, // default
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*6/*0*/ }, { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*60 },
{ -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 5*6/*0*/ }, { -1, ANIM_SPONGEBOB_IDLEBREATH, -1, 2*60 },
//NOIDLE { -1, ANIM_SPONGEBOB_IDLENET, -1, 1 },
{ -1, ANIM_SPONGEBOB_IDLEWEAPON, -1, 1 }, { -1, ANIM_SPONGEBOB_IDLEWEAPON, -1, 1 },
}; };
static int s_numNetIdleAnims=sizeof(s_netIdleAnims)/sizeof(IdleAnims); static int s_numNetIdleAnims=sizeof(s_netIdleAnims)/sizeof(IdleAnims);