![]() |
bot donīt spawn
hi
iīm pretty new to botcoding iīve an annoying bug when i type addbot in the console only the weapons of the bot spawn but not the bot itself i edited the bot_start.cpp that he uses the class system of the mod. can anyone help me? |
Re: bot donīt spawn
i think this is in the wrong section
|
Re: bot donīt spawn
yes... I'm moving this to the bot coding discussions forum.
Are you sure you updated the linkfunc.cpp file of the HPB_bot with the entities of your mod ? |
Re: bot donīt spawn
yep i did
could the cause be that iīm using a map with the old fgd of my mod? i mean with other start points than yet and why wrong section?? iīm using hpb-bot |
Re: bot donīt spawn
you're using the HPB_bot SOURCE CODE to make your own bot, not the official HPB_bot release... so this is a coding question :)
Actually all the HL bots out here are more or less based on the HPB_bot, you know :) Anyway... is there a menu selection in your mod ? (to join a class, to choose a skin, whatever) Maybe the bots are stuck in this menu that's why they don't appear... Check if their entity has the EF_NODRAW flag set. |
Re: bot donīt spawn
ah ok
yeah i have a vgui menu but ingame they arenīt showed as spectators where should i look for EF_NODRAW in my spawn function for the bot? there isnīt one |
Re: bot donīt spawn
check if (pBot->pEdict->v.effects & EF_NODRAW) is TRUE... that would mean that the bot is spawned, but its model is not rendered by the engine.
Else are you 100% sure you fill the infobuffer correctly in BotCreate() ? Some mods like Counter-Strike need to have a lot more stuff in it than others like HL. |
Re: bot donīt spawn
works now
thx to u pierre edit it only works in free fight how can i force the bot to leave spectator in team mode? |
Re: bot donīt spawn
Hi!
Maybe there`s an extra menu for team mode? try forcing the bots to fire (in_attack) and see if it works... |
Re: bot donīt spawn
welcome bluesy :)
|
All times are GMT +2. The time now is 22:14. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.