mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 14:45:38 +03:00
parent
6c80744146
commit
0dd9b97c37
@ -60,6 +60,15 @@ T *CreateBot(const BotProfile *profile)
|
||||
else
|
||||
{
|
||||
T *pBot = nullptr;
|
||||
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
auto name = pentBot->v.netname;
|
||||
Q_memset(&pentBot->v, 0, sizeof(pentBot->v)); // Reset entvars data
|
||||
pentBot->v.netname = name;
|
||||
pentBot->v.flags = FL_FAKECLIENT | FL_CLIENT;
|
||||
pentBot->v.pContainingEntity = pentBot;
|
||||
#endif
|
||||
|
||||
FREE_PRIVATE(pentBot);
|
||||
pBot = GetClassPtr<TWrap>((T *)VARS(pentBot));
|
||||
pBot->Initialize(profile);
|
||||
|
Loading…
Reference in New Issue
Block a user