Giter Site home page Giter Site logo

bettercoinflips's Introduction

BetterCoinflips

Downloads

SCP:SL plugin that adds a Risk-Reward mechanic to the in-game coin. Whenever you flip a coin a 'random' effect will happen depending on the coinflips outcome.

Features:

  • Whenever a player flips a coin and it lands on heads one of the following will happen:
  1. They will receive a Containment Engineer/Facility Manager keycard.
  2. They will recevive a 'medical kit' consisting of a medkit and painkillers.
  3. They will be teleported to the escape zone doors.
  4. They will be healed by 25 health.
  5. Their hp will be increased by 10%.
  6. They will get an SCP-268.
  7. They will receive a random good effect for 5 seconds.
  8. They will get a Logicer with 1 ammo.
  9. They will receive an SCP-2176.
  10. They will receive a pink candy.
  11. They will receive a revolver with the worst attachments possible.
  12. They will get an empty micro hid.
  13. MTF/CI will respawn immediatly.
  14. Their scale will be set to 1.3/0.5/1.3.
  15. They will receive a random item.
  • Whenever someone flips a coin and it lands on tails one of the following will happen:
  1. Their hp will be reduced by 30%.
  2. They will be teleported to Class D cells.
  3. They will get a random bad effect for 5 seconds.
  4. The Alpha Warhead will be enabled or disabled depending on it's current state.
  5. Lights all across the map will be turned off for 10 seconds.
  6. A live grenade will appear on their head.
  7. A live flash grenade will spawn on their head.
  8. They will be teleported to an SCP if there are any alive, otherwise they'll lose 15 hp.
  9. They will lose all but 1 hp.
  10. Thye will receive a primed SCP-244.
  11. They receive an SCP-173 tantrum.
  12. A fake CASSIE is sent saying that SCP-173 was killed by a Tesla gate.
  13. They will be forceclassed to a random SCP.
  14. Their inventory will be reset.
  15. Their role will be changed to the opposite one (class d - scientist, mtf - ci etc.)
  16. An instantly exploding grenade will spawn on their head.
  17. They will swap places with another player.
  18. They will be kicked.
  19. They will be replaced by a random spectator.
  20. They will be teleported to a random tesla.
  21. Their inventory will be swapped with another player's inventory.
  22. They will be teleported to a random room.
  23. They will be handcuffed and lose their items.
  • The plugin will prevent the spawns of a specified amount of coins around the map.
  • The plugin will replace a specified amount of the chosen item (by default SCP-500) with a coin in the SCP pedestals.
  • The plugin will assign a random amount of uses to every thrown coin. This amount can be read or set with a command. If a coin runs out of uses it breaks.

Commands

  • GetSerial - gets the serial number of an item held by you or another player.
  • CoinUses - gets or sets the number of uses a specific coin has. Example usage: coinuses get player 5, coin uses set player 4, coinuses set serial 10

Permissions

  • bc.coinuses.set - grants access to the CoinUses Set command
  • bc.coinuses.get - grants access to the CoinUses Get command

Default config

