View Single Post
  #7  
Old 10-25-2002, 06:00 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default

Fixed a typo in the code.

But, if you REALLY want a VI clone, here you go:

Code:
	if (forget_timer->Check() && strcasecmp(GetFeignMemory(),"0") != 0) {
		Client* remember_client = entity_list.GetClientByName(GetFeignMemory());
		if (remember_client != 0)
		{
			if (org_x == GetX() && org_y == GetY())
				forgetchance = 80;
			else
				forgetchance = 15;
			if (!remember_client->CastToClient()->GetFeigned() && rand()%100 <= forgetchance)
			{
				AddToHateList(remember_client,1);
				SetFeignMemory("0");
				forgetchance = 0;
			}
			else if (!remember_client->CastToClient()->GetFeigned())
			{
				SetFeignMemory("0");
				forgetchance = 0;
			}
		}
		else
		{
			SetFeignMemory("0");
		}
	}
Exactly like the VI remember chance. Enjoy.
Reply With Quote