players.bots module¶
Provides bot specific functionality.
- class players.bots.BotCmd¶
Bases:
instance
- reset((BotCmd)arg1) None : ¶
Resets all values.
- property buttons¶
Button states.
- property command_number¶
For matching server and client commands for debugging.
- property forward_move¶
Forward velocity.
- property has_been_predicted¶
Client only, tracks whether we’ve predicted this command at least once.
- property impulse¶
Impulse command.
- property mousedx¶
Mouse accum in x from create move.
- property mousedy¶
Mouse accum in y from create move.
- property random_seed¶
For shared random functions.
- property side_move¶
Sideways velocity.
- property tick_count¶
The tick the client created this command.
- property up_move¶
Upward velocity.
- property view_angles¶
Player instantaneous view angles.
- property weaponselect¶
Current weapon ID.
- property weaponsubtype¶
Current weapon ID.
- class players.bots.BotController¶
Bases:
instance
- __init__()¶
Raises an exception This class cannot be instantiated from Python
- is_eflag_set((BotController)arg1, (_engines._sound.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, (_mathlib.QAngle)ang) None : ¶
Sets the bot’s absolute angles.
- set_abs_origin((BotController)arg1, (_mathlib.Vector)vec) None : ¶
Sets the bot’s absolute origin.
- set_active_weapon((BotController)arg1, (str)weapon_name) None : ¶
Gives the bot a weapon.
- property local_angles¶
Sets the bot’s local angles.
- property local_origin¶
Returns the bot’s local origin.