AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CS Variable-Zoom Scopes (https://forums.alliedmods.net/showthread.php?t=64834)

Vet 12-25-2007 17:32

CS Variable-Zoom Scopes
 
4 Attachment(s)
CS Zoomscopes fo Counter-Strike 1.6
(updated 6-3-08)

This plugin will allow CS 2-stage weapon scopes to employ a variable zoom.

To use the zoom scope, you must bind one key to +zoomin, and another key to +zoomout. To make it easier, I built in a routine so that players can simply enter a command in-console and the plugin will bind keys for the player. There is also a display while scoped to inform the player of the approximate zoom magnification and the available zoom commands.

The scope can be zoomed to different values in both of the 2 scope modes, and will remain at the last used setting, unless you change to a non-scoped primary weapon of another type.

There are 2 levels of zoomable scopes built in. The standard level will zoom from the weapon's natural limitations. The advanced type will zoom all scopes out a little further and allow non-AWP weapons to zoom in to the AWP's level.

I only had the ability to test this plugin on a single-player server and I don't really play CS anymore, but it all ran fine under the situations I tested. But I'm sure there's a scenerio I was unable to test. So if you find a glitch, let me know.

Commands:
+zoomin - Causes the scope to zoom in
+zoomout - Causes the scope to zoom out
zoombindpg - Binds the keys PageUp to +zoomin and PageDown key to +zoomout
zoombindmw - Binds the mousewheel to zoom in and out

CVars:
zoomscopes_enable <0|1> Disables|Enables the plugin (default 1)
zoomscopes_info_enable <0|1> Disables|Enables the zoom display (default 1)
zoomscopes_advanced_enable <0|1> Disables|Enables the advanced scope levels (default 1)

Note:
There are 2 versions offered...
V1.2 (cs_zoomscopes.sma) is for those who use Amxmodx prior to v1.8.
V1.2H (cs_zoomscopes_H.sma) utilizes features in the Hamsandwich module.

Versions:
NOTE: Recommend placing this plugin ahead of others plugins that create
HUD messages upon death (ie: csstats)
1.2H Replaced DeathMsg and Damage (bomb) event routines
- with HamSandwich 'Killed' detection
- Requires Amxmodx 1.8+ and Hamsandwich module
1.2 Replaced target distance with zoom commands
- Fixed zooming if killed while zoomed
- Fixed zooming if killed by bomb
- Uses a dedicated channel for HUD message
1.11 - Fixed display appearing when dead

1.1 Original release

(updated 6-3-08)
.

M249-M4A1 12-25-2007 23:12

Re: CS variable zoom scopes
 
Interesting. Why don't you merge the DOD and CS versions into one? Then check for the mod on the server and do the appropriate actions.

Vet 12-26-2007 00:00

Re: CS variable zoom scopes
 
I really only play DOD. So after I wrote the DOD one, I thought I'd try it out on CS just for kicks to see if it would work. But after changing this and that, I soon discovered that I altered nearly every routine to get it to work. So I just figured it'd be more clear and efficient as a separate plugin.

M249-M4A1 12-26-2007 21:48

Re: CS variable zoom scopes
 
Oh, and there's also this :/

http://forums.alliedmods.net/showthread.php?t=15504

Vet 12-26-2007 23:30

Re: CS variable zoom scopes
 
Those are fixed zooms. Not the same. This plugin lets you have variable magnification zooms. Ones where you can increment/decrement the zoom values while you're scoped.

M249-M4A1 12-27-2007 00:51

Re: CS variable zoom scopes
 
Ah, missed that part

grimvh2 01-04-2008 06:16

Re: CS variable zoom scopes
 
i like it gj

grimvh2 01-06-2008 13:57

Re: CS variable zoom scopes
 
maybe an idea for you
how clooser you zoom in how more the weapon will shake

Redshift187 05-25-2008 22:47

Re: CS variable zoom scopes
 
I found this lags me a lot when I'm zoomed. My normal ping is 15ish (I'm local to the server), but it jumps to over 200 when I'm zoomed.

Vet 05-26-2008 19:52

Re: CS variable zoom scopes
 
I get lag on several plugins when running locally. But the lag goes away when running on a real server. Don't know why.

Anyway, try setting the zoomscopes_info_enable cvar to 0 and see if that helps.


All times are GMT -4. The time now is 14:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.