fix: bots at difficulty 0 unable to do anything useful
fix: lang configs unable to parse last translated line (fixes #340) fix: last enemy isn't cleared instantly with dead entity anymore fix: bot weakness in pistol rounds analyzer: improved optimization of useless nodes linkage: make inability to call gamedll player( non-fatal linkage: fixed bot boot on WON engines pre 2000 builds (support for beta 6.5 restored) cvars: added suupport to revert all cvars to defaults via 'yb cvars defaults' cvars: added cv_preferred_personality to select bot default personality refactor: use single function to send hud messages over the bot code bot: added random original podbot welcome message to preserve origins of this bot conf: shuffle bot names and chatter items on conflig load conf: simplified a bit chatter.cfg syntax (old syntax still works build: added support for building with CMake (thanks @Velaron) refactor: rall the memory hooks moved into their one cpp file
This commit is contained in:
parent
01046f7c9a
commit
bf91ef2831
35 changed files with 1256 additions and 734 deletions
31
inc/yapb.h
31
inc/yapb.h
|
|
@ -19,25 +19,7 @@ using namespace cr;
|
|||
#include <product.h>
|
||||
#include <module.h>
|
||||
#include <constant.h>
|
||||
|
||||
// links keywords and replies together
|
||||
struct ChatKeywords {
|
||||
StringArray keywords;
|
||||
StringArray replies;
|
||||
StringArray usedReplies;
|
||||
|
||||
public:
|
||||
ChatKeywords () = default;
|
||||
|
||||
ChatKeywords (const StringArray &keywords, const StringArray &replies) {
|
||||
this->keywords.clear ();
|
||||
this->replies.clear ();
|
||||
this->usedReplies.clear ();
|
||||
|
||||
this->keywords.insert (0, keywords);
|
||||
this->replies.insert (0, replies);
|
||||
}
|
||||
};
|
||||
#include <chatlib.h>
|
||||
|
||||
// tasks definition
|
||||
struct BotTask {
|
||||
|
|
@ -127,16 +109,6 @@ struct Client {
|
|||
ClientNoise noise;
|
||||
};
|
||||
|
||||
// define chatting collection structure
|
||||
struct ChatCollection {
|
||||
int chatProbability {};
|
||||
float chatDelay {};
|
||||
float timeNextChat {};
|
||||
int entityIndex {};
|
||||
String sayText {};
|
||||
StringArray lastUsedSentences {};
|
||||
};
|
||||
|
||||
// include bot graph stuff
|
||||
#include <graph.h>
|
||||
#include <vision.h>
|
||||
|
|
@ -855,6 +827,7 @@ private:
|
|||
|
||||
#include "config.h"
|
||||
#include "support.h"
|
||||
#include "hooks.h"
|
||||
#include "sounds.h"
|
||||
#include "message.h"
|
||||
#include "engine.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue