Skip to content

Lets you choose and use a knife in game with !knife command.

Notifications You must be signed in to change notification settings

spancer35/CS2-KnifeSelector

Repository files navigation

CS2 Knife Selector

Lets you choose and use a knife in game with !knife command.

Caution

This plugin may trigger GSLT ban or similar bans. Use it at your own risk!

Requirements

Installation

  • Download the latest release from releases page
  • Extract the zip to plugins folder
  • Modify addons\counterstrikesharp\configs\plugins\KnifeSelector\KnifeSelector.json

Features

  • Saves user knife preferences to a DB (via SQLite)
  • Checks if user member of specified steam group, if not user can't use !knife (this feature can be disabled in config)
  • Easy to add new knifes after new knife being introduced to game.

Please not that plugin is setting mp_t_default_melee and mp_ct_default_melee to empty values to prevent some maps to blocking giving knifes at spawn

TODOs

  • Add radio menu features as soon as it's added to CS2
  • Change localization method

Known Issues

  • Plugin is not working on Windows servers.

Credits

  • BMathers for his helps and optimizing the code
  • Nereziel for original idea

Feel free to ask me about plugin and report me the issues you find. discord @huesebio

Plugin Configs

dir: addons/counterstrikesharp/configs/plugins/KnifeSelector/KnifeSelector.json

{
  "check_steam_group": true,
  "steam_group_id": "xxxxxxxxxxxxxxxxx", //Put your Steam GROUP's 64ID***
  "knife_command": "knife",
  "knifelist_command": "knifelist",
}

*** You can find your group's Steam64ID here > https://steamcommunity.com/groups/YOURGROUP/memberslistxml/?xml=1

dir: addons/counterstrikesharp/plugins/KnifeSelector/addons/counterstrikesharp/plugins/KnifeSelector/knifenames.json

{
    "m9": [ //chat trigger i.e : !knife m9 (can be changed)
      "weapon_knife_m9_bayonet", // do not change any of these
      "M9 Bayonet" //display name (can be changed.)
    ],
    "karambit": [
      "weapon_knife_karambit",
      "Karambit"
    ],
    "NewKnifeChatCommand": [
      "weapon_knife_new_knife",
      "New Knife"
    ]
}

About

Lets you choose and use a knife in game with !knife command.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages