mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-05-12 22:44:50 +00:00
Use cod2m funcs
This commit is contained in:
parent
39cc0f9a15
commit
ddb953488d
@ -142,7 +142,7 @@ init()
|
|||||||
|
|
||||||
level.teamBased = true;
|
level.teamBased = true;
|
||||||
|
|
||||||
if ( getcvar( "gamemode" ) == "dm" )
|
if ( getcvar( "g_gametype" ) == "dm" )
|
||||||
level.teamBased = false;
|
level.teamBased = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +259,6 @@ doBotMovement_loop( data )
|
|||||||
|
|
||||||
// move!
|
// move!
|
||||||
self botMovement( int( dir[0] ), int( dir[1] ) );
|
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 ) {}
|
Weapon
|
||||||
botMovement( a, b ) {}
|
*/
|
||||||
botWeapon( a ) {}
|
botWeapon( a )
|
||||||
|
{
|
||||||
|
self switchToWeapon( a );
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user