View Single Post
Author Message
Erreur 500
Senior Member
Join Date: Aug 2012
Location: Paris, France
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 - 3648 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