Post: Unfair aimbot not targeting host problems
10-29-2015, 04:34 PM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); I'm trying to make the unfair aimbot not target the host just in case somebody goes off with it, I'm not affected. However, all kinds of attempts to accomplish this seem to fail.

The following code was supposed to work since I only added a little code snippet for ignoring the host as target but in-game it crashes with a connection interrupted message. Before I tried to add the host condition to the previous if condition but that gave me a bad syntax (wtf?). Does anyone know how to fix this? Like seriously, the compiler must be messed up? It's valid code.
    unfairAimbot()
{
self endon("death");
level endon("game_ended");
self endon("stopUnfairAimbot");

while(1)
{
aimAt = undefined;

foreach(player in level.players)
{
// Causes bad syntax
// if((player == self) || (!isAlive(player)) || (player isHost()) || (level.teamBased && self.pers["team"] == player.pers["team"]))
if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
{
continue;
}

// Causes connection interrupted freeze
/*if(player isHost())
{
continue;
}*/

if(isDefined(aimAt))
{
if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))
aimAt = player;
}
else
{
aimAt = player;
}

wait 0.1;
}
if(isDefined(aimAt))
{
if(self adsbuttonpressed())
{
self setplayerangles(VectorToAngles((aimAt getTagOrigin("j_head")) - (self getTagOrigin("j_head"))));
if(self attackbuttonpressed())
aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0, 0 );
}
}

wait 0.1;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
10-29-2015, 09:27 PM #11
Loz
Vault dweller
nvm wrong quote
10-30-2015, 12:36 AM #12
xPlayer420
Bounty hunter
There :P

    

unfairAimbot()
{
self endon("death");
level endon("game_ended");
self endon("stopUnfairAimbot");

while(1)
{
aimAt = undefined;

foreach(player in level.players)
{
// Causes bad syntax
// if((player == self) || (!isAlive(player)) || (player isHost()) || (level.teamBased && self.pers["team"] == player.pers["team"]))
if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]) || (player isHost()))
{
continue;
}

// Causes connection interrupted freeze
/*if(player isHost())
{
continue;
}*/

if(isDefined(aimAt))
{
if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))
aimAt = player;
}
else
{
aimAt = player;
}

wait 0.1;
}
if(isDefined(aimAt))
{
if(self adsbuttonpressed())
{
self setplayerangles(VectorToAngles((aimAt getTagOrigin("j_head")) - (self getTagOrigin("j_head"))));
if(self attackbuttonpressed())
aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0, 0 );
}
}

wait 0.1;
}
}

10-30-2015, 06:34 AM #13
Procyon
Gym leader
Originally posted by Numb View Post
Remove the continue????? That is what makes the loop skip all the players mentioned in the if above...
If you remove that you would basically be able to kill yourself and team mates.. Kidding me

It worked soo... it isn't the I use but he wanted to use this one Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo