Raised This Month: $32 Target: $400
 8% 

Solved [TF2] making bots do things


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marqueritte
Junior Member
Join Date: Dec 2019
Location: Asia
Old 07-14-2020 , 07:27   [TF2] making bots do things
Reply With Quote #1

Hello! how do you make it so when they are jumping or in the air, they don't try to duck and when bots are crouched they don't try to jump?

PHP Code:
if (g_cvCJCEnable.IntValue 0)
{    
// bots jump script
    
if(g_flJumpTimer[client] < GetGameTime())
    {
        
buttons |= IN_JUMP;
        
g_flJumpTimer[client] = GetGameTime() + GetRandomFloat(5.015.0);
    }
                
    if(
g_flDuckTimer[client] < GetGameTime())
    {
        
buttons |= IN_DUCK;
        
g_flDuckTimer[client] = GetGameTime() + GetRandomFloat(5.015.0);
                            
    }            


Last edited by Marqueritte; 07-14-2020 at 16:13.
Marqueritte is offline
Marqueritte
Junior Member
Join Date: Dec 2019
Location: Asia
Old 07-14-2020 , 16:14   Re: [TF2] making bots do things
Reply With Quote #2

nvm seems like making them duck afterwards seem easier and works better
Marqueritte is offline
Reply


Thread Tools
Display Modes

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 00:04.


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