View Single Post
Re: How to detect entity [properties] ?
Old
  (#5)
Tea
Guest
 
Status:
Posts: n/a
Default Re: How to detect entity [properties] ? - 26-05-2004

Code:
 
 
void KeyValue( edict_t *pentKeyvalue, KeyValueData *pkvd )
{
int dod_flag = 0;
 
if (mod_id == DOD_DLL)
{
	if (pentKeyvalue == pent_dod_control_point)
	{
		if (strcmp(pkvd->szKeyName, "point_allies_target") == 0)
			dod_flag = atoi(pkvd->szValue);
	}
} 
 
RETURN_META (MRES_IGNORED);
}
Botman tks for the reply, I have added this code in dll.cpp, is it correct ? And if I want to call this function in bot.cpp, what command should I use ? something like keyvalue ( ??? ); ?

BAStumm, since I am very new of bot coding and C++ so I didn't understand the code you show me, could you tell me more detail what are each line of the code doing so I can learn it but not just copy it, thank you very much.

Last edited by Tea; 26-05-2004 at 23:19..
  
Reply With Quote