Donate Now Goal amount for this month: 95 USD, Received: 20 USD (21%)

+ Reply to Thread
Results 1 to 3 of 3

Thread: Easy TriggerBot Mechanism

  1. #1
    Join Date
    Aug 2009
    Location
    where do you live?
    Posts
    64
    Thanks
    3
    Thanked 6 Times in 2 Posts
    Rep Power
    13

    Simple TriggerBot Mechanism

    I was messing around with this last night, this will be toggled when your crosshair is over a local player on your team. In MOHAA there is no other way to get the enemys info from just having the crosshair over the entity using this method.
    Code:
    		if(cg->snap->ps.stats[ 27 ] > -1) //-1 not valid
    
    		{
    
    
    SendConsoleCommand("+attackprimary"); //just a example
    			}
    
    
    if(cg->snap->ps.stats[ 27 ] = -1) // //tested this without really messing with it and it works fine but could use some work
    
    		{
    
    
    SendConsoleCommand("-attackprimary"); //release
    			}
    Also you can get your attackers info, but only when your under attack..You could use this to improve your aimbot..
    Code:
    if(bot.cg->snap->ps.stats[ 26 ] > -1) //-1 not valid
    
    		{
    int clientNum = bot.cg->snap->ps.stats[ 26 ];
    Target( clientNum) //just a example
    SendConsoleCommand("+attackprimary"); //just a example
    
    			}


    im commin in imm commin in your server
    \_ <O_o> _/ steve forgot his earmuffs!

  2. #2
    Join Date
    Jun 2007
    Location
    Deutsches Reich
    Posts
    944
    Thanks
    26
    Thanked 49 Times in 30 Posts
    Rep Power
    90

    Re: Simple TriggerBot Mechanism

    isn't playerstats only counted on teams
    Quote Originally Posted by wav View Post
    Your language is set to Terrorist. PB kicks for that you know.

  3. #3
    Join Date
    Aug 2009
    Location
    where do you live?
    Posts
    64
    Thanks
    3
    Thanked 6 Times in 2 Posts
    Rep Power
    13

    Re: Simple TriggerBot Mechanism

    Quote Originally Posted by kingorgy96 View Post
    isn't playerstats only counted on teams
    yeah i think so.. ive only found getting the attackersinfo useful right now because it returns the clientnum of yourattack so you can use this to target the clientnumber.. I tested some of the other stats such as STAT_KILLS, and it counts your kills local in a free-for-all gametype but then again it counts the teams kills in any other team-based gametypes...so not really useful there either only thing i could think cool to use would be a name announcer for your team lol guess it could be effective code though with the amount that is required to do it.


    im commin in imm commin in your server
    \_ <O_o> _/ steve forgot his earmuffs!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Triggerbot
    By Xeno123 in forum Team Fortress 2
    Replies: 13
    Last Post: 12-19-2009, 08:28 PM
  2. Triggerbot help
    By mencore in forum Beginner
    Replies: 8
    Last Post: 04-29-2008, 03:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts