Tip
You can test this plug-in by joining our community server via connect server.counterstrike.party:27030 or via https://counterstrike.party
Roll The Dice is a hilarious and chaotic game mode plugin for Counter-Strike 2 that adds an element of unpredictable fun to every round. Players can use the !rtd command to roll a virtual dice and receive a random effect that can either give them a significant advantage or create amusing challenges. From turning into a giant chicken to becoming invisible, gaining superhuman speed, or being cursed with terrible aim, every dice roll brings excitement and laughter to the server.
This plugin transforms the traditional competitive nature of Counter-Strike 2 into a party-like atmosphere where anything can happen. Whether you're boosting your health, spawning an army of chickens as your loyal followers, or finding yourself stuck with vegetables instead of grenades, Roll The Dice ensures that no two rounds are ever the same. The effects are temporary and reset each round, keeping the gameplay fresh and encouraging players to take risks and embrace the chaos.
Tip
This plug-in is highly configurable. In case you're missing something you want to be able to change create an GitHub Issue.
- Bankrupt - Removes all the money from the player
- Big Taser Battery - Gives you extra taser shots to zap enemies multiple times
- Change Name - Randomly changes your player name to confuse opponents
- Change Player Model - Disguises you as an enemy team player model
- Change Player Size - Scales your player model size randomly (smaller or larger)
- Chicken Leader - Spawns a flock of chickens that follow you around the map
- Cutter - kills everyone instant with a knife
- Damage Multiplier - Multiplies the damage positively and/or negatively
- Deaf - Silence player sounds (e.g. steps)
- Decrease Health - Reduces your health to make you more vulnerable
- Decrease Money - Takes away some of your hard-earned cash
- Fog Of War - Creates a foggy environment obscuring visibility
- Give Health Shot - Provides you with health shots for healing
- Headshot Only - you MUST make a headshot to actually deal damage
- Glow - Makes you glow with a colored outline visible through walls
- High Gravity - Increases gravity making you fall faster and jump lower
- Increase Health - Boosts your health above the normal maximum
- Increase Money - Adds extra money to your account for better equipment
- Increase Speed - Makes you run significantly faster than normal
- Infinite Ammo - Gives you infinite ammo
- Invisible - Makes you partially or fully invisible to enemies
- Jammer - Disables your HUD
- Longer Flashes - Gives the ability to flash longer
- Loud Steps - Don't even try to crouch or walk
- Low Gravity - Reduces gravity allowing you to jump higher and fall slower
- Millionaire - Gives you a lot of money to buy anything you can dream of
- No Explosives - Replaces all your grenades with harmless vegetables and fruits
- No Headshot - Headshots do not deal any damage
- No Recoil - Removes weapon recoil for perfect accuracy
- One HP - Sets your health to just 1 hit point - survive if you can!
- Play as Chicken - swaps your player model with a big chicken. Bok-Bok
- Show Player Health Bar - Displays health bars when aiming at players
- Random Weapon - Gives a random weapon, either primary, secondary or both. Strips all other weapons.
- Reset On Reload - Respawns a player everytime he's reloading
- Respawn - Brings you back to life after death with default weapons
- ReturnToSender - Sends a player back to spawn when hit
- Strip Weapons - Removes all your weapons leaving you defenseless
- Suicide - Instantly eliminates you from the round
- Vampire - Converts damage you deal to enemies into health for yourself
- Weird Grenades - Bought from somewhere cheap over the internet, they don't work as expected. Or do they?
- Zoom In - Player's view is zoomed in
- Download and extract the latest release from the GitHub releases page.
- Move the "RollTheDice" folder to the
/addons/counterstrikesharp/plugins/directory of your gameserver. - If you do NOT use german or english please copy the en.json in the lang-Folder to your language country code and edit accordingly.
- Restart the server.
Simply overwrite all plugin files and they will be reloaded automatically or just use the Update Manager itself for an easy automatic or manual update by using the um update RollTheDice command.
This command triggers the dice for a player. To activate the dice with a button paste the following to the client console:
bind "o" rtd
Enables or disables the automatic !rtd mode (will roll the dice automatically on spawn depending on the settings made inside your configuration).
This admin command allows administrators to force dice rolls for players. Requires the @rollthedice/admin permission. Dice names correspond to the filenames in the dices folder and are case-insensitive.
// roll randomly for everyone
!givedice
// roll randomly for a player
!givedice PlayerName
// roll a specific dice for everyone
!givedice * glow
// roll a specific dice for a player
!givedice PlayerName glow
Ability to run sub-commands:
Reloads the configuration.
Disables the !rtd command instantly and remembers this state.
Enables the !rtd command instantly and remembers this state.
Creates a map-specific configuration for the current map in the config file from the global defaults for further editing.
Deletes a map-specific configuration for the currvent map in the config file and loads the global defaults.
This plugin automatically creates a readable JSON configuration file. This configuration file can be found in /addons/counterstrikesharp/configs/plugins/RollTheDice/RollTheDice.json.
{
"enabled": true,
"debug": false,
"allow_rtd_during_warmup": false,
"trigger": {
"event": "RoundFreezeEnd",
"force_all_players": false,
"allow_player_auto_rtd": true,
"roll_the_dice_every_x_seconds": 0
},
"cooldown_rounds": 0,
"cooldown_seconds": 0,
"price_to_dice": 0,
"allow_dice_after_respawn": false,
"notify_other_players_about_dices_rolled": true,
"notify_player_via_chatmsg": true,
"notify_player_via_centermsg": true,
"dices": {
"big_taser_battery": {
"enabled": true,
"min_batteries": 3,
"max_batteries": 10
},
"change_name": {
"enabled": true,
"player_names": [
"Anonymous",
"Player",
"Gamer",
"Warrior",
"Hero",
"Legend",
"Champion",
"Stranger"
]
},
"change_player_model": {
"enabled": true,
"ct_model": "characters/models/tm_phoenix/tm_phoenix.vmdl",
"t_model": "characters/models/ctm_sas/ctm_sas.vmdl"
},
"change_player_size": {
"enabled": true,
"min_size": 0.5,
"max_size": 1.5,
"min_change_amount": 0.3,
"adjust_health": true
},
"chicken_leader": {
"enabled": true,
"amount_chicken": 8,
"chicken_size": 2
},
"decrease_health": {
"enabled": true,
"min_health": 10,
"max_health": 30,
"prevent_death": true
},
"increase_health": {
"enabled": true,
"min_health": 10,
"max_health": 30
},
"decrease_money": {
"enabled": true,
"min_money": 100,
"max_money": 1000
},
"increase_money": {
"enabled": true,
"min_money": 100,
"max_money": 1000
},
"give_health_shot": {
"enabled": true,
"min_shots": 1,
"max_shots": 5
},
"one_hp": {
"enabled": true
},
"low_gravity": {
"enabled": true,
"gravity_scale": 0.4
},
"high_gravity": {
"enabled": true,
"gravity_scale": 4
},
"suicide": {
"enabled": true
},
"increase_speed": {
"enabled": true,
"min_speed": 1.5,
"max_speed": 2,
"reset_on_hostage_rescue": true
},
"no_recoil": {
"enabled": true
},
"respawn": {
"enabled": true,
"default_primary_weapon": "weapon_m4a1",
"default_secondary_weapon": "weapon_deagle"
},
"no_explosives": {
"enabled": true,
"swap_delay": 0.1,
"model_scale": 1,
"RandomModels": [
"models/food/fruits/banana01a.vmdl",
"models/food/vegetables/onion01a.vmdl",
"models/food/vegetables/pepper01a.vmdl",
"models/food/vegetables/potato01a.vmdl",
"models/food/vegetables/zucchini01a.vmdl"
]
},
"strip_weapons": {
"enabled": true,
"disable_buymenu": true,
"disable_pickup": true
},
"vampire": {
"enabled": true,
"max_health": 200
},
"invisible": {
"enabled": true,
"percentage_visible": 0.5,
"hide_shadow": true
},
"glow": {
"enabled": true
},
"player_health_bar": {
"enabled": true
},
"fog_of_war": {
"enabled": true,
"color": "#a3a3a3",
"exponent": 0.05,
"density": 1,
"distance": 10000,
"player_visibility": 1
},
"play_as_chicken": {
"enabled": true,
"sound_volume": 3,
"min_sound_wait_time": 3,
"max_sound_wait_time": 7
},
"unlimited_ammo": {
"enabled": true
},
"random_weapon": {
"enabled": true,
"disable_buymenu": true,
"random_secondary_and_primary_weapon": true,
"primary_weapons": [
"weapon_ak47",
"weapon_aug",
"weapon_awp",
"weapon_bizon",
"weapon_famas",
"weapon_g3sg1",
"weapon_galilar",
"weapon_m249",
"weapon_m4a1",
"weapon_m4a1_silencer",
"weapon_mac10",
"weapon_mag7",
"weapon_mp5sd",
"weapon_mp7",
"weapon_mp9",
"weapon_negev",
"weapon_nova",
"weapon_p90",
"weapon_sawedoff",
"weapon_scar20",
"weapon_sg556",
"weapon_ssg08",
"weapon_ump45",
"weapon_xm1014"
],
"secondary_weapons": [
"weapon_cz75a",
"weapon_deagle",
"weapon_elite",
"weapon_fiveseven",
"weapon_glock",
"weapon_p250",
"weapon_revolver",
"weapon_tec9",
"weapon_usp_silencer",
"weapon_hkp2000",
"weapon_taser"
]
},
"damage_multiplier": {
"enabled": true,
"min_multiplier": 0.5,
"max_multiplier": 2
},
"headshot_only": {
"enabled": true
},
"no_headshot": {
"enabled": true
},
"weird_grenades": {
"enabled": true,
"min_detonate_time": 0.1,
"max_detonate_time": 10,
"min_smokeduration": 1,
"max_smokeduration": 19,
"min_blindduration": 0.1,
"max_blindduration": 5
}
},
"sounds": {
"dice_sound": "sounds/ui/coin_pickup_01.vsnd",
"play_on_command_only": false
},
"precache": {
"soundevent_file": "soundevents/soundevents_rollthedice.vsndevts"
},
"maps": {},
"player_configs": {},
"ConfigVersion": 1
}Enables or disables the plugin globally.
Enables debug mode for development and troubleshooting.
Allows players to use !rtd during warmup rounds.
Controls when dice are automatically rolled:
- event: When to trigger auto-roll (
RoundStartorRoundFreezeEnd) - force_all_players: Forces all players to roll dice at the given event
- allow_player_auto_rtd: Allows players to use their automatic dice roll they can activate via
!rtd auto - roll_the_dice_every_x_seconds: Automatically rolls dice every X seconds (0 = disabled)
Number of rounds a player must wait before using !rtd again. Use this OR cooldown_seconds, not both (0 = disabled).
Number of seconds a player must wait before using !rtd again. Use this OR cooldown_rounds, not both (0 = disabled).
Money it costs to roll the dice.
Allows players to use !rtd again after respawning in the same round.
Configuration for all available dice effects. Each dice can be enabled/disabled and has specific settings.
Sound played when using !rtd. Use sound file paths (e.g. sounds/test.vsnd) or sound events (e.g. RollTheDice.Command). Use RollTheDice.{dice} to play a sound event for each individual dice. Example audio files are provided via the AI from elevenlabs.io (Unreal Tonemanagement 2003).
- dice_sound: Sound path or event name to play.
{dice}gets replaced by the case-sensitive dice name. Disabled if empty. - play_on_command_only: Plays the sound only when a player types in
!rtd- otherwise plays it on events as well.
Map-specific configuration overrides. Same structure as dice settings but only applies to specific maps.
Stores individual player settings automatically. Players are identified by SteamID64.
Clone the project:
git clone https://github.com/Kandru/cs2-roll-the-dice.gitGo to the project directory
cd cs2-roll-the-diceInstall dependencies
dotnet restoreBuild debug files (to use on a development game server)
dotnet buildBuild release files (to use on a production game server)
dotnet publish