Raised This Month: $27 Target: $400
 6% 

Custom Sniper Scopes


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related       
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 07-30-2012 , 11:35   Custom Sniper Scopes
Reply With Quote #1

Description:
This plugin changes sniper scopes to custom ones. Client still has the ability to disable custom scopes by typing "/scope" in chat. That command will open a menu which allows client to choose what sniper rifles will have custom scopes and which ones wont. Server admins can change scopes by modifying configurations file.


Requires:
FakeMeta
HamSandWich


Cvars:

* "sniper_scopes_custom_ini" - "" set up what custom .ini file to read.


Installation:
* Put sprite files into "sprites/" folder.
* Put "main.ini" into "addons/amxmodx/configs/sniper_scopes/" dir.
* Put "custom_sniper_scopes.amxx" into "addons/amxmodx/plugins/" dir.
* Write "custom_sniper_scopes.amxx" on last line in "addons/amxmodx/configs/plugins.ini".
* Change the map.


Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.2 (dev build hg21). To use custom .ini file just copy "addons/amxmodx/configs/sniper_scopes/main.ini" to lets say "addons/amxmodx/configs/sniper_scopes/test.ini", configure "test.ini" to what you want, set "sniper_scopes_custom_ini" cvar to "test" and change the map. Cvar change also works at "public plugin_precache()", but plugin what executes this should be put before "custom_sniper_scopes.amxx" in "addons/amxmodx/configs/plugins.ini".


Notes:
Config changes take effect only at mapchange. And in order for sprites not to repeat, plugin will copy them to a different name what shall be unique only to your server ip. However don't remove your non-copied ones. Read description in config file for more information on how to set up your custom scopes.


Warnings:
Pausing and/or unpausing this plugin within an event (from message_begin() to message_end()) may result in an error and possible crash.


Images:
AWP
SCOUT
G3SG1
SG550

Credits:
Special thanks to Arkshine for help in WeaponList related things.


Change-Log:

* 1.5
- Changed: Advertisement can be printed only once per round.

* 1.4
- Added: Support for custom config.
- Changed: Location and name of .ini file.

* 1.3
- Changed: Minor improvements.

* 1.2
- Added: Client settings are auto-saved.
- Added: SG552 and AUG support.
- Changed: Cvars are replaced by .ini file.

* 1.1
- Changed: Advertisement isn't that often.
- Changed: Advertisement is higher up the screen.

* 1.0
- First release.
Attached Files
File Type: zip sprites.zip (2.6 KB, 1606 views)
File Type: ini main.ini (1.4 KB, 1216 views)
File Type: sma Get Plugin or Get Source (custom_sniper_scopes.sma - 2568 views - 37.4 KB)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 01-24-2018 at 20:24.
MPNumB is offline
Send a message via Skype™ to MPNumB
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-30-2012 , 12:19   Re: Custom Sniper Scopes
Reply With Quote #2

Amazing job !
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 07-30-2012 , 20:46   Re: Custom Sniper Scopes
Reply With Quote #3

That guy is a machine. Nothing will hold him back
Good idea, this will be great for fun mods.
__________________
n0br41ner is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-30-2012 , 22:28   Re: Custom Sniper Scopes
Reply With Quote #4

Looks nice.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 07-30-2012 , 23:10   Re: Custom Sniper Scopes
Reply With Quote #5

Yep, I tried hard to make it as more advance and as more readable as possible. At the expense of minor CPU usage of course (the readability part).

P.S. Glad you guys like it.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 07-30-2012 at 23:11.
MPNumB is offline
Send a message via Skype™ to MPNumB
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-31-2012 , 00:42   Re: Custom Sniper Scopes
Reply With Quote #6

Great job NumB.
dark_style is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 07-31-2012 , 11:41   Re: Custom Sniper Scopes
Reply With Quote #7

I wonder, should I include support for SG552 and AUG? What you think guys? Here's how it would look. (Yea, it wont be 31 bullets - I just didn't remove my "extra bullet in chamber" plugin from plugins.ini - just focus on the scope).
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 07-31-2012 at 11:42.
MPNumB is offline
Send a message via Skype™ to MPNumB
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-31-2012 , 11:56   Re: Custom Sniper Scopes
Reply With Quote #8

I think it would be cool.

Last edited by dark_style; 07-31-2012 at 11:57.
dark_style is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 07-31-2012 , 14:25   Re: Custom Sniper Scopes
Reply With Quote #9

Hmm... After closer inspection I myself don't like how it looks. But if anyone wants AUG/SG552 scopes, just put this files in your client sprites folder
Attached Files
File Type: txt weapon_aug.txt (442 Bytes, 601 views)
File Type: txt weapon_sg552.txt (361 Bytes, 617 views)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-31-2012 , 15:59   Re: Custom Sniper Scopes
Reply With Quote #10

Really like the idea , i repeat , awesome work MPNumB.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 01:37.


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