mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-04-22 23:25:42 +00:00
fix movement
This commit is contained in:
parent
25d60f2a62
commit
f5c9294176
@ -58,11 +58,11 @@ BotBuiltinBotStop()
|
|||||||
Sets the bot's movement
|
Sets the bot's movement
|
||||||
<client> botMovement(<int left>, <int forward>)
|
<client> botMovement(<int left>, <int forward>)
|
||||||
*/
|
*/
|
||||||
BotBuiltinBotMovement( left, forward )
|
BotBuiltinBotMovement( forward, right )
|
||||||
{
|
{
|
||||||
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["botmovement"] ) )
|
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["botmovement"] ) )
|
||||||
{
|
{
|
||||||
self [[ level.bot_builtins["botmovement" ]]]( left, forward );
|
self [[ level.bot_builtins["botmovement" ]]]( forward, right );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ do_botstop()
|
|||||||
// self BotStop();
|
// self BotStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
do_botmovement( right, forward )
|
do_botmovement( forward, right )
|
||||||
{
|
{
|
||||||
// best i can do for libcod...
|
// best i can do for libcod...
|
||||||
if ( forward > 63 )
|
if ( forward > 63 )
|
||||||
@ -127,7 +127,7 @@ do_botmovement( right, forward )
|
|||||||
|
|
||||||
self setwalkdir( "none" );
|
self setwalkdir( "none" );
|
||||||
|
|
||||||
// self botMovement( right, forward );
|
// self botMovement( forward, right );
|
||||||
}
|
}
|
||||||
|
|
||||||
do_isbot()
|
do_isbot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user