Git Product home page Git Product logo

blinkfatigue's Introduction

BlinkFatigue

A SCP:SL Plugin that makes SCP-173 both interesting and scary to play against and fun to play as.

Requires EXILED.

Latest release

Get the latest release here!

Features

  • An incremental (and fully modifiable!) blink speed, so the more you (or anyone) looks at him, the more you will blink and the faster he will come to snap your neck.
  • Avoids tutorials from raising the blink speed. Whether your fellow tutorials are moderators just moving around and happen to spot SCP-173, or whether they are Serpent's Hand (plugin not currently available in any framework) trying to stack the blink speed for SCP-173 to cheat the system and make SCP-173 a really spooky boi, you're covered. I know, sounds crazy, but you can't actually edit this.

Configs

⚠️ Making these configs "too OP" may result in your players getting epileptic seizures. Change at YOUR own risk.

Config Option Value Type Default Value Description
is_enabled bool true Enables/disables the plugin
min_blink_time ⚠️ float 1.5 Making people blink too fast may cause epileptic seizures. Change this config at your own risk. Minimum time allowed between blinks.
min_time float 2.5 The minimum time between blinks. Explained further below.
max_time float 3.5 The maximum time between blinks. Explained further below.
add_min float 0.35 The minimum time to add to the rework value. Explained further below.
add_max float 0.45 The maximum time to add to the rework value. Explained further below.
decrease_rate float 0.75 The rate at which the cooldown of the blink speed is applied. Explained further below.

Explanations and things to consider

Minimum time

I think there's no need to explain what the minimum time between blinks. Also, making it 0.2 may be funny to you and a few friends, but may cause epileptic seizures to other people. Either contact a medic specialized on the topic, or don't take the risk for a few gigs. You have been warned.

Mintime, maxtime

The minimum and maximum blink times are the default values the game decides for how much time the players will have their eyes open, randomly. In other words, if it's between 2.5 seconds and 3.5 seconds, after every blink is done the game picks a new random number, let's say 2.7. After a blink, it picks another random number, let's say 3.2. If you want to go for a 100% competitive setup, this is a good plugin for you since you can tweak it to be a fixed number by setting both numbers as the same one (untested, I would do 2.99 as minimum and 3 as maximum just in case).

Decrease rate

In a nutshell, if you set it to 1 and the plugin was substracting 3 seconds from the regular blink time, it would take 3 seconds for the blink to get to the initial state (which is the default, the one that only picks a number between 2.5 and 3.5

Addmin, addmax.

These are pretty confusing, so you should stop reading here unless you're really scientifically curious about it.

The "addmin" and "addmax" values are, like mintime and maxtime, random values which add to an internal number stored by the plugin that keeps incrementing the more people blink and gets decremented when people stop looking at him. In a nutshell, this is what makes people blink faster everytime they blink.

Basically, every time a player blinks, the next blink will take less time, and this time is a random number between addmin and addmax. So, the time between blinks would be a random number between 2.5 and 3.5, let's say 2.6 seconds, and that number gets decremented with a number between 0.35 and 0.45, let's say 0.31, so it'd be 2.6 - 0.31 = 2.29 seconds

Since this is so random, here goes a few examples taking addmin and addmax values of 0.20 and 0.40 respectively:

  • Bad luck for SCP-173:

First blink takes 2.8 - 0, second blink takes 3.1 - (0 + 0.24) = 2.86, third blink takes 3.2 - (0 + 0.24 + 0.23) = 2.73

Seems like the plugin doesn't work, but it does. Basically, the first number is the first random number generated between mintime and maxtime, and 0 is the initial value of the internal variable mentioned earlier, 0.24 is the next random value, and 0.23 is the next one. Don't worry, it all gets added internally.

  • Good luck for SCP-173:

First blink takes 3.4 - 0, second blink takes 2.8 - 0.33 = 2.47, third blink takes 2.6 - 0.66 = 1.84

Wowzer, that escalated quickly. Again, the first number is the random number between mintime and maxtime, and the second one is the internal value that will be substracted from the original blink time.

blinkfatigue's People

Contributors

joker-119 avatar rogerfk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

blinkfatigue's Issues

Error initializing BlinkFatigue on 2.6.1-beta

Here's the exception:

[2021-03-04 00:06:02.240 -06:00] [ERROR] [Exiled.Loader] Error while initializing plugin BlinkFatigueV1.0.1 (at )! System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at Exiled.Loader.Loader.CreatePlugin (System.Reflection.Assembly assembly) [0x00000] in <97f110f373cf40daab1ca0370b94fc75>:0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.