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.
