players.bots module

Provides bot specific functionality.

class players.bots.BotCmd

Bases: Boost.Python.instance

__init__((object)arg1) → None
reset((BotCmd)arg1) → None :

Resets all values.

buttons

Button states.

command_number

For matching server and client commands for debugging.

forward_move

Forward velocity.

has_been_predicted

Client only, tracks whether we’ve predicted this command at least once.

impulse

Impulse command.

mousedx

Mouse accum in x from create move.

mousedy

Mouse accum in y from create move.

random_seed

For shared random functions.

side_move

Sideways velocity.

tick_count

The tick the client created this command.

up_move

Upward velocity.

view_angles

Player instantaneous view angles.

weaponselect

Current weapon ID.

weaponsubtype

Current weapon ID.

class players.bots.BotController

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

is_eflag_set((BotController)arg1, (Channel)eflag) → bool :

Returns whether the given effect flag is set.

remove_all_items((BotController)arg1, (bool)bsuit) → None :

Removes all items the bot is wearing.

run_player_move((BotController)arg1, (BotCmd)cmd) → None :

Fires a virtual move command to the bot.

set_abs_angles((BotController)arg1, (QAngle)ang) → None :

Sets the bot’s absolute angles.

set_abs_origin((BotController)arg1, (Vector)vec) → None :

Sets the bot’s absolute origin.

set_active_weapon((BotController)arg1, (str)weapon_name) → None :

Gives the bot a weapon.

local_angles

Sets the bot’s local angles.

local_origin

Returns the bot’s local origin.