![]() |
|
[Plugin] Pedestrians - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13) ---- Forum: Plugins (https://forum.open.mp/forumdisplay.php?fid=32) ---- Thread: [Plugin] Pedestrians (/showthread.php?tid=4305) |
Pedestrians - connyxv - 2026-06-25 Hello everyone! I've been working on a new pedestrian system for SA-MP and open.mp. Most of the older ped scripts out there rely on traditional NPCs, which is kind of a pain because they eat up your player slots and i hate to see in the tablist "BOT_1" with the black color to hide it, they also can cause serious server lag if you try to spawn hundreds of them. To fix this, this system relies entirely on Actors. It uses a custom C++ plugin that loads the original GTA SA path nodes (i extracted them and put them in the pedpaths.json) and handles all the heavy lifting (math and background pathfinding) so the PAWN server doesn't choke. The include just handles streaming the actors dynamically around players using a recycled global pool. Main Features: 1. Uses zero player slots. 2. Fast C++ pathfinding with predictive spawning (calculates where players are heading so peds spawn naturally ahead of you, preventing node clustering). 3. Dynamic reactions: if you shoot a gun near them, they panic and sprint away. If you run them over with a vehicle, they fall to the ground, get back up after a few seconds, and resume their walk. 4. If you aim at them with a weapon, they'll put their hands up (OnPlayerAimPedestrian, that's in the example script, u can ignore this function if not needed) 5. Customizable skins and walking styles in the include. 6. 100% open.mp compatible. Source Code & Download: GitHub It's compiled for both Windows (.dll) and Linux (.so 32-bit). You'll find instructions on how to use it and compile it from source if u want. Feel free to test it out, fork it, or drop a PR if you want to contribute. Let me know if you run into any weird bugs! I am also working on another plugin, drivers.dll, i think in a week or two i will publish it. Video preview: (sorry for the shitty music, that's audio added with the youtube editor so i was very limited) [Video: https://www.youtube.com/watch?v=ecZSkwN3gOE] |