Giter Club home page Giter Club logo

somoe-19's People

Contributors

mk99ma avatar

Watchers

 avatar

somoe-19's Issues

disable joinclass

public OnPluginStart()
{
HookUserMessage(GetUserMessageId("VGUIMenu"), HookMsg, true);
}

public Action HookMsg(UserMsg msg_id, BfRead msg, const int[] players, int playersNum, bool reliable, bool init)
{
static char txt[16];
txt[0] = 0;
BfReadString(msg, txt, sizeof(txt));
if(txt[0] == 'c' && txt[1] == 'l' && txt[2] == 'a' && txt[3] == 's' && txt[4] == 's' && txt[5] == '_')
{
FakeClientCommandEx(players[0], "joinclass %d", txt[6] == 't' ? 1 : 5);
return Plugin_Handled;
}
return Plugin_Continue;
}

Weighted randomised picker

Acceptance Criteria

As a Soccer Player

I want to Press a button to start a randomised cap

So that I can skip the fucking wait and shitty picks

--

GK > DEF > MID > WING

if GK && MID, prefer GK

To-Do List & Update Notes

To-Dos & Ideas:

OPEN / TO-DO

  • - Make overtime notifications toggleable per client
  • - Add optional support for Discord Integration
 - Send Notification at match end to bot
 - Allow players on server to sign up for a cap being started via discord
 - Allow the bot to "see" the server as being available
  • - Auto-detect GK zones
  • - "Bot-caps" Bots fighting the cap, randomly picking players based on their !pos (1 gk, 2 def, 1 mid, 2 wing)
    • What if noone is available with the missing pos?
    • What about the last picks?
  • - discord Integration? (Send Cap notifications /Match results? )
  • - CS:GO support (see CS:GO Quirks)
  • - Translation support
  • - Clean up / Optimization

DONE

  • - Add command to manually use a random password [See here]
  • - Add command to set default serverpw [See here]
  • - Get default pw from server.cfg instead of only using the previous one [See here]
  • - Add trainingball model to archive
  • - Floodcheck exception [See here]
  • - Autokick AFK if lockset enabled AND cap started [See here]
  • - Fix ClanTag for teamname[See here]
  • - Score overview & Cards in matchlog [See here]
  • - Fix Breaklength not saving from the menu [See here]
  • - Rewrite Sourcemod Admin Functions (admins.cfg instead of admin_simple.ini -> remove sourcemod admin) [See here]
  • - Position Display in PickMenu showing only for 1st in list - FIXED
  • - Updater
  • OPTIONAL BUT HIGHLY RECOMMENDED
  • REQUIRES ADDITIONAL FILES, SEE HERE
  • - FIXED: Admin Onlinelist bugged
  • - FIXED: Menu closing when attempting to open empty simple_admin list
  • - CHANGED: Reworked admins.cfg generation
 - Creates a Backup of the original admins.cfg named admins.cfg.presoccermod
 - Should ignore the comments in the default file and only copy the actual admins to the new file
 - In case something goes wrong (File does not start with "Admins") it will rename it to admins.cfg.error and create a new, empty admins.cfg
 - NOTICE: Writing to a File is somewhat limited.. If you got too many Admins in the File, and therefore alot of lines to WRITE not every line might be copied, thus leaving the admins.cfg file incomplete. There is no check for this case!
  • - 'WORKAROUND' CD Bar mismatching Armor Counter added - See below
  • - ADDED: Toggle-able (in Sprintinfo menu) Armor Counter added:
- De- and Increases relative to sprint-length and cooldown (in steps of 5; might change it, needs testing)
- Ignores damage by the ball, so should be always "accurate"
- CHANGED: Starting a cap match will deactivate sprint now, as well as setting the Armor to 0
  • ADDED: Forfeit Vote
- command (!forfeit) usable if Team X is Y(var) goals in front
- Involves only the 12 playing players - NO SPECS
- Requires ~66,6% (2/3) of GIVEN votes to succeed
- Configurable: Enable/Disable, number of req goals, startable by admin / everyone, auto-spec after a successful vote on/off, "cap mode" on/off
- Cap Mode: After a successful Capfight round the following match will have the command enabled, else it will be disabled (maprr DOES NOT reset it)
-  Autodisable if no match was started X minutes after a cap
-  Additional Timer to keep the ForfeitVote enabled if a match is restarted within 120 seconds
-  Keep it enabled if a match gets restarted for whatever reason
  • - ADDED: Matchsettings info when starting a Match ( Toggleable)
  • - ADDED: Sounds (Previous: Halftime whistle / Center message)
  • - FIXED: 'Remove Red Card' menu - ADDED: 'Remove Yellow Card' menu
  • - CHANGED: location for the file storing cards
  • - ADDED: ReadyCheck when paused (Auto & Manual mode) Auto mode switches to manual mode after 5 minutes as a workaround to potential scenarios in which the Auto unpause won't work
  • - CHANGED: Colorpreview menu remembers the position
  • - ADDED: !cancel command to exit any chat input
  • - FIXED: Clantag Nameset
  • - ADDED: personal cannon
  • - FIXED: fix "catapult" issue with ball cannon
  • - AFK Kick Immunity Options
  • - "Spec only"-Position in position-menu
  • - !lc command with configurable rr tolerance
  • - customizable map defaults

SCRAPPED (for now)

  • - Improvements to AFK Kick (Timer starting after last movement)
  • - Timer with configurable time to reset lockset (?)
  • - additional ways to remove serverlock state (?)
  • - Matchlog parse current score before adding new score -> Preventing issues with removed goals?

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.