Help with trigger
Hi mpgh community,
I have problem with triggerbot. I will aim at the opponent and triggerbot sometimes does not shoot. Maybe it's the problem with code delay.
I have:
or
Please help with triggershot. I have set delay 20 in settings file.
I have problem with triggerbot. I will aim at the opponent and triggerbot sometimes does not shoot. Maybe it's the problem with code delay.
I have:
Code:
{
Entity* inX = inCrosshair();
if (inX != nullptr && Engine()->me.weapon_ammo > 0 && inX->hp > 0)
if (Settings()->trig_delay > 0)
{
Sleep(Settings()->trig_delay);
}
autoAttacking = true;
Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 1);
Sleep(Settings()->trig_time);
}
Code:
Entity* inX = inCrosshair();
if (inX != nullptr && Engine()->me.weapon_ammo > 0 && inX->hp > 0)
{
Sleep(Settings()->trig_delay);
autoAttacking = true;
Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 1);
Sleep(Settings()->trig_time);
}