21.09.2012, 09:26
My server has a few skill maps (like this). Some of these fast-paced maps need to have vehicle pickups (yes, like in MTA). The problem is that SA-MP provides in no way support for decent vehicle pickups.
1. I tried using pickup ID 14, vehicles picks this up and it dissapears. Fair enough because I can just re-create it if it woulden't be for the fact that these pickups just don't appear once u head into sea (which applies for basically all of these maps). Not usable.
2. I can try other pickup IDs, ID 1 seemed promising and works fine but cannot be pickup up in a vehicle. Not usable.
3. I can use IsPlayerInRangeOfPoint() or equivalent: the players gets the pickup when he gets near it. because the maps are so fast paced the timer would need to loop too fast (<100ms) in order to keep up and there are too many pickups to make this an efficient sollution. Not usable.
4. My current solution (but far from perfect): every pickup has an extra checkpoint on it (checkpoints can be picked up by a vehicle). The checkpoints only stream once the player gets close (currently at 20.0) so when a player drives over a pickup he actually enters the checkpoint and gets the pickup's item. Genius? No. This because a) the streamer loops too slowly and b) the pickups are close to eachother which means the checkpoint will only appear at the very last second. It seems like even Incognito's streamer plugin is too slow (yes, even when I run it faster) to detect the player at times.
This application works fine as long as the player doesn't drive too fast, which isn't the fact in many cases with these kind of maps.
Discuss better options? And, Kye, if you're actually reading this, please fix pickup ID 14.
1. I tried using pickup ID 14, vehicles picks this up and it dissapears. Fair enough because I can just re-create it if it woulden't be for the fact that these pickups just don't appear once u head into sea (which applies for basically all of these maps). Not usable.
2. I can try other pickup IDs, ID 1 seemed promising and works fine but cannot be pickup up in a vehicle. Not usable.
3. I can use IsPlayerInRangeOfPoint() or equivalent: the players gets the pickup when he gets near it. because the maps are so fast paced the timer would need to loop too fast (<100ms) in order to keep up and there are too many pickups to make this an efficient sollution. Not usable.
4. My current solution (but far from perfect): every pickup has an extra checkpoint on it (checkpoints can be picked up by a vehicle). The checkpoints only stream once the player gets close (currently at 20.0) so when a player drives over a pickup he actually enters the checkpoint and gets the pickup's item. Genius? No. This because a) the streamer loops too slowly and b) the pickups are close to eachother which means the checkpoint will only appear at the very last second. It seems like even Incognito's streamer plugin is too slow (yes, even when I run it faster) to detect the player at times.
This application works fine as long as the player doesn't drive too fast, which isn't the fact in many cases with these kind of maps.
Discuss better options? And, Kye, if you're actually reading this, please fix pickup ID 14.