Caution
This plug-in will likely break with every CS2 update. You'll need to update the signature for either Windows or Linux on your own. If you happy to share the current signatures I will update this plug-in accordingly. You can check/ask also in the Discord CSSharp Community.
This is a simple Infinite Weapon plug-in which allows a player to carry more then one primary or secondary weapon. Hint: this plug-in will likely break with any CS2 update because it uses modified gamedata. If the plug-in is not working anymore please check this repository first and open a Github Issue if a newer version does not solve your issue.
This plug-in automatically updates the gamedata.json of your CounterstrikeSharp installation for you! Therefore please restart the game server after installing/updating the plug-in and starting the game server.
- Download and extract the latest release from the GitHub releases page.
- Move the "InfiniteWeapons" folder to the
/addons/counterstrikesharp/plugins/directory. - (Re)start the server and wait for it to be completely loaded.
- Restart the server again because it maybe applied some Gamedata entries for the plug-in to work correctly.
Updating is even easier: simply overwrite all plugin files and they will be reloaded automatically. To automate updates please use our CS2 Update Manager.
This plugin automatically creates a readable JSON configuration file. This configuration file can be found in /addons/counterstrikesharp/configs/plugins/InfiniteWeapons/InfiniteWeapons.json.
{
"enabled": true,
"debug": true,
"signature_file": "InfiniteWeapons.json",
"permissions": {
"@css/root": {
"max_primary_weapons": 5,
"max_secondary_weapons": 5
}
},
"permissions_is_whitelist": false,
"max_primary_weapons": 2,
"max_secondary_weapons": 2,
"override_signature_windows": "",
"override_signature_linux": "",
"ConfigVersion": 1
}Whether this plug-in is enabled or not.
Debug mode. Only necessary during development or testing.
File to write the signature too. Defaults to InfiniteWeapons.json to avoid conflicts when CounterstrikeSharp gets updated. Can be changed to whatever you like.
Allows to add different permissions with different amount of weapons for players in this group. Only checks until first occurence for a player is found.
Whether or not a player must have the correct permission to use infinite weapons.
Maximum number of primary weapons. More then 2 are possible but you cannot easily switch between them.
Maximum number of secondary weapons. More then 2 are possible but you cannot easily switch between them.
When the signature changes and no new release is available you can override the signature yourself. Make sure to remove the signature when updating this plug-in because this settings overrides the signatures that come with the plug-in.
When the signature changes and no new release is available you can override the signature yourself. Make sure to remove the signature when updating this plug-in because this settings overrides the signatures that come with the plug-in.
Ability to run sub-commands:
infiniteweapons update
infiniteweapons reload
infiniteweapons disable
infiniteweapons enable
This reloads the configuration from the disk and updates the signature in the signature file with the values from the config (if not empty). Otherwise it overwrites it with the integrated last-known signature.
Reloads the configuration.
Disables the plug-in instantly and remembers this state.
Enables the plug-in instantly and remembers this state.
Clone the project:
git clone https://github.com/Kandru/cs2-infinite-weapons.gitGo to the project directory
cd cs2-infinite-weaponsInstall dependencies
dotnet restoreBuild debug files (to use on a development game server)
dotnet buildBuild release files (to use on a production game server)
dotnet publishTBD
