Coder Social home page Coder Social logo

slowline / csgo-m4a1s-unbinder Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 405 KB

Unbinds right click action if M4A1-S is being equipped using Game State Integration (GSI) and Telnet

License: GNU General Public License v3.0

C# 100.00%
counter-strike-global-offensive cs-go csgo counter-strike valve valve-games m4a1-s m4a1s c-sharp

csgo-m4a1s-unbinder's Introduction

README

This program uses the integrated Game State Management System of CS:GO to unbind the Silencer Removal of the M4A1-S. The Program is written in C# and uses CSGSI by rakijah to accept GSI-Events and Telnet by 9swampy to act as a Telnet-Client to connect to the built-in CS:GO console.

To execute CS:GO Console Commands, we have to activate the built-in Telnet Support of CS:GO. To do this we have to add the following line to our launch options: -netconport 2121 which will open a Telnet Server that can be used to send commands to the CS:GO console. This Port can be changed to any other Port you want to use by editing the config file, which will be generated at the first startup.

Installation

  1. Download the latest release from here
  2. Extract the zip file
  3. Copy the gamestate_integration_csgom4a1sunbind.cfg to your csgo/cfg folder
  4. Add -netconport 2121 to your launch options
  5. Run the .exe file
  6. Enjoy having right click unbound if you have a M4A1-S equipped

Configuration

The config file will be created at the first startup of the program and will be located inside the same folder as the .exe file with the name config.json. As default, the program will unbind mouse2 for the weapons weapon_m4a1_silencer, weapon_usp_silencer and weapon_deagle because of the silencer and the annoying deagle bug where you're not able to shoot if you're holding right click before firing.

The content of the config.json-file will look like this and can be changed by you:

{
  "GsiPort": 3000,
  "TelnetPort": 2121,
  "UnbindCommands": [
    "echo Weapons are active, unbinding...",
    "-attack2",
    "unbind mouse2"
  ],
  "BindCommands": [
    "bind mouse2 +attack2",
    "echo Weapons are inactive, binding..."
  ],
  "WeaponIdentifiers": [
    "weapon_m4a1_silencer",
    "weapon_usp_silencer",
    "weapon_deagle"
  ]
}

As soon as the Game is sending a Game State Event, the program will check against the given Weapon Identifiers if the player is holding one of the weapons. If true, the program will execute the commands in the UnbindCommands array. If false, the program will execute the commands in the BindCommands array.

If you change the GsiPort or TelnetPort you have to adjust the launch options or the game state config file accordingly.

References

  1. https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Game_State_Integration
  2. https://developer.valvesoftware.com/wiki/Command_Line_Options

csgo-m4a1s-unbinder's People

Contributors

slowline avatar

Watchers

 avatar

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.