1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Answered Need help with code

Discussion in 'Call of Duty: Black Ops 3 Answered Questions' started by TwinightCow, Dec 3, 2016.

  1. TwinightCow

    TwinightCow Member

    18
    8
    108
    Credits:
    298
    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.
     
  2. LowKeyDNS

    LowKeyDNS Guest

    Credits:
    0
    Just change 'thread [[level.callbackPlayerDamage]](...' to 'dodamage(...', and convert the parameters. A copy of the dodamage documentation is as follows:
    Please login or register to view links or downloads!

    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!
     
    SCP and CabCon like this.
  3. TwinightCow

    TwinightCow Member

    18
    8
    108
    Credits:
    298
    Thanks! Ill try it
     
  4. SCP

    SCP Moderator Staff Member Donator

    332
    354
    73
    Credits:
    2,529
    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!
     

Share This Page