AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Automatic Unstucking (https://forums.alliedmods.net/showthread.php?t=51409)

Ramono 02-17-2007 11:39

Automatic Unstucking
 
3 Attachment(s)
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.

neogeo 02-17-2007 11:58

Re: Automatic Untucking
 
thanks

godlike 02-17-2007 12:17

Re: Automatic Untucking
 
Automatic Untucking to Automatic Unstucking

Ramono 02-17-2007 12:19

Re: Automatic Unstucking
 
Didnt see, thx :P

godlike 02-17-2007 12:21

Re: Automatic Unstucking
 
I have a question .where is the player teleported when he got stuck ?

Ramono 02-17-2007 16:15

Re: Automatic Unstucking
 
Closest spot that he can get into without being stuck

FormulaZero 02-17-2007 16:37

Re: Automatic Unstucking
 
Wow Ramono, very nice plugin original.

kp_uparrow 02-19-2007 16:02

Re: Automatic Unstucking
 
cool, untuck, lol, im gonna try

kp_uparrow 02-19-2007 16:20

Re: Automatic Unstucking
 
its working! but i dotn see the message "you should be unstuck now"

tested on fun_allinone (where idiots get stuck)

Emp` 02-19-2007 22:57

Re: Automatic Unstucking
 
don't create the variables in the while loop, try looking into statics


All times are GMT -4. The time now is 19:12.

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