Destuckme-script For Ns-servers
j0nas
Join Date: 2002-11-24 Member: 9835Members
<div class="IPBDescription">Tired of getting stuck in buildings?</div> I noticed that it's pretty easy to get stuck inside buildings in NS, I've accidentally stuck the very same player inside three different buildings while commanding, so far!
So, I've written an AMX-script for servers that'll teleport stuck people to the nearest teammate who's not in combat, when the stuck player says '/stuck' in the chat.
Pop on over and download <a href='http://djeyl.net/amx-dl.php' target='_blank'>AMX</a> 0.7.3, then download the <a href='http://djeyl.net/amx-plugins.php?cat=3' target='_blank'>destuckme-script</a>.
AMX is a pretty damn handy scripting-language. Not all of the default plugins work with NS though, I'm just running the basic ban/kick commands, antiflood and destuckme on my server right now.
So, I've written an AMX-script for servers that'll teleport stuck people to the nearest teammate who's not in combat, when the stuck player says '/stuck' in the chat.
Pop on over and download <a href='http://djeyl.net/amx-dl.php' target='_blank'>AMX</a> 0.7.3, then download the <a href='http://djeyl.net/amx-plugins.php?cat=3' target='_blank'>destuckme-script</a>.
AMX is a pretty damn handy scripting-language. Not all of the default plugins work with NS though, I'm just running the basic ban/kick commands, antiflood and destuckme on my server right now.
Comments
I will try to implement this on my server soon.
That's not good :/
I was going to ask if I could convert it to Adminmod... except after you issue the command, it waits 5-10 secs before actually moving you, and when you issue it it also "sticks" you so you can't move. (Which isn't a problem when you are stuck already.
The only problem is Adminmod has no way to determine if someone is currently in battle, so it'd have to just move them to the nearest teammate.
What do you think?
For now I think using kill is the only non-exploitable way to get around this...
I'm not too worried about people exploiting it. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
-Slappy
I'd consider making it NS-specific, or adding special NS-functionality for hives and marine-spawns, but I can't since I have no idea how to track things such as hives and spawn-locations in NS with AMX, at least not without significant effort on my part.
I'm not too worried about people exploiting it. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
LOL, okay, that sounds a little better! Nice work around for making the script less exploitable.
although 10 seconds seems a little extream, I could just type kill into my console and come back in 5 seconds (usually) with full health and armor.
Otherwise, would you care if I tried to code a Adminmod version of this j0nas?
Thanks again j0nas, I'll work on it this week.
Thanks alot! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->