Bullet Ricochet Blocker 1.0.0 (olds.ro)
=======================================
Removes the bullet ricochet effects the server sends, so shots do not seem
to bounce: the sparks and gunshot puffs of a bullet, and the ricochet whine.
Bullet holes (decals) and blood stay.
- olds_nr_sparks 1: no sparks or gunshot puffs from bullets. They are
removed only while a bullet is being fired, so explosions, grenade spark
showers and sparking map objects keep theirs.
- olds_nr_sound 1: no ricochet sound (weapons/ric*.wav).
- Bullet holes, blood and every other effect stay.
- Please note: Counter-Strike 1.6 draws most bullet impacts (the hole,
its dust and sparks) on each player's own computer, from the shot
itself. A server plugin cannot change those. This plugin removes what
the server sends, for example the sparks and the whine of a bullet
hitting a shield, and the same effects from maps or other plugins that
send them with their bullets.
- The plugin shows no text and has no language file.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer, with the fakemeta module (enabled by
default)
Install
1. Compile scripting/olds_noricochet.sma and copy olds_noricochet.amxx to
addons/amxmodx/plugins/. The compiler needs ReAPI's include files
(reapi.inc and the reapi_*.inc files from the ReAPI release, in
addons/amxmodx/scripting/include/) next to the stock AMX Mod X includes.
2. Copy configs/plugins/olds_noricochet.cfg to
addons/amxmodx/configs/plugins/ and change the values you want.
(If the file is missing, the plugin writes one with the defaults the
first time it starts.)
3. Add olds_noricochet.amxx to addons/amxmodx/configs/plugins.ini.
Settings (addons/amxmodx/configs/plugins/olds_noricochet.cfg)
olds_nr_sparks 1 1 = no sparks or gunshot puffs from bullets
olds_nr_sound 1 1 = no ricochet sound (weapons/ric*.wav)
Commands
None.
How it works
The temporary-entity message (SVC_TEMPENTITY) is checked: TE_SPARKS and
TE_GUNSHOT are dropped while a bullet is being fired (ReAPI hooks on the
game's FireBullets3, FireBullets and FireBuckshots). The engine's sound
function (FM_EmitSound) drops the weapons/ric*.wav sounds.
Tested on
ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149,
AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card
LIB-0136. Licence: GNU General Public License v3.0 or later
(GPL-3.0-or-later).