mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
parent
6c80744146
commit
0dd9b97c37
@ -60,6 +60,15 @@ T *CreateBot(const BotProfile *profile)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
T *pBot = nullptr;
|
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);
|
FREE_PRIVATE(pentBot);
|
||||||
pBot = GetClassPtr<TWrap>((T *)VARS(pentBot));
|
pBot = GetClassPtr<TWrap>((T *)VARS(pentBot));
|
||||||
pBot->Initialize(profile);
|
pBot->Initialize(profile);
|
||||||
|
Loading…
Reference in New Issue
Block a user