int Cstrike_SequenceInfo[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0..9
0, 1, 2, 0, 1, 2, 0, 1, 2, 0, // 10..19
1, 2, 0, 1, 1, 2, 0, 1, 1, 2, // 20..29
0, 1, 2, 0, 1, 2, 0, 1, 2, 0, // 30..39
1, 2, 0, 1, 2, 0, 1, 2, 0, 1, // 40..49
2, 0, 1, 2, 0, 0, 0, 4, 0, 4, // 50..59
0, 5, 0, 5, 0, 0, 1, 1, 2, 0, // 60..69
1, 1, 2, 0, 1, 0, 1, 0, 1, 2, // 70..79
0, 1, 2, 3, 3, 3, 3, 3, 3, 3, // 80..89
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 90..99
3
};
if (cvar.reloading)
{
//SEQUENCE_RELOAD=2, SEQUENCE_DIE=3, SEQUENCE_THROW=4, SEQUENCE_ARM_C4=5
float tempy;
int atype = Cstrike_SequenceInfo[vPlayers[ax].getEnt()->curstate.sequence];
if(atype == 2 || atype == 4 || atype == 5){
oglSubtractive=true;
gEngfuncs.pfnFillRGBA(vecScreen[0]-26,vecScreen[1]+tempy+1,53,12,0,0,0,250);
oglSubtractive=false;
gEngfuncs.pfnFillRGBA(vecScreen[0]-25,vecScreen[1]+tempy+2,(vPlayers[ax].getEnt()->curstate.frame/255)*50,10,r,g,b,255);
tempy+=16;
}
}
ColorEntry* PlayerColor(int ax)
{
static ColorEntry colorDefault;
int i = 0;
if ((cvar.sglow) && ((vPlayers[ax].iInfo & 2) || (vPlayers[ax].iInfo & 4))) { return colorList.get(3); }
if (cvar.tglow && (ax == gAimbot.target))
{ return colorList.get(4); }
if(cvar.rglow)
{
int seqinfo = vPlayers[ax].getEnt()->curstate.sequence;
if( seqinfo>1)
if( Cstrike_SequenceInfo[seqinfo] == 2 )
i = 37;
}
if (vPlayers[ax].team == 1) { return colorList.get(1); }
else { return colorList.get(2); }
}