--
[ Picked text/plain from multipart/alternative ]
The obvious question (which you've probably looked at): Are you using a
valid engine pointer?
Maybe you're adding the fakeclient to early? Try adding it using a test
concommand or client command.
I've never added them in LevelInit, but I had no problems using
CreateFakeClient in my old FakeClients plugin during GameFrame:
edict_t *pEnt = m_Engine->CreateFakeClient(botName);
On Dec 17, 2007 3:16 PM, Kareem Saleh <[EMAIL PROTECTED]> wrote:
> Thanks for your reply, I am currently using Metamod:source to try and
> spawn a bot on my server. I have looked at the HL2 source code to see
> how the bots are spawned in a mod:
>
> bool StubPlugin::LevelInit(const char *pMapName, const char
> *pMapEntities, const char *pOldLevel, const char *pLandmarkName, bool
> loadGame, bool background)
> {
> META_LOG(g_PLAPI, "LevelInit() called: pMapName=%s", pMapName);
> edict_t *pMyEdict;
> pMyEdict = m_engine->CreateFakeClient("BOBO");
> RETURN_META_VALUE(MRES_IGNORED, true);
> }
>
> what the above code implies is that I have succesfulyl hooked to the
> event "LevelInit" but my server crashes on the "CreateFakeClient" call.
> Any idea why it would crash there? can't seemt o find a proper way to
> spawn a bot through metmod. But I believe it should be simple right?
>
> Thanks in advance,
> Kareem
>
>
>
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders