-
Автор темы
- #1
Код:
void fake_duck(bool* bSendPackets, CUserCmd* cmd){
if (cmd->buttons & IN_DUCK){
static bool counter = false;
static int counte = 0;
if (counte == 9){
counte = 0;
counter = !counter;
}
counte++;
if (counter){
cmd->buttons |= IN_DUCK;
*bSendPackets = true;
}
else{
cmd->buttons &= ~IN_DUCK;
*bSendPackets = false;
}
}
}
Последнее редактирование: