This plugin adds a guidance system that enables projectiles to bounce/ricochet/hover on surfaces.
The plugin essentialy draws 4 beams or whiskers at a certain angle around any projectile to form a cone, when the cone is triggered the projectile's direction is corrected to avoid said trigger.
Ricochet.v1.Preview.mp4
-
Projectile System:
- Supports rockets, arrows, flares, and other projectiles.
- Tracks each projectile's velocity for a more natural surface flow.
- Calculates surface normals for smooth transitions.
-
Visual Feedback System:
- Golden energy rings appear at surface interaction points.
- Visual indicators scale with projectile velocity for a clear representation of behavior.
-
Configuration System:
-
Customizable through
ricochet.cfg
and can be updated without restarting:whisker_length
- Controls surface detection range.whisker_angle
- Determines detection cone width.max_bounces
- Sets redirection limits per projectile.show_whiskers
- A toggle that shows the cone in game for an easier time adjusting it.
-
sm_rico
- Opens admin controls to toggle plugin state, reload configuration, and adjust settings.
-
Download the latest
Ricochet.smx
andRicochet.cfg
from the Releases page and place them in yoursourcemod\plugins
andsourcemod\configs
folder. -
Reload the plugin or restart your server.
-
The latest SourceMod release.
-
If you plan to compile the plugin on your own make sure to have math.inc in your include folder.
This project is licensed under the MIT License - see the LICENSE file for details.
Requests & Contributions are welcome! Feel free to submit a Pull Request.