mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-05-12 14:34:51 +00:00
Use cod2m funcs
This commit is contained in:
parent
39cc0f9a15
commit
ddb953488d
@ -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" );
|
||||
|
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user