View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 02-17-2007 , 11:39   Automatic Unstucking
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (stuck.sma - 27287 views - 3.7 KB)
__________________
Um, hi.

Last edited by Ramono; 06-12-2011 at 06:45. Reason: 1.5
Ramono is offline