Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Screen Shake Opt-Out

Featured Replies

  • Administrator

A per-player switch that stops every screen shake the server sends, from grenades and from plugins alike. Players who get motion sick keep playing normally and only the camera shaking is removed for them.

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

  • 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/.
  • Copy data/lang/olds_noshake.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_noshake.cfg to addons/amxmodx/configs/plugins/.
  • 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.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_noshake.sma, test/olds_noshake_test.sma

License: GPL-3.0-or-later.
Written for the olds.ro plugin workshop (IDEA-53980C084ACF0E61), by alexit and checked by the automated Claude review.

Screen Shake Opt-Out
v1.0.0Counter-Strike 1.6PluginTests passed
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6.3 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 357 lines
/*
 * Screen Shake Opt-Out (olds.ro workshop card IDEA-53980C084ACF0E61)
 *
 * A per-player switch that removes screen shakes for players who get motion
 * sick. With the option on, the ScreenShake messages the server sends to that
 * player are dropped: the game's own (env_shake entities on maps) and those
 * of other plugins. Damage, sounds and everything else stay normal, and
Show all 357 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.