Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Disable Sniper Zoom

Featured Replies

  • Administrator

Removes or limits scope zoom for snipers, configurable per weapon, for modes that should not allow scoping.

Disable Sniper Zoom 1.0.0 (olds.ro)

Takes the scope away from sniper rifles, or allows only the first zoom step, chosen per rifle, for modes that should not allow scoping.

Requirements

  • AMX Mod X 1.10 or newer with the hamsandwich module (enabled by default)
  • ReAPI (ReGameDLL_CS)
  • Written for AMX Mod X 1.10.0.5490, ReAPI 5.29.0.358, ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814

Install

  • Compile scripting/olds_nozoom.sma with amxxpc 1.10 (with the ReAPI include files) and copy olds_nozoom.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_nozoom.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_nozoom.cfg to addons/amxmodx/configs/plugins/ (if you skip this, the plugin writes the same file with the defaults on its first start).
  • Add olds_nozoom.amxx to addons/amxmodx/configs/plugins.ini.

How it works

  • For each rifle turned on (AWP, Scout, SG 550, G3/SG-1) the zoom button (right mouse button) is limited: olds_nozoom_levels 0 no zoom at all olds_nozoom_levels 1 the first zoom step only; pressing again zooms out instead of going to the closer second step
  • Rifles turned off zoom as in the normal game.
  • A player who is still zoomed in when a press is refused, or who takes another weapon while zoomed in, gets the normal view (field of view 90) and normal speed back, so no zoom state stays stuck.
  • Settings work at once, without a map change.

Server command

  olds_nozoom_status   prints the settings and every living player's weapon
                       and field of view

Settings (addons/amxmodx/configs/plugins/olds_nozoom.cfg)

  olds_nozoom_awp     1   1 = AWP zoom limited, 0 = as in the game
  olds_nozoom_scout   0   the same for the Scout
  olds_nozoom_sg550   1   the same for the SG 550
  olds_nozoom_g3sg1   1   the same for the G3/SG-1
  olds_nozoom_levels  0   0 = no zoom, 1 = the first zoom step only

Texts are in data/lang/olds_nozoom.txt (English). No sounds, models or sprites are used.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1561. Licence: GNU GPL version 3 or later (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_nozoom.sma, test/olds_nozoom_test.sma

Idea: olds.ro workshop library · Plugin: alexit · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-1561).

Disable Sniper Zoom
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.3 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 193 lines
/*
 * Disable Sniper Zoom (olds.ro workshop card LIB-1561)
 *
 * Takes the scope away from sniper rifles, or allows only the first zoom
 * step, chosen per weapon, for modes that should not allow scoping.
 *
 * The zoom is the rifle's secondary attack (right mouse button). The plugin
Show all 193 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.