❓ No Snap

Posts 1–2 of 2 · Page 1 of 1
❓ No Snap
Im using some source for learning purposes and I want to get NoSnap, so If user kills the target it will sleep for some amount of time. The problem is that anything that I put in the commented section aimbot doesnt work as long as original (first) target that was killed is dead and after respawn (or new round) aimbot works again. I know I have to reset target somehow but dunno how. Any tips? Im still unexperienced.


Function getting best target (closest to crosshair)
Code:
int DaBestTrg()
{
	float lbot_aimbot_fov = cvar->lbot_aimbot_fov;
	int iId;
	float iClosest2cross;

	for(int i = 0; i <= 128; i++)
	{
		entity->getPlayer(i);

		if(entity->player == local_player->local)
			continue;

		iClosest2cross = engine->GetFOV(local_player->getAngles(), local_player->getEye(), entity->getEye());

		if (iClosest2cross < lbot_aimbot_fov && local_player->Team() != entity->Team() && entity->ClassID() == 35 && !entity->DormantCheck() && entity->getHp() >= 1)
		{
			lbot_aimbot_fov =iClosest2cross;
			iId = i;
		}

		else

		if (iClosest2cross < lbot_aimbot_fov && local_player->Team() != entity->Team() && entity->ClassID() == 35 && !entity->DormantCheck() && !entity->getAlive())
		{
			// Dunno What's supposed to be there
		}
	}

	return iId;
}
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us