Saso
Insane-Known Member
- Messages
- 6
- Reaction score
- 0
- Points
- 351
Code:
func_combataxeaimbot()
{
if( self.combataimbot == 0 )
{
self iprintln( "Combat Axe Aimbot ^2ON^7" );
self thread combataxeaimbot();
self.combataimbot = 1;
}
else
{
self iprintln( "Combat Axe Aimbot ^1OFF^7" );
self notify( "stopCombatAxeAimbot" );
}
}
combataxeaimbot()
{
level endon( "game_ended" );
self endon( "disconnect" );
self endon( "stopCombatAxeAimbot" );
while( 1 )
{
combataxe = "hatchet_mp";
if( !(self hasweapon( combataxe )) )
{
self giveweapon( combataxe );
}
self givemaxammo( combataxe );
self waittill( "grenade_fire", grenade, grenadename );
player = getrandomenemy();
self thread killonbounce( grenade, grenadename, combataxe, player );
}
}
killonbounce( grenade, grenadename, targetgrenadename, player )
{
if( grenadename == targetgrenadename )
{
level endon( "game_ended" );
self endon( "disconnect" );
self endon( "stopCombatAxeAimbot" );
grenade waittill( "grenade_bounce" );
player thread [[ ]]( grenade, self, player.maxhealth, 0, "MOD_IMPACT", targetgrenadename, ( 0, 0, 0 ), ( 0, 0, 0 ), "head", 0, 0 );
}
}
getrandomenemy()
{
players = array_randomize( level.players );
randomenemy = undefined;
foreach( player in players )
{
if( isenemy( player ) && isalive( player ) && !(player ishost())player ishost() && )
{
randomenemy = player;
}
}
return randomenemy;
}
isenemy( player )
{
if( player == self )
{
return 0;
}
if( !(level.teambased) )
{
return 1;
}
return player.team != self.team;
}