Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

Screen Shake Opt-Out

Plugin
Alexit9e4c2c8429Version 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
Screen Shake Opt-Out 1.0.0 (olds.ro) ==================================== Lets every player turn screen shakes off for themselves, for players who get motion sick or simply want a steady view. A player types /noshake in chat and from then on the server stops sending them screen shakes: env_shake effects on maps and the shakes other plugins send (earthquakes, admin "shake" commands, zombie infections and so on). Damage, sounds and everything else stay the same, and every other player still gets their shakes. The choice is saved by SteamID, so it is still there after a reconnect or a map change. Optionally the view punch (the small camera kick when you are hit) can be cleared too for the players who turned shakes off. Requirements - ReHLDS, ReGameDLL_CS, Metamod-r and ReAPI with RegisterMessage (ReAPI 5.29 is fine) - AMX Mod X 1.10 or newer with the nvault module (it ships with AMX Mod X) - Tested on ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, ReAPI 5.29.0.358 and AMX Mod X 1.10.0.5490 Install 1. Compile scripting/olds_noshake.sma with amxxpc 1.10 and copy olds_noshake.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and reapi_*.inc) in addons/amxmodx/scripting/include/. 2. Copy data/lang/olds_noshake.txt to addons/amxmodx/data/lang/. 3. Copy configs/plugins/olds_noshake.cfg to addons/amxmodx/configs/plugins/. 4. Add olds_noshake.amxx to addons/amxmodx/configs/plugins.ini. Commands /noshake (say or say_team) turns screen shakes off for you, or back on. The command itself is not shown in chat; a chat line tells you the new state. Settings (addons/amxmodx/configs/plugins/olds_noshake.cfg) olds_noshake_enable 1 1 = players can turn shakes off, 0 = every shake is sent as usual and /noshake only says so olds_noshake_punch 0 1 = also clear the view punch from damage for the players who turned shakes off olds_noshake_default 0 1 = shakes start off for players who never typed /noshake, 0 = they start on How it works - Every ScreenShake message is checked before it is sent. One sent to a player who turned shakes off is dropped. One sent to everyone at once is dropped and sent again to each player who still wants shakes. - The check runs in AMX Mod X's register_message hook, which sees the game's own shakes and those other plugins send with emessage_begin, and again in ReAPI's engine message hook (RegisterMessage), which also sees the shakes other plugins send with message_begin. AMX Mod X's own hook never sees those, so without the second check they would get through. - With olds_noshake_punch 1 the view punch is set back to zero right after the game applies the damage, so health and damage are not changed. - On ReGameDLL a plain HE grenade sends no screen shake at all, so there is nothing to remove there; HE shakes that some servers have come from plugins and are removed like any other plugin shake. - Choices are saved in addons/amxmodx/data/vault/olds_noshake.vault by SteamID. Players without a real SteamID (bots, STEAM_ID_LAN, HLTV) keep their choice only until they leave. Files No sounds, models or sprites; nothing is downloaded by players. Texts are in data/lang/olds_noshake.txt (English). Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card IDEA-53980C084ACF0E61, after an idea seen on goldsrc.ru (resources/277). Licence: GPL-3.0-or-later.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.