STUCK!!

STUCK!! 1.2

What permissions do you give others to modify and/or maintain your submission?
Modify: ASK ME - Maintain: YES - Others must ask me for permission before modifying my submission or use it in their own work, and I reserve the right to say no for any reason. I do, however, give permission for my entire submission to be maintained by others.
I made sure my file(s) follow the Submissions Guidelines
  1. Yes
I named my file(s) correctly (see Filename Conventions)
  1. Yes
STUCK!!!
A script that saves you!
how you get into there???

Have any of these scenarios hapenned to you while playing Kart?

kart0000.gif
kart0001.gif


kart0004.gif
kart0005.gif


And the result is either you behind or race lost.
You can use the respawn command, but in some cases it won't work because you're moving, thats where this scripts comes in.

It simplily detects stuck players and kills them, so they can respawn in their last checkpoint.
Right now it detects:
  • Players stuck in tight places that they can't get off by themselves
  • Trapped in a crusher or somewhere between the ceiling and the floor (squished)
  • Players that are taking continuous damage (sometimes when stuck, you get constantly squished so this script uses that as last resource, it checks if the player current position is valid and if it can move)
  • Player stuck inside either the ceiling or floor
  • Players inside deep offroad due for a spinout that sent them tinto it, or that is too much time inside offroad trying to get out without proper offroad immunity
All these combined cover most cases and all of them uses CVARS to make sure each server has it's own needs covered or specific detections to be "truned off" by adding high values to them so they wont work.

stck_active : Default is On, if inactive script won't run

stck_bumpdelay : default is 8 (the 4th of a second), the format is in TICRATE, one second = 35 tics, time in frames to considerate consecutive bumps, minimum is 1 limit is

stck_bumpmax : Default is 16, the ammount of consecutives bumps to be considered excessive to consider a player stuck,minimum is 1 limit is

stck_squishmax : Default is 70 (2 seconds), the format is in TICRATE, one second = 35 tics, The ammount of time in frames to be considerated excessive and consider a player squished between ceiling and floor for too long,minimum is 1 limit is

stck_instamax : Default is 14, the ammount of consecutive insta Shields to be considerated excessive to consider the player stuck somewhere,minimum is 1 limit is

stck_floorceilmax : Default is 70 (2 seconds), the format is in TICRATE, one second = 35 tics, the ammount of time in frames to be considerated excessive to consider the player too much time stuck inside the ceilinr/floor,minimum is 1 limit is

stck_offtimemax: Default is 175 (5 seconds), the format is in TICRATE, one second = 35 tics, the ammount of time in frames to be considerated excessive to a player be inside offroad without any item or something that grants offroad immunity (sneakers,hyuudoro and speed below 20 Fracunits), minimum is 1 limit is

stck_maxoffdist: Defaqult is 1024, The distance to considerate excessive to be pushed into offroad while spun out, it adjust itself for the game speed so easy andn ormal speeds make the distance shorter while hard speed uses the full distance, it also considers the type of spinout (wipeouy), minimum is 1 limit is 99999

all of the above can only be changed by a server admin

stck_deathnotice
: Default is On, choose if a player wants to receive the notice and explanation of their death on console, this is a LOCAL cvar

  • You may get spun out into offroad and be killed near the edge to the main road
  • player in thin fofs may not be propely detected as quished player as they may pass through the fof
  • Moving platforms may crush a player but if those do not stay there long enough it wont be considerated a squished/stuck player
  • Players stuck into polyobjects may not be dected as theirs shaped and movement may vary a lot and sometimes a player gets stuck inside of it and is not squished neither hurt or get DOOR STUCK
If either a bug,code oversight or fix is found please contact me so i can fix it!
Author
Lighto
Downloads
666
Views
2,833
Extension type
lua
File size
16.9 KB
MD5 Hash
78cd97b9ed0ce82f3ce4faf1a63b7091
First release
Last update

Share this resource

Latest updates

  1. Second hotfixe!

    after some big procrastinating finally a new hotfix! Minor stuff, the respawn code wont work...
  2. first hotfix

    Quick hotfixe related to intangible fofs and gravity flip and some others Thanks to...

Latest reviews

yes, nothing else just yes
Upvote 0
Back
Top