Raised This Month: $276 Target: $400
 69% 

Automatic Unstucking


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 25645 views - 3.7 KB)
__________________
Um, hi.

Last edited by Ramono; 06-12-2011 at 06:45. Reason: 1.5
Ramono is offline
neogeo
Senior Member
Join Date: Jul 2005
Old 02-17-2007 , 11:58   Re: Automatic Untucking
Reply With Quote #2

thanks
neogeo is offline
godlike
Senior Member
Join Date: Apr 2005
Old 02-17-2007 , 12:17   Re: Automatic Untucking
Reply With Quote #3

Automatic Untucking to Automatic Unstucking
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 02-17-2007 , 12:19   Re: Automatic Unstucking
Reply With Quote #4

Didnt see, thx
__________________
Um, hi.
Ramono is offline
godlike
Senior Member
Join Date: Apr 2005
Old 02-17-2007 , 12:21   Re: Automatic Unstucking
Reply With Quote #5

I have a question .where is the player teleported when he got stuck ?
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 02-17-2007 , 16:15   Re: Automatic Unstucking
Reply With Quote #6

Closest spot that he can get into without being stuck
__________________
Um, hi.
Ramono is offline
FormulaZero
BANNED
Join Date: Feb 2007
Location: Sector 7G
Old 02-17-2007 , 16:37   Re: Automatic Unstucking
Reply With Quote #7

Wow Ramono, very nice plugin original.
FormulaZero is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 02-19-2007 , 16:02   Re: Automatic Unstucking
Reply With Quote #8

cool, untuck, lol, im gonna try
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Old 02-19-2007, 16:10
kp_uparrow
This message has been deleted by kp_uparrow. Reason: opps
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 02-19-2007 , 16:20   Re: Automatic Unstucking
Reply With Quote #9

its working! but i dotn see the message "you should be unstuck now"

tested on fun_allinone (where idiots get stuck)
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 02-19-2007 , 22:57   Re: Automatic Unstucking
Reply With Quote #10

don't create the variables in the while loop, try looking into statics
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply


Thread Tools
Display Modes

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 17:54.


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