Raised This Month: $12 Target: $400
 3% 

[ANY] Stuck (08/27/2015)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
Plugin ID:
4261
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    You are stuck ? This command can save your life !
    Old 06-30-2014 , 11:44   [ANY] Stuck (08/27/2015)
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (stuck.sp - 3541 views - 9.2 KB)
    __________________
    My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

    Need private plugin ? We can found an agreement !
    Steam : Erreur 500

    Last edited by Erreur 500; 08-29-2015 at 05:38. Reason: update
    Erreur 500 is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 06-30-2014 , 17:01   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #2

    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.
    __________________

    Last edited by luki1412; 06-30-2014 at 17:02.
    luki1412 is offline
    robotortoise
    Senior Member
    Join Date: Nov 2013
    Old 07-01-2014 , 17:54   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #3

    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?
    __________________
    -Robotortoise [Palutena's Bro]

    If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

    Contact me via Steam

    I don't bite.


    How to loop and compress .wav files

    Me and my friends' server
    robotortoise is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 07-02-2014 , 08:56   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #4

    Quote:
    Originally Posted by robotortoise View Post
    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.
    __________________
    luki1412 is offline
    robotortoise
    Senior Member
    Join Date: Nov 2013
    Old 07-02-2014 , 13:35   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #5

    Quote:
    Originally Posted by luki1412 View Post
    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?
    __________________
    -Robotortoise [Palutena's Bro]

    If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

    Contact me via Steam

    I don't bite.


    How to loop and compress .wav files

    Me and my friends' server
    robotortoise is offline
    Donski
    Senior Member
    Join Date: Sep 2012
    Old 07-02-2014 , 13:38   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #6

    Quote:
    Originally Posted by robotortoise View Post
    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.
    Donski is offline
    robotortoise
    Senior Member
    Join Date: Nov 2013
    Old 07-02-2014 , 13:39   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #7

    Oh, so I should really delete both of them.

    Hm, thanks. I've always wondered what the scripting folder did.
    __________________
    -Robotortoise [Palutena's Bro]

    If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

    Contact me via Steam

    I don't bite.


    How to loop and compress .wav files

    Me and my friends' server
    robotortoise is offline
    Donski
    Senior Member
    Join Date: Sep 2012
    Old 07-02-2014 , 16:19   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #8

    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.
    Donski is offline
    robotortoise
    Senior Member
    Join Date: Nov 2013
    Old 07-02-2014 , 16:21   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #9

    Quote:
    Originally Posted by Donski View Post
    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.
    __________________
    -Robotortoise [Palutena's Bro]

    If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

    Contact me via Steam

    I don't bite.


    How to loop and compress .wav files

    Me and my friends' server
    robotortoise is offline
    musosoft
    Senior Member
    Join Date: Dec 2008
    Location: Thailand
    Old 07-07-2014 , 08:48   Re: [ANY] !stuck (06/30/2014)
    Reply With Quote #10

    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)
    __________________
    Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks
    musosoft is offline
    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 09:31.


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