better_cf:
  # Whether or not the plugin should be enabled. Default: true
  is_enabled: true
  # Whether or not debug logs should be shown. Default: false
  debug: false
  # The amount of base game spawned coins that should be removed. Default: 4
  default_coins_amount: 4
  # The ItemType of the item to be replaced with a coin and the amount to be replaced, the item is supposed to be something found in SCP pedestals.
  item_to_replace:
    SCP500: 2
  # The boundaries of the random range of throws each coin will have before it breaks. The upper bound is exclusive.
  min_max_default_coins:
  - 1
  - 4
  # Time in seconds between coin toses.
  coin_cooldown: 5
  # The duration of the broadcast informing you about your 'reward'. Default: 3
  broadcast_time: 3
  # The duration of the map blackout. Default: 10
  map_blackout_time: 10
  # The fuse time of the grenade falling on your head. Default: 3.25
  live_grenade_fuse_time: 3.25
  # List of bad effects that can be applied to the players. List available at: https://exiled-team.github.io/EXILED/api/Exiled.API.Enums.EffectType.html
  bad_effects:
  - Asphyxiated
  - Bleeding
  - Blinded
  - Burned
  - Concussed
  - Corroding
  - CardiacArrest
  - Deafened
  - Decontaminating
  - Disabled
  - Ensnared
  - Exhausted
  - Flashed
  - Hemorrhage
  - Hypothermia
  - InsufficientLighting
  - Poisoned
  - PocketCorroding
  - SeveredHands
  - SinkHole
  - Stained
  - Traumatized
  # List of good effects that can be applied to the players. List available at: https://exiled-team.github.io/EXILED/api/Exiled.API.Enums.EffectType.html
  good_effects:
  - BodyshotReduction
  - DamageReduction
  - Invigorated
  - Invisible
  - MovementBoost
  - RainbowTaste
  - Scp1853
  - Scp207
  - Vitality
  # The % chance of receiving a Facility Manager keycard instead of a Containment Engineer one.
  red_card_chance: 15
  # The kick reason.
  kick_reason: 'The coin kicked your ass.'
  # The chance of these good effects happening. It's a proportional chance not a % chance.
  keycard_chance: 20
  medical_kit_chance: 35
  tp_to_escape_chance: 5
  heal_chance: 10
  more_hp_chance: 10
  hat_chance: 10
  random_good_effect_chance: 30
  one_ammo_logicer_chance: 1
  lightbulb_chance: 15
  pink_candy_chance: 10
  bad_revo_chance: 5
  empty_hid_chance: 5
  force_respawn_chance: 15
  size_change_chance: 20
  # The chance of these bad effects happening. It's a proportional chance not a % chance.
  hp_reduction_chance: 20
  tp_to_class_d_cells_chance: 5
  random_bad_effect_chance: 20
  warhead_chance: 10
  lights_out_chance: 20
  live_he_chance: 30
  troll_gun_chance: 50
  troll_flash_chance: 50
  scp_tp_chance: 20
  one_hp_left_chance: 15
  primed_vase_chance: 20
  shit_pants_chance: 40
  fake_cassie_chance: 50
  turn_into_scp_chance: 30
  inventory_reset_chance: 20
  class_swap_chance: 10
  instant_explosion_chance: 10
  player_swap_chance: 20
  kick_chance: 5
  spect_swap_chance: 10
  tesla_tp_chance: 15
  inventory_swap_chance: 20
  handcuff_chance: 10
  random_teleport_chance: 15

bettercoinflips's People

Contributors

mikihero avatar snivyfilms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bettercoinflips's Issues

Suggestion: Able to change percentages effects

Hello. We now have this plugin in use but the nuke turns on like 4 times every round because of the high chance you’ll get that specific effect. Maybe it would a very nice idea to give admins the “power” to adjust the percentages of each event happening.

it’s the same for lights out inside of the facility. It happens a little to much my players have stated.

Error upon server starting

Throws this error upon server starting:

[2023-09-12 19:26:23.276 +02:00] [ERROR] [Exiled.API] Plugin "BetterCoinflips" threw an exception while enabling: System.TypeLoadException: Could not resolve type with token 01000066 from typeref (expected class 'CustomEventHandler`1' in assembly '')
                                   at BetterCoinflips.Plugin.OnEnabled () [0x00007] in <4cf2953e23964d4695d274600e73d814>:0 
                                   at Exiled.Loader.Loader.EnablePlugins () [0x000c6] in <e50966ad59b94987b8c6651c9f3d0ecb>:0

Effect Pocket Corroding not working very well

If you add the PocketCorroding effect to the bad_effects: and you get teleported by it, you only get damaged for 5 seconds (7 damage) and then you can sit in the Pocket Dimension endlessly.

Please either make it so if you add the Pocket Corroding effect it doesn't end until you exit the Pocket Dimension (I think the game removes the effect by itself if you exit the Dimension, but I'm not sure)
or
Add the chance to teleport to it in the Bad effects (where is hp_reduction_effect, tp_to_class_d_cells, etc.)

BetterCFBug17.mp4

