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:
jeefo 2023-05-08 00:44:14 +03:00
commit 3009b4f50a
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
8 changed files with 101 additions and 26 deletions

View file

@ -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;