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.
 
L

LowKeyDNS

Guest
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.
Just change 'thread [[level.callbackPlayerDamage]](...' to 'dodamage(...', and convert the parameters. A copy of the dodamage documentation is as follows:
You do not have permission to view link Log in or register now.


You only need to include two parameters, but in order for the game to do the damage, you must provide a valid attacker source as well. Hope it helps!
 

TwinightCow

Veteran
Messages
21
Reaction score
8
Points
783
Just change 'thread [[level.callbackPlayerDamage]](...' to 'dodamage(...', and convert the parameters. A copy of the dodamage documentation is as follows:
You do not have permission to view link Log in or register now.


You only need to include two parameters, but in order for the game to do the damage, you must provide a valid attacker source as well. Hope it helps!
Thanks! Ill try it
 

SCP

Moderator
Staff member
Donator
Messages
411
Reaction score
408
Points
848
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.
Change level.callbackPlayerDamage to doDamage like @LowKeyDNS said.
I used that and it works:
Code:
aimAt DoDamage( aimat.health + 1, aimat GetOrigin(), self);

Thank you!
 
Top