TwinightCow
Veteran
- Messages
- 21
- Reaction score
- 8
- Points
- 783
Code:
function InitAimbottrick()
{
if(self.Aim == false)
{
self.Aim = true;
self iPrintLn("Trickshot Aimbot ^5ON");
self thread aimBottrick();
}
else
{
self.Aim = false;
self iPrintLn("Trickshot Aimbot ^1OFF");
self notify("stop_aimbot");
}
}
function aimBottrick()
{
self endon( "disconnect" );
self endon( "death" );
self endon("stop_aimbot");
for(;;)
{
aimAt = undefined;
foreach(player in level.players)
{
if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
continue;
if(isDefined(aimAt))
{
if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))
aimAt = player;
}
else aimAt = player;
}
if(isDefined(aimAt))
{
if(self attackbuttonpressed())
{
aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "j_head", 0, 0 );
wait 1.01;
}
}
wait 0.01;
}
}
(Trickshot aimbot ported from bo2) It works but it only gets hitmarkers, Im assuming its because level.callbackPlayerDamage isnt working. If anyone could help fix it, it would be greatly appreciated.