Raised This Month: $ Target: $400
 0% 

Automatic Unstucking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose        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 - 27327 views - 3.7 KB)
__________________
Um, hi.

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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode