Thread: [Solved] [TF2] making bots do things
View Single Post
Author Message
Marqueritte
Junior Member
Join Date: Dec 2019
Location: Asia
Old 07-14-2020 , 08: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 17:13.
Marqueritte is offline