-
Автор темы
- #1
Credits: masterlooser18
Before fixing
After fixing
Before fixing
After fixing
Код:
void Misc :: FixBombPlant () {
if (! (Globals :: cmd-> buttons & IN_USE) &&! (Globals :: cmd-> buttons & IN_ATTACK))
return;
if (! g_LocalPlayer || g_LocalPlayer-> GetHealth () <= 0)
return;
auto * Weapon = (BaseWeapon *) g_LocalPlayer-> GetActiveWeapon ();
if (! Weapon ||! Weapon-> IsC4 () || g_LocalPlayer-> InBombZone ())
return;
Globals :: cmd-> buttons & = ~ IN_USE;
Globals :: cmd-> buttons & = ~ IN_ATTACK;
} [/ CODE]
Последнее редактирование: