bot: add basic support to play as zombie bot
aim: check that we're actually hit the target in body checks
This commit is contained in:
parent
70ff2d0ec2
commit
3009b4f50a
8 changed files with 101 additions and 26 deletions
|
|
@ -307,6 +307,11 @@ public:
|
|||
return m_paths.length <int32_t> ();
|
||||
}
|
||||
|
||||
// get the random node on map
|
||||
int32_t random () const {
|
||||
return rg.get (0, length () - 1);
|
||||
}
|
||||
|
||||
// check if has editor
|
||||
bool hasEditor () const {
|
||||
return !!m_editor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue