## 📌
> [!NOTE]
> This repository is a fork of the [project](https://github.com/jakubbartosik/dRandomSkills) created by [Jakub Bartosik (D3X)](https://github.com/jakubbartosik).
## 💡 About
jRandomSkills is a plugin for CounterStrike 2 that brings chaos and fun to gameplay! In each round, you randomly receive one of the unique skills – from invisibility and explosive shots to camera manipulation. Surprise your opponents, take control of the match, and discover dozens of creative abilities that transform the game's dynamics!
#### Choose language:
## 🖼️ Preview


## 🌐 Test Server
Join the 3v3 test server and try out the jRandomSkills plugin:
- **Address**: `jRandomSkills@pukawka.pl`
- **Password**: `public`
- **Opening Hours**: `22:00-17:00 UTC`
- **Connect URL**: `steam://connect/51.38.122.215:27235/public`
- **Connect**: `connect 51.38.122.215:27235; password public`
Buying a server on pukawka? Use my [referral code](https://pukawka.pl/pp,juzlus.html).
## ✨ Current Skills (102)
The table below lists all available skills in the game, along with their descriptions.
| Name | Description | Cooldown / Range |
| - | - | - |
| Aimbot | Every bullet you hit counts as a headshot | - |
| Anomaly | You rewind a few seconds back in time | 15 s |
| Anti-Flash | You are immune to flashbangs, and your flashbangs last 7 seconds | - |
| Iron Head | You take no damage from headshots | - |
| Zone Reaper | You can choose a bomb site to deactivate | - |
| Armored | You have a random damage taken multiplier | (0.65 - 0.85)x |
| Assassin | You deal increased damage to enemies from behind | - |
| Astronaut | You receive a random gravity value at the start of the round | (0.1 - 0.7)x |
| Baseball Player | Your decoy bounces off walls and instantly kills an enemy on impact | - |
| Enemy Spin | You have a random chance to turn an enemy 180° when hitting them | (20 - 40)% |
| Blademaster | While holding a knife, you have a high chance to deflect a shot | - |
| Bunny | You get auto "BunnyHop" | - |
| C4 Camouflage | You are invisible while holding the bomb | - |
| Catapult | You have a random chance to launch an enemy upwards | (20 - 40)% |
| Chicken | You get a chicken model + 10% faster movement - 50 HP | - |
| Chillout | Planting the bomb takes significantly longer | - |
| Cutter | Instant kill with a knife | - |
| Darkness | Applies a darkness effect to a chosen enemy | - |
| Deactivator | Choose a player whose skill you want to disable | - |
| Deaf | Choose a player to mute all sounds for | - |
| Disarmament | You have a random chance to make an enemy drop their weapon on hit | (65 - 85)% |
| Rangefinder | You can see the distance to the nearest enemy | - |
| Dracula | Hitting an enemy restores health equal to a percentage of the damage dealt | - |
| Duplicator | Choose a player to copy their skill | - |
| Dwarf | Random character size at the start of the round | (60 - 95)% |
| Enemy Spawn | Click [css_useSkill] to teleport to the enemy spawn | 15 s |
| Explosive Shot | Random chance to fire an explosive bullet while shooting | (15 - 30)% |
| Falcon Eye | Click [css_useSkill] to activate a bird's-eye view camera| - |
| Fastreload | Click [css_useSkill] to reload the weapon you are currently holding | - |
| Flash | Random player speed at the beginning of the round | (1.2 - 3.0)x |
| Fortnite | Click [css_useSkill] to create a destructible barricade | 2 s |
| Fragile Bomb | Shooting the bomb damages it | - |
| Friendly Fire | Shooting teammates heals them | - |
| Freezing Decoy | Your decoy freezes all nearby players | - |
| Ghost | You are completely invisible | - |
| Glaz | You can see through smoke grenades | - |
| Glitch | Disables the radar for a chosen enemy | - |
| Glue | Your grenades stick to walls | - |
| God Mode | Click [css_useSkill] to become immortal for a short time | 30 s |
| Healing Smoke | Your smoke grenades heal | - |
| Hermit | Killing restores ammo and a portion of health | - |
| Holy Hand Grenade | Your HE grenades deal double damage and have double range| - |
| Impostor | You start the round with an enemy player model | - |
| Infinite Ammo | You receive infinite ammo for all your weapons | - |
| Tracker | Choose a player who will leave a trail behind them | - |
| Jammer | Choose a player to disable their crosshair | - |
| Legless | Choose a player who cannot jump | - |
| Jumping Jack | Jumping restores health | - |
| Killer Flash | Anyone fully blinded by your flashbang dies (including you) | - |
| Life Swap | Choose a player to swap health with | - |
| Long Knife | A primary knife attack deals damage regardless of distance | - |
| Long Zeus | Zeus deals damage regardless of distance | - |
| Medic | Click [css_useSkill] to use a healing charge that restores 50 health | 1 s |
| Taxman | Choose a player to swap money with | - |
| Muhammed | You explode upon death, killing nearby players | - |
| Ninja | Standing still increases your invisibility by 33%, crouching by 33%, and holding a knife by 33% | - |
| No-Nades | Grenades deal no damage to you | - |
| Focus | No recoil while shooting | - |
| NoClip | Click [css_useSkill] to enable noclip for a short time | 30 s |
| One-Shot | Hitting an enemy instantly kills them | - |
| Head Only | You only take damage to the head | - |
| Pawel Jumper | You get an extra jump | - |
| Phoenix | You have a random chance to respawn after death | (20 - 40)% |
| Psychic Defusing | When you are near the bomb, you start defusing it | 10 s |
| Pilot | Fly for a limited time. Hold [USE - E] to fly | - |
| Free Planter | You can plant the bomb anywhere, with a detonation time of 60 seconds | - |
| Poison | Choose a player who will take damage every few seconds | - |
| No Rifles | Choose a player who cannot use rifles | - |
| Prosthesis | Arms and legs are bulletproof | - |
| Pusher | You have a random chance to push an enemy back when hitting them | 100% |
| Pyro | Molotov restores health | - |
| Rapid Fire | All bullets are fired very quickly | - |
| Radar Hack | Enemies are visible on the radar | - |
| Rambo | You receive a random amount of health at the start of the round | +(50 - 501) HP |
| Random Weapon | Click [css_useSkill] to receive a random weapon | 15 s |
| Re-Zombie | After death, you respawn as a zombie with increased health and no weapons | - |
| Reactive Armor | Armor absorbs the first damage taken | 15 s |
| Regeneration | You restore health every few seconds | - |
| Replicator | Click [css_useSkill] to create a replica that deals damage on hit | 15 s |
| Retreat | Click [css_useSkill] to return to spawn | 15 s |
| Return to Sender | The first hit on an enemy sends them back to their spawn | - |
| Rich Boy | You receive a random amount of money at the start of the round | (5000 - 15000)$ |
| Robin Hood | Dealing damage to an enemy steals their money | - |
| Rubber Bullets | Your bullets significantly slow down players | - |
| Sapper | You can plant and defuse bombs faster | - |
| Second Chance | After death, you respawn with the same amount of health | - |
| Shade | You teleport behind the back of a hit enemy | - |
| Short Fuse | The bomb explodes much faster | - |
| Silent | Your footsteps and jumps are silent to other players | - |
| Sniper Elite | Click [css_useSkill] to swap your current weapon for an AWP | 0 s |
| Soldier | You have a random damage multiplier | (1.15 - 1.35)x |
| Soundmaker | Click [css_useSkill] to trigger a sound for every enemy | 5 s |
| Spectator | Click [css_useSkill] to spectate a random enemy | 0 s |
| Position Swap | Click [css_useSkill] to swap places with a random enemy | 30 s |
| Teleporter | You swap places with the hit enemy | - |
| Thief | You can steal a skill from a chosen player | - |
| Third Eye | Click [css_useSkill] to activate third-person view | 0 s |
| Toxic Smoke | Your smoke grenades deal damage | - |
| Wallhack | You can see enemies through walls | - |
| Watchmaker | Every grenade throw alters the round time | - |
| Weapon Swap | Click [css_useSkill] to swap weapons with a random enemy | 30 s |
| Zeus | Zeus x27 instantly recharges | - |
## 💻 Installation
1. install / buy a **CS2 server**.
- Good tutorial on how to create your own CS2 server [[Video]](https://www.youtube.com/watch?v=1ZrEn0CiMi4&ab_channel=TroubleChute), [[Website]](https://hub.tcno.co/games/cs2/dedicated_server/).
2. Install **Metamod**.
- Download [Metamod:Source 2.x](https://www.sourcemm.net/downloads.php/?branch=master)
- Extract it to the `C2Server/game/csgo/` folder.
- Edit the `gameinfo.gi` file by adding a new line
```json
Game_LowViolence csgo_lv // Perfect World content override
Game csgo/addons/metamod // <-- Line to add
Game csgo
```
3. Install **CounterStrikeSharp**.
- Download [CounterStrikeSharp-With-Runtime](https://github.com/roflmuffin/CounterStrikeSharp/releases).
- Extract it to the `C2Server/game/csgo/` folder.
4. Install **CS2TraceRay**
- Download [CS2TraceRay](https://github.com/schwarper/CS2TraceRay/releases)
- Extract it to the `CS2Server/game/csgo/addons/counterstrikesharp/` folder.
5. Install **jRandomSkills**
- Download [jRandomSkills](https://github.com/Juzlus/jRandomSkills/releases)
- Extract it to the `C2Server/game/csgo/addons/counterstrikesharp/plugins/` folder.
- IF there is a `gamedata.json` file to download:
- Extract `gamedata.json` to the `C2Server/server/game/csgo/addons/counterstrikesharp/gamedata/` folder.
## > Server Commands
> [!TIP]
> **Bind to use skills:** `bind x css_useSkill`
The table below lists all available commands in the game, along with their descriptions.
| Command | Example | Description | Permissions |
| - | - | - | - |
| `!setskill ` | `!setskill Juzlus Aimbot` | Giving skill to a player | `@jRandmosSkills/admin` |
| `!skills` | `!skills` | List of skills | - |
| `!map ` | `!map de_nuke` | Change map | `@jRandmosSkills/admin` |
| `!map ` | `!map 3332005394` | Change map from workshop | `@jRandmosSkills/admin` |
| `!start` | `!start` | Start game with conditions: `mp_forcecamera 0, mp_freezetime 5, mp_overtime_enable 1, sv_cheats 0` | `@jRandmosSkills/admin` |
| `!start sv` | `!start sv` | Start the game with conditions: `mp_forcecamera 0, mp_freezetime 0, mp_overtime_enable 1, sv_cheats 1` | `@jRandmosSkills/admin` |
| `!console ` | `!console sv_cheats 1` | Run a command on the server | `@jRandmosSkills/root` |
| `!swap` | `!swap` | Switch sides | `@jRandmosSkills/admin` |
| `!shuffle` | `!shuffle` | Randomly assign players to teams | `@jRandmosSkills/admin` |
| `!pause` | `!pause` | Pause the game | `@jRandmosSkills/admin` |
| `!heal` | `!heal` | Restore 100 health points | `@jRandmosSkills/root` |
| `!setscore ` | `!setscore 10 7` | Set the game score | `@jRandmosSkills/root` |
## 🔑 Permissions
To grant administrative permissions in CounterStrikeSharp:
1. In the **`game/csgo/addons/counterstrikesharp/configs/`** folder, create a file named **`admins.json`**.
2. Add the following content to it:
```json
{
"Juzlus": {
"identity": "STEAM_0:0:94913632",
"flags": ["@jRandmosSkills/admin", "@jRandmosSkills/root"]
}
}
```
You can find your `steamID` using the [steamidfinder](www.steamidfinder.com) website.
3. Save the file and restart the server to apply the changes.
## ⚙️ Configuration
All skills can be customized in the **`Config.cfg`** file located in the **`game/csgo/addons/counterstrikesharp/plugins/jRandomSkills/`** folder.
```json
{
“Settings”: {
“LangCode”: “en”, // Plugin language: en, pl, pt-br, zh
“GameMode”: 0, // Game mode:
// 0 - Random skills for each player
// 1 - Same skills for the whole team
// 2 - Same skills for all players
// 3 - Debug: Skills are assigned in turn
“KillerSkillInfo”: true, // Show killer's skill in chat
“TeamMateSkillInfo”: true, // Show allies' skills in chat
“SummaryAfterTheRound”: true, // Show summary of the last round
“DebugMode”: true, // Write activity to the ‘Debug’ folder
...
},
“SkillsInfo”: [
{
“NeedsTeammates”: false, // Requires other players on the team
“OnlyTeam”: 0, // Skill availability:
// 0 - Everyone
// 2 - Terrorist
// 3 - CounterTerrorist
“Color”: “#ff0000”, // Skill color
“Active”: true, // Enabled on startup
“Name”: “Aimbot” // Skill name
},
...
]
}
```
## 🔗 Dependency Includes
This plugin uses content from the following projects:
- [CS2TraceRay](https://github.com/schwarper/CS2TraceRay) by [schwarper](https://github.com/schwarper) - Trace Ray system
- [CS2FlashingHtmlHudFix](https://github.com/girlglock/CS2FlashingHtmlHudFix) by [girlglock](https://github.com/girlglock) - a fix for window flickering
- [ChaseMod](https://github.com/ipsvn/ChaseMod/blob/master/Utils/Memory/CCSMatch.cs) by [ipsvn](https://github.com/ipsvn) - round score management
## 📋 Changelog
v1.1.1
- #### General:
- ###### Added validation for undefined values for the skills: Silent and Flash.
v1.1.0
- #### General:
- ###### Added Brazilian Portuguese language (Grok AI).
- ###### Added Chinese language (Grok AI).
- ###### Added game modes.
- ###### Added configuration for each skill.
- ###### Added Debug Mode.
- ###### Added weapon receiving for skills associated with them (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1)).
- ###### Introduced general fixes and resolved bugs.
- #### New skills:
- ##### Anomaly
- ###### You rewind a few seconds back in time. Cooldown: 15 s.
- ##### Zone Reaper
- ###### You can choose a bomb site to deactivate.
- ##### Assassin
- ###### You deal increased damage to enemies from behind.
- ##### Baseball Player
- ###### Your decoy bounces off walls and instantly kills an enemy on impact.
- ##### Blademaster
- ###### While holding a knife, you have a high chance to deflect a shot.
- ##### C4 Camouflage
- ###### You are invisible while holding the bomb.
- ##### Chillout
- ###### Planting the bomb takes significantly longer.
- ##### Cutter
- ###### Instant kill with a knife.
- ##### Darkness
- ###### Applies a darkness effect to a chosen enemy.
- ##### Deactivator
- ###### Choose a player whose skill you want to disable.
- ##### Deaf
- ###### Choose a player to mute all sounds for.
- ##### Rangefinder
- ###### You can see the distance to the nearest enemy.
- ##### Duplicator
- ###### Choose a player to copy their skill.
- ##### Explosive Shot
- ###### Random chance to fire an explosive bullet while shooting. Chance: (15 - 30)%.
- ##### Falcon Eye
- ###### Click [css_useSkill] to activate a bird's-eye view camera.
- ##### Fastreload
- ###### Click [css_useSkill] to reload the weapon you are currently holding.
- ##### Fortnite
- ###### Click [css_useSkill] to create a destructible barricade. Cooldown: 2 s.
- ##### Fragile Bomb
- ###### Shooting the bomb damages it.
- ##### Friendly Fire
- ###### Shooting teammates heals them.
- ##### Glaz
- ###### You can see through smoke grenades.
- ##### Glitch (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### Disables the radar for a chosen enemy.
- ##### Glue (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### Your grenades stick to walls.
- ##### Healing Smoke
- ###### Your smoke grenades heal.
- ##### Hermit (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### Killing restores ammo and a portion of health.
- ##### Holy Hand Grenade
- ###### Your HE grenades deal double damage and have double range.
- ##### Tracker
- ###### Choose a player who will leave a trail behind them.
- ##### Jammer (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### Choose a player to disable their crosshair.
- ##### Legless
- ###### Choose a player who cannot jump.
- ##### Jumping Jack
- ###### Jumping restores health.
- ##### Life Swap
- ###### Choose a player to swap health with.
- ##### Long Knife
- ###### A primary knife attack deals damage regardless of distance.
- ##### Long Zeus
- ###### Zeus deals damage regardless of distance.
- ##### Taxman
- ###### Choose a player to swap money with.
- ##### Ninja
- ###### Standing still increases your invisibility by 33%, crouching by 33%, and holding a knife by 33%.
- ##### No-Nades
- ###### Grenades deal no damage to you.
- ##### Focus (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### No recoil while shooting.
- ##### NoClip
- ###### Click [css_useSkill] to enable noclip for a short time. Cooldown: 30 s.
- ##### Head Only
- ###### You only take damage to the head.
- ##### Poison
- ###### Choose a player who will take damage every few seconds.
- ##### No Rifles
- ###### Choose a player who cannot use rifles.
- ##### Prosthesis
- ###### Arms and legs are bulletproof.
- ##### Psychic Defusing
- ###### When you are near the bomb, you start defusing it. Cooldown: 10 s.
- ##### Pusher
- ###### You have a random chance to push an enemy back when hitting them. Chance: 100%.
- ##### Pyro
- ###### Molotov restores health.
- ##### Reactive Armor
- ###### Armor absorbs the first damage taken. Cooldown: 15 s.
- ##### Regeneration
- ###### You restore health every few seconds.
- ##### Replicator
- ###### Click [css_useSkill] to create a replica that deals damage on hit. Cooldown: 15 s.
- ##### Return to Sender
- ###### The first hit on an enemy sends them back to their spawn.
- ##### Re-Zombie
- ###### After death, you respawn as a zombie with increased health and no weapons.
- ##### Robin Hood (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### Dealing damage to an enemy steals their money.
- ##### Rubber Bullets (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### Your bullets significantly slow down players.
- ##### Second Chance
- ###### After death, you respawn with the same amount of health.
- ##### Short Fuse (suggested by [ToRRent1812](https://github.com/Juzlus/jRandomSkills/issues/1))
- ###### The bomb explodes much faster.
- ##### Sniper Elite
- ###### Click [css_useSkill] to swap your current weapon for an AWP.
- ##### Soundmaker
- ###### Click [css_useSkill] to trigger a sound for every enemy. Cooldown: 5 s.
- ##### Spectator
- ###### Click [css_useSkill] to spectate a random enemy.
- ##### Thief
- ###### You can steal a skill from a chosen player.
- ##### Third Eye
- ###### Click [css_useSkill] to activate third-person view.
- ##### Toxic Smoke
- ###### Your smoke grenades deal damage.
- ##### Wallhack
- ###### You can see enemies through walls.
- ##### Watchmaker
- ###### Every grenade throw alters the round time.
- #### Skill improvements:
- ###### Improved skill descriptions.
- ###### Fixed all noticeable bugs.
v1.0.3
- #### General:
- ###### English language added.
- ###### Added welcome message.
- ###### Added summary of last round.
- ###### Added preview of spectated player's skills.
- ###### Blocked the possibility of having the same skill twice in a row.
- ###### Added simple configuration for each skill.
- ###### Reworked all skills so they can be manipulated at any time (Fixed setskill command)
- ###### Changed activation of skills to bind css_useSkill
- #### New skills:
- ##### Freezing Decoy
- ###### Your decoy freezes all nearby players.
- ##### Soldier:
- ###### You have a random damage multiplier (1.15 - 1.35)x.
- ##### Tank:
- ###### You have a random received damage multiplier (0.65 - 0.85)x.
- ##### Aimbot:
- ###### Each bullet you hit is counted as a head.
- ##### Retreat:
- ###### Return to spawn. Click [css_useSkill], cooldown 15s.
- ##### Enemy Respawn:
- ###### Teleport to enemy spawn. Click [css_useSkill], cooldown 15s.
- ##### Zeus:
- ###### Zeus x27 instant reload.
- ##### Radar Hack:
- ###### You see enemies on radar.
- ##### Quick-Shot:
- ###### No cooldown when shooting.
- ##### Planter:
- ###### You can plant a bomb anywhere, bomb detonation time is 60s.
- ##### Silent:
- ###### Your steps and jumps are unheard by OTHER players.
- ##### Deadly Flash:
- ###### Anyone completely blinded by your grenade dies (including you).
- ##### Time Slow:
- ###### Time slowdown for everyone for 6 seconds. Click [css_useSkill], cooldown 30s.
- ##### God Mode:
- ###### You are immortal for 2 seconds. Click [css_useSkill], cooldown 30s.
- ##### Random Weapon:
- ###### You are given a random weapon. Click [css_useSkill], cooldown 15s.
- ##### Weapon Swap:
- ###### You swap weapons with a random enemy. Click [css_useSkill], cooldown 30s.
- #### Skill improvements:
- ##### Sapper:
- ###### Fixed bug with instantly planting a bomb as anyone on the server had the skill ‘Sapper’.
- ##### Ghost:
- ###### Fixed being invisible after death.
- ###### Minor fixes for the rest of the powers.
v1.0.2
- #### New skills:
- ##### Dwarf:
- ###### Random character size range (60% - 95%).
- ##### Swapper:
- ###### Swap places with a random enemy when clicking the [css_useSkill] button. Cooldown is 30s.
- #### Skill improvements:
- ##### Anti-Flash:
- ###### Added: Your flash takes longer (7s).
- ##### Astronaut:
- ###### Changed: Gravity multiplier from (0.2 - 0.7) to (0.1 - 0.7).
- ###### Added: Player can now see their gravity multiplier in chat.
- ##### Dracula:
- ###### Changed: Dracula can now have excess health from now on.
- ##### Ghost:
- ###### Added: Blocking the use of weapons other than a knife.
- ###### Added: Any weapon picked up by a ghost becomes invisible.
- ##### Flash:
- ###### Fixed not getting speed.
- ###### Changed: Speed multiplier from (1.2 - 2.5) to (1.2 - 3.0).
- ###### Added: Player can now see their speed multiplier in chat.
- ##### Catapult:
- ###### Added: Random toss chances (20% - 40%).
- ###### Added: The player now sees their chances in chat.
- ##### Chicken:
- ###### Fixed not getting the chicken model.
- ###### Added: Blocking the use of weapons other than a knife or gun.
- ###### Added: Chicken can only have 50 hp.
- ##### Medic:
- ###### Fixed not getting first aid kits.
- ###### Changed: From now on everyone loses first aid kits at the end of the round.
- ##### Infinite Ammo:
- ###### Added: From now on, grenades are also infinite.
- ##### Enemy Rotation:
- ###### Added: Random chance of enemy rotation (20% - 40%).
- ###### Added: Player can now see their chances in chat.
- ##### Phoenix:
- ###### Fixed not being reborn after death.
- ###### Added: Random revival chances (20% - 40%).
- ###### Added: Player can now see their chances in chat.
- ##### Pilot:
- ###### Changed: The description of this skill has been improved.
- ##### Rambo:
- ###### Fixed not getting extra health.
- ##### Disarmament:
- ###### Added: Random chances to throw away enemy weapons after hit (20% - 40%).
- ###### Added: Player can now see their chances in chat.
- ###### Changed: Now only active enemy weapon is thrown (Knife throwing bug fixed).
- ##### Eliminator -> Sapper:
- ###### Changed: Renamed the power from ‘Eliminator’ to ‘Sapper’.
- ##### Teleporter:
- ###### Fixed a bug where only the player with the skill was being teleported.
## 💝 Donate
⠀
## 📝 Contact
If you have a question, please write to juzlus.biznes@gmail.com or [jRandomSkills Discord](https://discord.gg/9H8EZYBpPF).