AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Stuck (08/27/2015) (https://forums.alliedmods.net/showthread.php?t=243151)

Erreur 500 06-30-2014 11:44

[ANY] Stuck (08/27/2015)
 
1 Attachment(s)
STUCK


---------------------------------------------------------
It must works on all games which run Sourcemod.
---------------------------------------------------------
Last Change (08/27/2015): Show log, Change : All files


Description

Because the world isn't perfect, sometime you can be stuck in a wall, a prop or a player. And the solution is the death...
That time is the past thanks to !stuck. Now you just have to write !stuck and you will be teleported in a better place next to you.



How does it work ?


When a player use !stuck, this plugin will check if the player is really stuck. If it's true, it will analyze all positions in the radius (def=200) with a step (def=20). If a position is found, player will be teleported, else player is too far from a valid position.

Commands:
Quote:

!stuck // No flag needed
!unstuck // No flag needed


CVARs :
Code:

- stuck_limit  (def = 7)                  //How many !stuck can a player use ? (0 = no limit)
- stuck_wait  (def = 300)              //Time to wait before earn new !stuck.

Only for people who know what their are doing (more information here)
- stuck_radius  (def = 200)                  // Radius size to fix player position.
- stuck_step  (def = 20)                      // Step between each position tested.

For Developer :
Spoiler




Installation

stuck.smx in addons\sourcemod\plugins
stuck.sp in addons\sourcemod\scripting
stuck.inc in addons\sourcemod\scripting\include


Game confirmed :

TF2 - Doesn't work on server with REPLAY enabled ! (why? It's a good question!)
CSS
CS:GO
L4D2 - by Neevar
CS 1.6 - by VegetaVision

It must works on all games which run Sourcemod.



LOGS
Spoiler

luki1412 06-30-2014 17:01

Re: [ANY] !stuck (06/30/2014)
 
Needed this plugin in past, but couldn't find one. So this should be useful.

Btw: If you get stuck, you want to get unstuck so you use !unstuck as a command to do so. !stuck is misleading.

robotortoise 07-01-2014 17:54

Re: [ANY] !stuck (06/30/2014)
 
This is really useful! Thanks!

But I have a question: Why do we have to stick the .sp in scripting if it's not a script, but is an uncompiled version of the plugin?

luki1412 07-02-2014 08:56

Re: [ANY] !stuck (06/30/2014)
 
Quote:

Originally Posted by robotortoise (Post 2160517)
This is really useful! Thanks!

But I have a question: Why do we have to stick the .sp in scripting if it's not a script, but is an uncompiled version of the plugin?

Not sure why he added that there, but you can safely remove entire folder "scripting" if you aren't a coder or if you do not edit the code at all or if you are not compiling plugins yourself. .sp files are basically plain text files, filled up with sourcemod code and renamed to .sp.

robotortoise 07-02-2014 13:35

Re: [ANY] !stuck (06/30/2014)
 
Quote:

Originally Posted by luki1412 (Post 2160790)
Not sure why he added that there, but you can safely remove entire folder "scripting" if you aren't a coder or if you do not edit the code at all or if you are not compiling plugins yourself. .sp files are basically plain text files, filled up with sourcemod code and renamed to .sp.

Oh. But....I thought that was the point of the source folder?

Donski 07-02-2014 13:38

Re: [ANY] !stuck (06/30/2014)
 
Quote:

Originally Posted by robotortoise (Post 2160942)
Oh. But....I thought that was the point of the source folder?

The scripting folder contains .sp files which are source codes or the way you put it, uncompiled versions of plugins.

I don't think there's a source folder, although some plugin authors put a source folder (usually when they provide ZIPs) which contains all the source codes for the plugins, includes, etc.

robotortoise 07-02-2014 13:39

Re: [ANY] !stuck (06/30/2014)
 
Oh, so I should really delete both of them.

Hm, thanks. I've always wondered what the scripting folder did. :P

Donski 07-02-2014 16:19

Re: [ANY] !stuck (06/30/2014)
 
Delete what exactly?

The scripting folder contains the source files, including the compilers. You might need it in the future, in case you need to edit and recompile a plugin.

robotortoise 07-02-2014 16:21

Re: [ANY] !stuck (06/30/2014)
 
Quote:

Originally Posted by Donski (Post 2161019)
Delete what exactly?

The scripting folder contains the source files, including the compilers. You might need it in the future, in case you need to edit and recompile a plugin.

Yeah, but I can't do any of that stuff from my server, cause I use FTP.

musosoft 07-07-2014 08:48

Re: [ANY] !stuck (06/30/2014)
 
Nice plugin idea, something like this could be implemented to this plugin https://forums.alliedmods.net/showthread.php?p=2081909 (doesn't teleport, instead it's pushing players away)


All times are GMT -4. The time now is 23:47.

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