Skip to content

About

Make HE Grenades Sticky!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Repo stars GitHub all releases GitHub


StickyNades

A CounterStrikeSharp plugin for CS2 that makes HE grenades sticky.

Features

  • HE grenades stick to walls, floors, props and players.
  • Optional chat announcements for stuck players.
  • Allow per player or for the whole server.

Dependencies

Installation

  1. Install CounterStrikeSharp on your server.
  2. Download or build the plugin zip.
  3. Extract it into your server's game/csgo/ folder.
  4. Restart the server, or run css_plugins load StickyNades.
  5. Edit the config file the plugin creates (see Configuration).

Configuration

The config file is created on first load at:

counterstrikesharp/configs/plugins/StickyNades/StickyNades.json

After editing it, run css_plugins reload StickyNades or change the map.

Option Description Default
Enabled Turns the whole plugin on or off. true
Mode Everyone: all HE grenades are sticky. PerPlayer: only players who turned it on with the toggle command. "Everyone"
PerPlayerDefaultEnabled In PerPlayer mode, whether players start with sticky grenades on. false
ToggleCommands Command names that toggle sticky grenades. "sticky" gives !sticky, /sticky and css_sticky. ["sticky", "stickynades"]
TogglePermission Permission needed to use the toggle command, such as "@css/vip". Leave empty to let anyone use it. ""
ChatMessages Who sees the stuck message: All (everyone), Involved (thrower and stuck player), Thrower (thrower only) or None. "All"
MessageLocation Where the stuck message is shown: Chat, Center (center screen HTML) or Both. "Chat"
CenterMessageDuration How many seconds the center message stays on screen when MessageLocation is Center or Both. 3.0
StickToTeammates When false, grenades bounce off teammates as usual and stick to the next thing they hit. Has no effect when mp_teammates_are_enemies is on. true

The default config:

{
  "ConfigVersion": 2,
  "Enabled": true,
  "Mode": "Everyone",
  "PerPlayerDefaultEnabled": false,
  "ToggleCommands": ["sticky", "stickynades"],
  "TogglePermission": "",
  "ChatMessages": "All",
  "MessageLocation": "Chat",
  "CenterMessageDuration": 3.0,
  "StickToTeammates": true
}

Commands

Command Description
!sticky Turns sticky grenades on or off for yourself. Only works in PerPlayer mode.
!stickynades Same as !sticky.

Change the command names with the ToggleCommands option. The setting resets when the player disconnects.

Translations

Translation files are located at counterstrikesharp/plugins/StickyNades/lang/.

Language File
English en.json
German de.json

Building

Requires the .NET 10 SDK.

cd src
dotnet build -c Release

License

Distributed under the GPL-3.0 License. See LICENSE.md for more information.

About

Make HE Grenades Sticky!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages