Raised This Month: $32 Target: $400
 8% 

CS Variable-Zoom Scopes


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Emp` (115)
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 12-25-2007 , 17:32   CS Variable-Zoom Scopes
Reply With Quote #1

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)
.
Attached Files
File Type: sma Get Plugin or Get Source (cs_zoomscopes.sma - 2825 views - 9.0 KB)
File Type: sma Get Plugin or Get Source (cs_zoomscopes_H.sma - 2630 views - 9.0 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 05-11-2009 at 22:10.
Vet is offline
Send a message via MSN to Vet
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 12-25-2007 , 23:12   Re: CS variable zoom scopes
Reply With Quote #2

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.
__________________
M249-M4A1 is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 12-26-2007 , 00:00   Re: CS variable zoom scopes
Reply With Quote #3

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.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 12-26-2007 , 21:48   Re: CS variable zoom scopes
Reply With Quote #4

Oh, and there's also this :/

http://forums.alliedmods.net/showthread.php?t=15504
__________________
M249-M4A1 is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 12-26-2007 , 23:30   Re: CS variable zoom scopes
Reply With Quote #5

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.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 12-27-2007 , 00:51   Re: CS variable zoom scopes
Reply With Quote #6

Ah, missed that part
__________________
M249-M4A1 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 01-04-2008 , 06:16   Re: CS variable zoom scopes
Reply With Quote #7

i like it gj
grimvh2 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 01-06-2008 , 13:57   Re: CS variable zoom scopes
Reply With Quote #8

maybe an idea for you
how clooser you zoom in how more the weapon will shake
__________________
I am out of order!
grimvh2 is offline
Redshift187
Junior Member
Join Date: Mar 2008
Old 05-25-2008 , 22:47   Re: CS variable zoom scopes
Reply With Quote #9

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.
Redshift187 is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 05-26-2008 , 19:52   Re: CS variable zoom scopes
Reply With Quote #10

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.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:16.


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