Dust2 Short Gravity Plugin
A Counter-Strike 1.6 AMX Mod X plugin that provides reduced gravity at a specific location on de_dust2 map, allowing players to jump directly onto "Short" without requiring a boost.
Features
- Map-Specific: Only active on
de_dust2 - Location-Based Gravity: Reduces gravity when players are near coordinates
602, 2370, 76 (Short area) - Automatic Detection: Continuously checks player positions every 0.1 seconds
- Visual Feedback:
- On-screen message: "Low Gravity Zone - Jump Higher!"
- Cyan dynamic light effect when entering the zone
- Smart Gravity Management:
- Saves original player gravity before modification
- Restores normal gravity when leaving the zone
- Resets gravity on player respawn
Configuration
You can customize the plugin by modifying these defines in the source code:
#define GRAVITY_VALUE 0.3 // Lower = higher jumps (0.1-0.9, normal is 1.0)#define CHECK_RADIUS 80.0 // Detection radius in units around target position
Gravity Values Guide:
1.0 = Normal gravity0.5 = Half gravity (moderate jump boost)0.3 = Low gravity (high jump boost) - Default0.1 = Very low gravity (extreme jump boost)
Radius Values:
80.0 = Tight activation zone - Default100.0 = Medium activation zone150.0 = Large activation zone
Installation
- Compile the plugin:
amxxpc.exe Dust2ShortGravity.sma -iinclude
- Copy the compiled plugin:
- Place
Dust2ShortGravity.amxx in cstrike/addons/amxmodx/plugins/ - Enable the plugin:
- Add to
cstrike/addons/amxmodx/configs/plugins.ini:
Dust2ShortGravity.amxx
- Restart server or change map to de_dust2
Requirements
- AMX Mod X 1.8.2 or higher
- Counter-Strike 1.6
Required Modules:
amxmodxamxmiscfakemetafun
How It Works
- Plugin checks if the current map is
de_dust2 - If not on de_dust2, the plugin automatically pauses itself
- Every 0.1 seconds, it checks all alive players' positions
- When a player enters the 80-unit radius around the target coordinates:
- Their original gravity is saved
- Gravity is reduced to 0.3 (configurable)
- Visual effects and message are displayed
- When the player leaves the zone, normal gravity is restored
- On respawn, gravity is reset to normal
Technical Details
- Target Coordinates:
602.0, 2370.0, 76.0 (Short area on de_dust2) - Check Frequency: 10 times per second (0.1s interval)
- Detection Method: 3D distance calculation from player origin to target point
- Gravity Storage: Per-player original gravity values stored in array
Customization
Change Target Location:
Modify the coordinates in the source code:
new Float:g_fTargetOrigin[3] = {602.0, 2370.0, 76.0}
Disable Visual Effects:
Comment out or remove the message_begin block (lines 104-115)
Change Message:
Modify line 101:
client_print(id, print_center, "Your Custom Message Here!")
Troubleshooting
Plugin doesn't work:
- Ensure you're on
de_dust2 map - Check that all required modules are loaded
- Verify plugin is listed in
plugins.ini
Gravity zone too large/small:
- Adjust
CHECK_RADIUS value and recompile
Jump not high enough:
- Decrease
GRAVITY_VALUE (try 0.2 or 0.1)
Jump too high:
- Increase
GRAVITY_VALUE (try 0.4 or 0.5)
Version History
v1.0 (2025-01-21)
- Initial release
- Basic gravity zone functionality
- Visual effects and notifications
- Map-specific activation
Author
illusionLabs.dev
License
Free to use and modify for personal and commercial servers.
Support
For issues, suggestions, or customization requests, please contact the author.