View Single Post
Re: JK_Botti with DMC?
Old
  (#4)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 215
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: JK_Botti with DMC? - 30-07-2016

@Weasel

Well jk_botti doesn't include the bot_start.cpp that is required for DMC and as Whistler says on "_firstspawn" command. But it is shouldn't be globally used for HLDM and Op4DM cos of fact that players automatically spawn when the MOTD appears, but in DMC you need to program the bot to manually spawn when "their" MOTD appears.

For bot_start.cpp to support JK_Botti that was used for HPB, you will need like "void BotStartGame" and to detect the "mod_id DMC_DLL" for that to work for DMC.

For example:-
Code:
void BotStartGame( bot_t *pBot )
{
   if (mod_id == DMC_DLL)
   {
	   FakeClientCommand(pEdict, "_firstspawn", NULL, NULL);
	   
	   pBot->not_started = 0;
   }
But that code is incomplete as you will also need to include the bot header files like bot_func.h and recode it for "BotStartGame".

I've been trying to alter and recompile JK_Botti for DMC by including the DMC weapons and ammo entities required, and works fine but without using bot_start.cpp. If you or anyone like to maybe help out if you wish, then that's up to you.





vBulletin Webmaster since 2001
  
Reply With Quote