CS2 Reloading Plugin
Plugin Name: ILLUSION PLUGINS: CS2 Reloading
Version: 1.0
Author: illusionLabs.dev
Game: Counter-Strike 1.6
📋 Description
CS2 Reloading brings the Counter-Strike 2 fast reload mechanic to Counter-Strike 1.6. This plugin allows players to complete weapon reloads faster by quick-switching weapons during the reload animation, just like in CS2.
✨ Features
- CS2-Style Fast Reloading - Quick-switch weapons to complete reloads faster
- Smart Threshold System - Reload completes at 55% of the animation
- 24 Weapons Supported - Works with all CS 1.6 reloadable weapons
- Shotgun Protection - Automatically excludes M3 and XM1014 (shell-by-shell reload)
- Death/Team Change Safety - Cleans up reload states on player death or team change
- Zero Performance Impact - Optimized with safety checks to prevent crashes
🎮 How It Works
The CS2 Reload Mechanic
- Start reloading your weapon (press R)
- Wait until ~55% of the reload animation completes
- Quick-switch to knife or another weapon (press Q or scroll wheel)
- Switch back to your reloading weapon
- ✅ Reload completes instantly - bullets are loaded!
Important Notes
- If you switch too early (before 55%), the reload will NOT complete
- You must switch back to the same weapon that was reloading
- Once you return to the weapon, the reload state is cleared (prevents exploits)
- Reload tracking is automatically cleared on death or team change
🔫 Supported Weapons
Pistols (6)
- Glock18, USP, P228, Desert Eagle, Five-Seven, Dual Elites
SMGs (5)
- MP5 Navy, TMP, MAC-10, UMP-45, P90
Rifles (6)
- AK-47, M4A1, Galil, FAMAS, SG552, AUG
Sniper Rifles (4)
- AWP, Scout, SG550, G3SG1
Machine Gun (1)
- M249
❌ Not Supported
- M3 & XM1014 (Shotguns) - These reload shell-by-shell and are excluded
Total: 24 weapons supported
📦 Installation
Requirements
- AMX Mod X 1.8.2 or newer
- Counter-Strike 1.6
Dependencies
#include <amxmodx>#include <amxmisc>#include <fakemeta>#include <hamsandwich>#include <cstrike>
⚙️ Configuration
Reload Threshold
The plugin uses a 55% threshold by default. This can be adjusted in the source code:
#define RELOAD_THRESHOLD 0.55
Adjustment Guide:
0.50 (50%) - Easier, can switch earlier0.55 (55%) - Default, balanced0.60 (60%) - Harder, must wait longer0.70 (70%) - Very late, near completion
🔧 Technical Details
Safety Features
- Division by Zero Protection - Validates reload time before calculations
- Shotgun Exclusion - M3/XM1014 automatically excluded
- Death Event Handler - Clears reload state on player death
- Team Change Handler - Clears reload state on team switch
- Player ID Validation - Checks valid player IDs (1-32)
- Entity Validation - Validates weapon entities before use
How It Works Internally
- Reload Start Tracking:
Ham_Weapon_Reload hook captures when player starts reloading- Stores: start time, reload duration, weapon ID, ammo counts
- Weapon Switch Detection:
Ham_Item_Deploy hook captures when player switches weapons- Checks if returning to a weapon that was reloading
- Progress Calculation:
- Calculates elapsed time vs. total reload time
- If progress ≥ 55%, completes the reload instantly
- Ammo Application:
- Uses
set_pdata_int to set weapon clip ammo - Updates backpack ammo via
cs_set_user_bpammo - Sends
AmmoX message to update HUD - State Cleanup:
- Clears reload flag when switching back to weapon
- Prevents double-reload exploit
🎯 Weapon Reload Times
The plugin uses realistic reload times for accurate threshold calculation:
Weapon Reload Time
AK-472.5sM4A13.1sAWP2.5sDesert Eagle2.2sGlock182.2sUSP2.7sP903.4sMP5 Navy2.6sM2494.7sGalil3.3sFAMAS3.3sAUG3.8s
Full list available in source code
🐛 Known Limitations
- Shotguns (M3/XM1014) - Not supported due to shell-by-shell reload mechanics
- Threshold Timing - Switching too early will cancel the reload completely
- Animation Visual - The reload animation will be interrupted, but bullets are added
🔒 Anti-Exploit Protection
- Single-Use Tracking - Reload state is cleared after one switch-back
- No Double Reload - Prevents reloading twice from one reload animation
- Death Cleanup - State is cleared on death to prevent abuse
- Team Change Cleanup - State is cleared when changing teams
💡 Tips for Players
- Practice the timing - Get familiar with the 55% point for each weapon
- Use Q for quick-switch - Bind a key for fast weapon switching
- Watch the animation - Learn the visual cue for when to switch
- Don't switch too early - Wait for at least half the animation
- Works in combat - Use during firefights to reload faster
📞 Support
Developer: illusionLabs.dev
Plugin Version: 1.0
For bug reports, suggestions, or support, contact the developer.
📄 License
This plugin is provided as-is. Feel free to modify and redistribute with proper credit.
Enjoy faster reloads, just like in CS2! 🚀