ok in client.cpp find
Code:
inline void drawPlayerEsp(int ax)
go down and under Code:
if (cvar.distance)
add
Code:
// By Legendary Amir
if (cvar.gaitsequence == 1)
{
DrawHudStringCenter(x,y,color->r,color->g,color->b,"%i",vPlayers[ax].getEnt()->curstate.gaitsequence);
y += ystep;
}
if (cvar.gaitsequence == 2)
{
char* g1 = "Standing";
char* g2 = "Ducking";
char* g3 = "Walking";
char* g4 = "Running";
char* g5 = "Duck-Walk";
char* g6 = "Jumping";
char* gSequence;
switch (vPlayers[ax].getEnt()->curstate.gaitsequence)
{
case 1:
gSequence = g1;
break;
case 2:
gSequence = g2;
break;
case 3:
gSequence = g3;
break;
case 4:
gSequence = g4;
break;
case 5:
gSequence = g5;
break;
case 6:
gSequence = g6;
break;
}
DrawHudStringCenter(x,y,color->r,color->g,color->b,format_string,gSequence);
y += ystep;
}
}
so here is how it looks with distance combined with it..
Code:
if (cvar.distance)
{
DrawHudStringCenter(x,y,r,g,b,format_int, (short int)distance);
y += ystep;
}
// By Legendary Amir
if (cvar.gaitsequence == 1)
{
DrawHudStringCenter(x,y,color->r,color->g,color->b,"%i",vPlayers[ax].getEnt()->curstate.gaitsequence);
y += ystep;
}
if (cvar.gaitsequence == 2)
{
char* g1 = "Standing";
char* g2 = "Ducking";
char* g3 = "Walking";
char* g4 = "Running";
char* g5 = "Duck-Walk";
char* g6 = "Jumping";
char* gSequence;
switch (vPlayers[ax].getEnt()->curstate.gaitsequence)
{
case 1:
gSequence = g1;
break;
case 2:
gSequence = g2;
break;
case 3:
gSequence = g3;
break;
case 4:
gSequence = g4;
break;
case 5:
gSequence = g5;
break;
case 6:
gSequence = g6;
break;
}
DrawHudStringCenter(x,y,color->r,color->g,color->b,format_string,gSequence);
y += ystep;
}
}