Raised This Month: $ Target: $400
 0% 

[L4D2] Player Unstick


Post New Thread Reply   
 
Thread Tools Display Modes
leiftiger
Junior Member
Join Date: Oct 2009
Old 12-01-2009 , 04:48   Re: [L4D2] Player Unstick
Reply With Quote #51

Quote:
Originally Posted by dirka_dirka View Post
the reason for the plugin was to fix the charger stick issue - which was fixed. however since l4d1 there have been cases and places where you can still get stuck. so this plugin still has a use and should be approved.

does it unstick infected? i had this happen to me the other night while being a hunter.

i plan to add this to my server, but might restrict it to admin use.
This plugin is for both survivors and infected, not only charger.
leiftiger is offline
Ydiss
Member
Join Date: Jan 2009
Old 12-09-2009 , 19:21   Re: [L4D2] Player Unstick
Reply With Quote #52

This needs to be approved again. I've used this twice since the charger fix. I was a charger myself when using it.

This is still a very useful plugin and I'm keeping it on my server indefinitely.
Ydiss is offline
PeterFreimann
Member
Join Date: Dec 2009
Old 02-06-2010 , 05:54   Re: [L4D2] Player Unstick
Reply With Quote #53

Error-Message on my L4D2 Servers:

[SM] Plugin encountered error 15: Array index is out of bounds
L 02/06/2010 - 11:29:25: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 02/06/2010 - 11:29:25: [SM] [0] Line 57, /home/groups/alliedmodders/forums/files/5/2/3/6/9/54198.attach::OnClientDisconnect()
PeterFreimann is offline
cartman-2000
Member
Join Date: Aug 2007
Old 04-06-2010 , 03:40   Re: [L4D2] Player Unstick
Reply With Quote #54

do you have more then 19 slots on your server?

This also works on servers from other games too, with a few modifications.
cartman-2000 is offline
IronWarrior
Veteran Member
Join Date: Jan 2010
Old 04-06-2010 , 03:58   Re: [L4D2] Player Unstick
Reply With Quote #55

If a hunter/jockey/smoker/charger has you, you can't use this command to escape right?
IronWarrior is offline
cigs
Senior Member
Join Date: Jul 2006
Old 04-06-2010 , 06:05   Re: [L4D2] Player Unstick
Reply With Quote #56

right
__________________
cigs is offline
IronWarrior
Veteran Member
Join Date: Jan 2010
Old 04-06-2010 , 06:49   Re: [L4D2] Player Unstick
Reply With Quote #57

Quote:
Originally Posted by cigs View Post
right
Thank you, just wanted to check.
IronWarrior is offline
CUatTHEFINISH
Member
Join Date: Apr 2009
Old 04-23-2010 , 12:26   Re: [L4D2] Player Unstick
Reply With Quote #58

Quote:
Originally Posted by PeterFreimann View Post
Error-Message on my L4D2 Servers:

[SM] Plugin encountered error 15: Array index is out of bounds
L 02/06/2010 - 11:29:25: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 02/06/2010 - 11:29:25: [SM] [0] Line 57, /home/groups/alliedmodders/forums/files/5/2/3/6/9/54198.attach::OnClientDisconnect()
cartman-2000 is correct, this error should only happen if your maxplayers is above the max array size set in the code. As far as I know L4D1 and L4D2 only support maxplayers of 18, so there shouldn't be a reason to set that higher in your server command line. Unless a new update snuck that in somewhere.
__________________
CUatTHEFINISH is offline
IronWarrior
Veteran Member
Join Date: Jan 2010
Old 05-28-2010 , 08:10   Re: [L4D2] Player Unstick
Reply With Quote #59

Awesome, thank you V10.

Will install your version.
IronWarrior is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 05-28-2010 , 13:34   Re: [L4D2] Player Unstick
Reply With Quote #60

Don't think I ever looked at the code before, but now I found a few more places to improve the code from v10. This is basically what I did:
PHP Code:
/*
    v1.1 (by me) was modified from v1.0.7:
    -    Fixed up 1 if/else if case.. removed 3 or 4 checks, with the poential to skip a couple more.
    -    Fixed another if/else case from 2 possibilites to 3 (with the same number of checks).
    -    Made the teleport somewhat random (x & y only - z should always be up).
    -    Renamed the command from stuck to sm_stuck. This allows you to use sm_stuck in console, as well as !stuck, !sm_stuck, /stuck and /sm_stuck in chat.
    -    Added color the the chat messages
    -    Renamed the global vars and initialized the handles.
    -    Reduced the number of calls on the teleport cvar.
    -    Enforced good code format (with #pragma semicolon 1)
    -    Cleaned up indentation and some un-necessary comments (either from code that no longer exists or because the var name is more clear now).
*/ 
You can change the amount of teleporting with:
PHP Code:
#define    MIN_TELEPORT        3
#define    MAX_TELEPORT        5 
near the top of the source - the original was just 4. I haven't played around with the numbers much yet which is why I setup the option like that.

*removed plugin - see later post..

Last edited by dirka_dirka; 07-09-2010 at 20:06. Reason: removed plugin from this post.
dirka_dirka is offline
Reply



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 23:30.


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