Gnomed effect bug with 939 doors

When you get gnomed your size gets changed to 1.3 0.5 1.3, so when you try to walk through the 939 chamber door (to for example engage a generator), you can't.

One of my staff member says that 1.13 is the maximum size you can have and if you have 1.14 or more then you'll not be able to get through the door.

don't workin while in offline mode

изображение_2024-01-19_152110098
when im startin in online mod, all works fine, but this throws me an exception when im trying to flip the coin in offline mode
is this a issue or should it be?
or how to make it work so that it works

Size change and SCP-fied problem

If someone gets their size changed and then gets turned into 096 and another person will look at the ground to not enrage the 096, the 096 still will become enraged.

My proposition of a solution: Make it so when someone is turned into an SCP their size gets reseted

InvalidCastException when using the coin

When I successfully generated dll and ran it, I found a random error. I don't know what the error is, because I am a plug-in beginner, so I would like to ask you to help me fix it. Thank you
Screenshot 2023-01-12 012536

Last time's mistake

I updated beta21 today, and then I updated it, and found that the last error would still be in

Screenshot 2023-01-13 143059

Fake Cassie effect

Hello someone who's reading this! I've a question about Fake Cassie effect. Is there any option to change its announcement?
I'm asking about it because I would like to Cassie to instead of saying that some random SCP was killed instead I would like to hear fake NTF spawn announcement.

Broadcast

i don't see any option to edit the broadcast after upgrading for newer version of the plugin, i might be blind tho.

Update?

Will there be an update to exiled 7 and SCP:SL 13.0 ?

if you get turned into another class in pd you don't get damaged

Version: 3.0.2

Description: If you get teleported to the PD through the Pocket Corroding effect and then get turned into another class (from class_swap_effect_chance or zombie_fc_effect_chance) you don't get any damage.

Steps to reproduce:

  • Get a coin
  • Get PocketCorroding effect from the coin (so you get teleported to PD)
  • Get your class swapped or turn into 049-2 by the coin

What is supposed to happen: You still should get damaged from the pd
What actually happens: You don't get damaged from the pd

Attachments:
https://github.com/Mikihero/BetterCoinflips/assets/76474182/dc541d1c-5d69-4a7a-8318-fe0e4000afb1

Error

grafik
I am getting this Error

Update?

Since the last Exiled update Version 6.0.0-beta.26 is there gonna be an update to this plugin? I really like it and would be sad to see it gone forever :(

Translations bronk

Version: 3.0.3

Description: Every translation doesn't work except for the new one (coin_no_uses_message:) and if the coin breaks (after some uses) the plugin uses the coin_no_uses_message: instead of the coin_breaks_message:

Steps to reproduce:

  • Get a coin
  • Throw a coin
  • No translation D:
  • Get the coin to break
  • The wrong translation is displayed D:

What is supposed to happen: The translations should work normally
What actually happens: The translations aren't working

Attachments:

Bug16better_cf.ButThisShouldBe10MB.mp4

Says I'm missing because it gives me an error

I genuinely don't know where to get the missing files in order to get the plugin to work and I apologize if there was an obvious solution to it because this is what I'm getting on the server:

[2023-04-13 19:06:40.007 -07:00] [ERROR] [Exiled.Loader] Plugin "BetterCoinflips" threw an exception while enabling: System.IO.FileNotFoundException: Could not load file or assembly 'MonoMod.Backports, Version=23.3.22.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'MonoMod.Backports, Version=23.3.22.1, Culture=neutral, PublicKeyToken=null'
at BetterCoinflips.Plugin.OnEnabled () [0x0000e] in <50f2d6fe9e174b558e3721c8a0599d8c>:0
at Exiled.Loader.Loader.EnablePlugins () [0x000a8] in <1bac7d86fc0d4863b89775b89135ecb1>:0

So if there's a place I can get these files then a pointer to them would be greatly appreciated.

Possible PD bug

When using a coin in the Pocket Dimension, the player stops getting damage and can stay infinitly in the PD

EDIT: Found the Issue. Sry my bad. Ignore this!

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.