06.02.2013, 20:33
I think you are referring to the topic I created (https://sampforum.blast.hk/showthread.php?tid=379268) where I had the same question. By now I have found a pretty lag-free way of doing these pickups, unfortunately this still involves OnPlayerUpdate().
My way of doing it is I divide my objects into "maps" (maps have objects, pickups, ...). This way I can rule out any pickups from other maps and only check for a player when he's on a map with pickups. I narrowed down OnPlayerUpdate() with a few other things aswel.
If your question is, is there a way I can detect if a player picks up one of my pickups without any sort of heavy computing, no thats not possible, with very little computing, yes. Either way you'll need a powerful server if you're planning on doing pickup streaming with lots of players. It will always include a loop over every single pickup which is where the main cpu usage will occur.
I know exactly what kind of system you're thinking about, I would like it too and it has been suggested numerous times but it unfortunately, for some reason, has always been rejected.
EDIT: Position prediction can never be accurate, especially with high-speed maps like these. For every 50 pickups you'll hit there are 2 you won't.
My way of doing it is I divide my objects into "maps" (maps have objects, pickups, ...). This way I can rule out any pickups from other maps and only check for a player when he's on a map with pickups. I narrowed down OnPlayerUpdate() with a few other things aswel.
If your question is, is there a way I can detect if a player picks up one of my pickups without any sort of heavy computing, no thats not possible, with very little computing, yes. Either way you'll need a powerful server if you're planning on doing pickup streaming with lots of players. It will always include a loop over every single pickup which is where the main cpu usage will occur.
I know exactly what kind of system you're thinking about, I would like it too and it has been suggested numerous times but it unfortunately, for some reason, has always been rejected.
EDIT: Position prediction can never be accurate, especially with high-speed maps like these. For every 50 pickups you'll hit there are 2 you won't.