mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-16 03:45:06 +00:00
add an aim_random bot command
This commit is contained in:
parent
010447c9e3
commit
9b9cf0d6e1
@ -342,6 +342,10 @@ sub busybot_cmd_bot_execute($$@)
|
||||
{
|
||||
$commands .= sprintf "sv_cmd bot_cmd %d %s\n", $bot->{id}, join " ", @{$_}[1..@$_-1];
|
||||
}
|
||||
elsif($_->[0] eq 'aim_random')
|
||||
{
|
||||
$commands .= sprintf "sv_cmd bot_cmd %d aim %f 0 %f\n", $_->[1] + rand($_->[2] - $_->[1]), $_->[3];
|
||||
}
|
||||
elsif($_->[0] eq 'barrier')
|
||||
{
|
||||
$commands .= sprintf "sv_cmd bot_cmd %d barrier\n", $bot->{id};
|
||||
|
Loading…
Reference in New Issue
Block a user