Use cod2m funcs

This commit is contained in:
ineedbots 2021-06-29 19:59:25 -06:00
parent 39cc0f9a15
commit ddb953488d
2 changed files with 9 additions and 7 deletions

View File

@ -142,7 +142,7 @@ init()
level.teamBased = true;
if ( getcvar( "gamemode" ) == "dm" )
if ( getcvar( "g_gametype" ) == "dm" )
level.teamBased = false;
}
@ -455,7 +455,7 @@ connected()
spawnBot()
{
self endon( "disconnect" );
wait 5;
self notify( "menuresponse", game["menu_team"], "autoassign" );

View File

@ -259,7 +259,6 @@ doBotMovement_loop( data )
// move!
self botMovement( int( dir[0] ), int( dir[1] ) );
self setOrigin( self.origin + vector_scale( vectorNormalize( move_To - self.origin ), 25 ) );
}
/*
@ -2099,7 +2098,10 @@ bot_lookat( pos, time, vel )
}
}
botStop() {}
botAction( a ) {}
botMovement( a, b ) {}
botWeapon( a ) {}
/*
Weapon
*/
botWeapon( a )
{
self switchToWeapon( a );
}