php
5th April 2015, 16:16
Requested by IzNoGoD
void PlayerCmd_IsMantling(int self) {
/*
mantling m8 a1=fff9d750, a2=fff9d500, *(int*)a1 = 8705480
mantling m8 a1=fff9d750, a2=fff9d500, *(int*)a1 = 8705480 = unk_8705480
*/
#if COD_VERSION == COD2_1_2
int idk = 0x8705480 + 10404 * self + 0xc;
#elif COD_VERSION == COD2_1_3
int idk = 0x87A2500 + 10404 * self + 0xc;
#elif COD_VERSION == COD2_1_0
int idk = 0x86F1480 + 10404 * self + 0xc;
#endif
if(*(int*)idk & 4) //oi m8 im mantling give me a break
stackPushInt(1);
else
stackPushInt(0);
}
void PlayerCmd_IsMantling(int self) {
/*
mantling m8 a1=fff9d750, a2=fff9d500, *(int*)a1 = 8705480
mantling m8 a1=fff9d750, a2=fff9d500, *(int*)a1 = 8705480 = unk_8705480
*/
#if COD_VERSION == COD2_1_2
int idk = 0x8705480 + 10404 * self + 0xc;
#elif COD_VERSION == COD2_1_3
int idk = 0x87A2500 + 10404 * self + 0xc;
#elif COD_VERSION == COD2_1_0
int idk = 0x86F1480 + 10404 * self + 0xc;
#endif
if(*(int*)idk & 4) //oi m8 im mantling give me a break
stackPushInt(1);
else
stackPushInt(0);
}