It looks like you forgot to add a check if the pounce distance was less than the given value and if the damage was greater than the minimum value. Something like this:
PHP Code:
if(distance >= min && dmg > 12)
Without it, the database will be overloaded with bot hunter pounces because of their near-ranged pounces. (i.e this is an example from my database)
PHP Code:
HUNTER | VICTIM | DAMAGE | DISTANCE | MAP
(2) Hunter | (1) Bill | 785 | 2679 | c1m2_streets
The values in both the damage and distance fields are wrong. Why? Because bot hunters only pounce when survivors are in sight. By adding the check above, this is what happened after (still taken from my database):
PHP Code:
HUNTER | VICTIM | DAMAGE | DISTANCE | MAP
(1) Hunter | Zoey | 3 | 150 | c4m4_milltown_b
The values are now correct. And also if you want to exclude bot hunter and bot victims, that's easy. You just add this:
PHP Code:
if(IsFakeClient(attackerClient) || IsFakeClient(victimClient))
{
return;
}
Wonder how I managed to make this one work in L4D2? It's a simple secret..