Automatic Unstucking

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Automatic Unstucking

Post by greenie »

This plugin automaticly unstucks players when it detects its stuck.
No need for commands to unstuck
It teleports the client to the closest spot (with a max of 5 units away), without being stuck

Thanks to VEN and his Teleport Smoke Grenade plugin, for a example.

Cvars:
amx_autounstuck | 1/0 | Turns plugin on/off
amx_autounstuckeffects | 1/0 | Turns unstuck effects on/off
amx_autounstuckwait | default 6 | Accuracy of unstuck detecting, higher is more accurate and takes more time, value 10 takes 1 second. value 1 takes 0.1 second, do NOT set this to 0, if you dont know what to do with it, leave it on 6

Modules:
Fun
Fakemeta

Versions:
< 1.0 and back, private use and other bug fixing
1.0 dedicated to release for public
1.1 changed statics positions out of loop (optimized unstucking process)
1.2 Added cvar for unstucking precision and changed the loop.
1.3 Optimision...
1.31 Back to get_maxplayers this fixes that some players are being skipped.
1.4 Optimision...
1.5 Statics should make it much faster.

ToDo:
Not hardcode origins to check.

plugin
source
Post Reply

Return to “General Purpose”