--putin sequences.h
#ifndef STUDIO_RENDER_STATES_H
#define STUDIO_RENDER_STATES_H
//REGULAR SEQUENCES
enum E_REGULAR_SEQUENCE
{
SEQUENCE_IDLE = 0,
SEQUENCE_FIRE = 1,
SEQUENCE_RELOAD = 2,
SEQUENCE_DIE = 3,
SEQUENCE_THROW = 4,
SEQUENCE_C4 = 5,
SEQUENCE_SWING = 6,
SEQUENCE_OPEN_SHIELD = 7,
SEQUENCE_CLOSED_SHIELD = 8
};
static int REGULAR_SEQUENCE_INFO[] =
{
0,0,0,0,0,0,0,0,0,0,
0,1,2,0,1,2,0,1,2,0,
1,2,0,1,1,2,0,1,1,2,
0,1,2,0,1,2,0,1,2,0,
1,2,0,1,2,0,1,2,0,1,
2,0,1,2,0,0,0,4,0,4,
0,5,0,5,0,0,1,1,2,0,
1,1,2,0,6,0,6,0,1,2,
0,1,2,7,4,7,4,7,6,7,
6,7,1,2,7,1,2,8,8,0,
0,3,3,3,3,3,3,3,3,3,
3
};
static char *REGULAR_SEQUENCE_STRINGS[] =
{
"", //Null string
"-SHOOTING-",
"-RELOADING-",
"-DYING-",
"-THROWING-",
"-ARMING C4-",
"-SWINGING-",
"-OPEN-",
"-CLOSED-"
};
//GAIT SEQUENCES
enum E_GAIT_SEQUENCE
{
SEQUENCE_STANDING = 0,
SEQUENCE_CROUCHING = 1,
SEQUENCE_WALKING = 2,
SEQUENCE_RUNNING = 3,
SEQUENCE_CROUCH_RUNNING = 4,
SEQUENCE_JUMPING = 5,
SEQUENCE_SWIMMING = 6
};
static int GAIT_SEQUENCE_INFO[] = { 0,0,1,2,3,4,5,5,6,6 };
static char *GAIT_SEQUENCE_STRINGS[] =
{
"-STANDING-",
"-CROUCHING-",
"-WALKING-",
"-RUNNING-",
"-CROUCH RUNNING-",
"-JUMPING-",
"-SWIMMING-"
};
inline int SequenceLookup( int sequence )
{
return REGULAR_SEQUENCE_INFO[ sequence ];
}
inline int GaitsequenceLookup( int sequence )
{
return GAIT_SEQUENCE_INFO[ sequence ];
}
inline char *SequenceStringLookup( int sequence )
{
return REGULAR_SEQUENCE_STRINGS[ SequenceLookup( sequence ) ];
}
inline char *GaitsequenceStringLookup( int sequence )
{
return GAIT_SEQUENCE_STRINGS[ GaitsequenceLookup( sequence ) ];
}
#endif //#ifndef
------------------------------------------------
put in client.cpp
#include "sequences.h"
to draw esp:
if( cvar.gaitesp )
{
CenterPrint( curX, curY, r, g, b, GaitsequenceStringLookup( vPlayers[ax].ent->curstate.gaitsequence ) );
curY-=10;
}
if( cvar.seqesp )
{
CenterPrint( curX, curY, r, g, b, SequenceStringLookup( vPlayers[ax].ent->curstate.sequence ) );
curY-=10;
}