AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved [TF2] making bots do things (https://forums.alliedmods.net/showthread.php?t=325993)

Marqueritte 07-14-2020 08:27

[TF2] making bots do things
 
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);
                            
    }            



Marqueritte 07-14-2020 17:14

Re: [TF2] making bots do things
 
nvm seems like making them duck afterwards seem easier and works better


All times are GMT -4. The time now is 00:13.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.