But this is very inaccurate.
IMO: Cant be done.
Everything can be done :p
I think you can get pretty close with apponidle. Loop through objects, see if there are players near. You could find out how long exactly a pred stays in game, so if it disappears sooner it might have been picked up. Hackthank's health trick might help, but a player might have had full health before picking up a pred. Or worse might have been damaged after he picked it up, but before you check his health again.
Of course the problem is there will always be doubtful times, when a player is close to a pred but the pred is about to dissapear in the following second. Or when mutiple players approach the pred in the same second (who picked it up?).
But I can think of
three four ways to deal with that:
- Use a threaded function (nsc says they're stable in 1.51), check more often than once a second, decreases the chance for doubtful moments
- Be creative with the velocity info of players and try to predict (hellz yeah!)
- Better safe then pretty sure: just give everybody a (extra) pred who's in the doubt zone.
- Improve Hacktank's health trick by damaging a full health player if a pred is about to disappear and you might be able to keep track of the damage done to that player after he picked it up. (pff)
Lotsa work though...
If anyone makes it please call the project 'Shrödinger'...
Sorry for thinking out loud so much :p