Spawning fakeclient crashes server
Hi, I am terrible with fakemeta, and have never done anything using fakeclients before. I got this code from another post in the forum and modified it some. I am trying to spawn a fakeclient that will take up a player spot. That model is precached btw :P
Code:
|
Re: Spawning fakeclient crashes server
Code:
|
Re: Spawning fakeclient crashes server
It still crashes with that, although I found out it doesn't crash if I am not near it (or when I walk through it... which I don't know why I can wak through it).
Seems to crash when I walk through it I guess. |
Re: Spawning fakeclient crashes server
http://svn.alliedmods.net/viewvc.cgi...06&view=markup
You can look at OneEyed Round End Blocker too for reference. |
Re: Spawning fakeclient crashes server
I'm using the mod Team Fortress Classic, and I can get the bot to join the game with that method, but I cannot get them to join a team.
I tried using... client_cmd(botid, "jointeam 1"); jointeam 1 is the command to join the blue team, but this did not work. |
Re: Spawning fakeclient crashes server
Your going to have to use engclient_cmd(...); From looking at FoxBot source code. It get little complex cause it wait for the bot to think and do other stuff including the joining team and class.
|
Re: Spawning fakeclient crashes server
Thanks for the help teame :D
|
Re: Spawning fakeclient crashes server
Bit of a thread hijack but..
How do you remove bots created with CreateFakeClient? RemoveEntity? or server command kick the id from get_user_userid? My plugin keeps crashing randomly and I think that may be the problem (I'm kicking using the server command) |
Re: Spawning fakeclient crashes server
From Dajrokan's kz_dajrokan.sma:
Code:
public mi_bot_connect() {greetz regalis |
Re: Spawning fakeclient crashes server
And that works fine? Guess that's not the cause of the crash problem then.
Thanks |
| All times are GMT -4. The time now is 06:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.