About Gun Jamming
Gun Jamming helps to add realism to your server by weapon jamming. The plugin calculates the condition of weapons and dynamically calculates the chance of jamming, which makes players repair their weapons more often to avoid unpleasant situations during fight.
When the weapon jams, player will receive a notification that the weapon needs to be reloaded, and the number of bullets will set to -1. After reloading the weapon, the person can continue shooting again.
In the configuration, you can set the minimum and maximum chance of weapon jamming (from 0 to 100%), and you can also adjust these values for different weapons and add weapons that cannot jam. You can change the sound of weapon jamming and add a non-jamming privilege.
Features
- Gun jamming depending on weapon durability
- Permissions to easily add no-jamming privileges and monitize it
- Configurable minimum and maximum jamming chance
- Separate configuration for chances and privileges for each weapon
- Types of notification in Chat/UI
- A nice sound of a jamming that can always be replaced in the config
- List of weapons without jamming
Configuration
{ "MaxJamChance": 50.0, "MinJamChance": 0.0, "WeaponsNoJam": [ "bow.hunting", "blowpipe", "bow.compound", "crossbow", "pistol.eoka", "flamethrower", "homingmissile.launcher", "legacy bow", "military flamethrower", "minicrossbow", "multiplegrenadelauncher", "rocket.launcher", "snowballgun", "speargun", "shotgun.waterpipe" ], "WeaponOverrides": { "rifle.ak": { "MaxJamChance": 30.0, "MinJamChance": 5.0, "IgnorePermission": false }, "pistol.revolver": { "MaxJamChance": 40.0, "MinJamChance": 10.0, "IgnorePermission": true } }, "NotificationType": 1, // 0 is chat. 1 is rust default notifications "SoundPath": "assets/prefabs/weapons/revolver/effects/attack_silenced.prefab" }