Raised This Month: $ Target: $400
 0% 

[Potti] AIM Angle of bot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-06-2014 , 10:09   Re: [Potti] AIM Angle of bot
Reply With Quote #7

PHP Code:
public myCommand(id
    
botangles[id][1] = random_float(-180.0,180.0);

// in fm_cmdstart()

        
if(movement == && alive && button&IN_ATTACK) {
            static 
Float:target[3]
            
get_user_aim(id,target)
            
aim_at_origin(bot,target,angles)
        }
        else if( 
movement != ) { // !add this check!
            
get_uc(uc_handle,UC_ViewAnglesangles

Last edited by lazarev; 03-06-2014 at 10:09.
lazarev is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode