.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Re: hpb template 4 metamod & cleaned
Old
  (#21)
dub
Member
 
dub's Avatar
 
Status: Offline
Posts: 89
Join Date: Aug 2004
Location: UK
Default Re: hpb template 4 metamod & cleaned - 27-12-2004

my bad typo error "HTLV" to "HLTV" all is fixed now.
  
Reply With Quote
Re: hpb template 4 metamod & cleaned
Old
  (#22)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: hpb template 4 metamod & cleaned - 27-12-2004

Why always double-post ??!! Ignore this

Last edited by Rifleman; 27-12-2004 at 03:40..
  
Reply With Quote
Re: hpb template 4 metamod & cleaned
Old
  (#23)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: hpb template 4 metamod & cleaned - 27-12-2004

no it isn't , your pfnStart.. should look like this , for CS

Code:
  if (ed)
	  {
	 index = UTIL_GetBotIndex (ed);
   
   // is this message for a bot?
   if (index != -1)
   {
	botMsgFunction = NULL;	 // no msg function until known otherwise
	botMsgEndFunction = NULL;  // no msg end function until known otherwise
	botMsgIndex = index;	   // index of bot receiving message
	
	if (msg_type == GET_USER_MSG_ID (PLID, "VGUIMenu", NULL))
	 botMsgFunction = BotClient_CS_VGUI;
	else if (msg_type == GET_USER_MSG_ID (PLID, "ShowMenu", NULL))
	 botMsgFunction = BotClient_CS_ShowMenu;
	else if (msg_type == GET_USER_MSG_ID (PLID, "CurWeapon", NULL))
	 botMsgFunction = BotClient_CS_CurrentWeapon;
	else if (msg_type == GET_USER_MSG_ID (PLID, "AmmoX", NULL))
	 botMsgFunction = BotClient_CS_AmmoX;
	else if (msg_type == GET_USER_MSG_ID (PLID, "AmmoPickup", NULL))
	 botMsgFunction = BotClient_CS_AmmoPickup;
	else if (msg_type == GET_USER_MSG_ID (PLID, "Damage", NULL))
	 botMsgFunction = BotClient_CS_Damage;
	else if (msg_type == GET_USER_MSG_ID (PLID, "Money", NULL))
	 botMsgFunction = BotClient_CS_Money;
	else if (msg_type == GET_USER_MSG_ID (PLID, "ScreenFade", NULL))
	 botMsgFunction = BotClient_CS_ScreenFade;
			}
	  }
   else if (msg_dest == MSG_ALL)
	  {
		 botMsgFunction = NULL;  // no msg function until known otherwise
		 botMsgIndex = -1;	   // index of bot receiving message (none)
   
		 if (msg_type == GET_USER_MSG_ID (PLID, "DeathMsg", NULL))
			botMsgFunction = BotClient_CS_DeathMsg;
	  }
   else
   {
   // Steam makes the WeaponList message be sent differently
		 botMsgFunction = NULL;  // no msg function until known otherwise
		 botMsgIndex = -1;	   // index of bot receiving message (none)
   if (msg_type == GET_USER_MSG_ID (PLID, "WeaponList", NULL))
	  botMsgFunction = BotClient_CS_WeaponList;
		 else if (msg_type == GET_USER_MSG_ID (PLID, "HLTV", NULL))
   botMsgFunction = BotClient_CS_HLTV;
   }
And theres some problem with the template hltv intercepting function (bot_client.cpp) , look for fixed one in the HPB_bot forum

And yes , another big bug in your template , all command like "waypoint" , "pathwaypoint", "observer" etc etc are unusable , only those you register with metamod is usable
  
Reply With Quote
Re: hpb template 4 metamod & cleaned
Old
  (#24)
dub
Member
 
dub's Avatar
 
Status: Offline
Posts: 89
Join Date: Aug 2004
Location: UK
Default Re: hpb template 4 metamod & cleaned - 28-12-2004

uploaded a fixed version, hltv message bug fixed & added a simple cmd parser
the only major problem is steam keeps exiting cs when i start up a lan server similar to what happens with an invalid game dll in liblist.gam maybe it`s a buffer overrun in metamod because the dir is very deep for steam.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com