![]() |
Slight problem with uber simple bot.
Hello,
Im currently just writing a small bot, which just needs to be a player on a team (In natural-selection the game doesnt start unless both teams have at least one play, so I just need a bot to be on the other team while I test whatever I need to test), I've used some code from HPB_Bot, which spawns the bot and makes him connect. Well, I'm happy to say, the bot spawns, joins a team that I want it to, but, it does not show up on the scoreboard, it shows up on status/rcon users however. Is there something I'm missing here? Any help would be great. Thanks - voogru. |
Re: Slight problem with uber simple bot.
That does sound odd, are you calling the player function of the mod? ie: CALL_GAME_ENTITY ( I'm assuming this is for metamod ).
|
Re: Slight problem with uber simple bot.
Auctually I'm not using metamod, but I am calling the game entity.
Code:
|
Re: Slight problem with uber simple bot.
I don't know why this works, it just does though. Change where necissary...
Code:
const char* pszName = "Badger"; |
Re: Slight problem with uber simple bot.
When you mean "doesn't show up in the scoreboard" do you mean the bot doesn't show up AT ALL, even in grey or with the spectators ?
|
Re: Slight problem with uber simple bot.
That worked.
Thanks! |
Re: Slight problem with uber simple bot.
And I meant that they didnt show up on the scoreboard at all, not even under spectators. As if they were not even there.
|
Re: Slight problem with uber simple bot.
I think its one of those wierd engine things, when I was working on a bot long ago it would also do wierd things unless RunPlayerMove was called.
|
Re: Slight problem with uber simple bot.
now what I don't understand is that you said the code Lazy posted WORKS although the bot is not using metamod, WTF ??? how on earth can this be ????:(
|
Re: Slight problem with uber simple bot.
I told him to modify the code as needed, all of the metamod stuff can be done in a standalone dll.
Unless I completely mis-understood what you were saying. |
All times are GMT +2. The time now is 23:25. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.