AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Sniper Crosshairs (https://forums.alliedmods.net/showthread.php?t=188976)

MPNumB 07-02-2012 10:29

Sniper Crosshairs
 
2 Attachment(s)
Description:
Gives CS-Style non-zoom crosshairs to sniper rifles (not the small yellow one - the real crosshairs as in galil, ak47, sg552). See the "awp" screenshot for awp example.


Requires:
FakeMeta
HamSandWich


Cvars:

* "amx_sniper_crosshairs" - what weapons have crosshairs (just add the numbers).
- "1" - awp
- "2" - scout
- "4" - g3sg1
- "8" - sg550


Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.2 (dev build hg21).


Notes:
Such a plugin already was made by ConnorMcLeod and is called Real Snipers Crosshairs. However there have been bug reports. Thanks to some research I found a bug-free method, and decided to make it publicly available. After some talk with Arkshine, we decided the best thing to do is post the plugin here of course.


Warnings:
Only known issue is if you have awp currently out and you happen to have galil in your inventory at the same time. In that case the galil green-bullet-bar (in your inventory) will be showing the same bullet-percentage-filled as awp. See the "glitch_awp_out" & "glitch_galil_out" screenshots to understand better.


Credits:
Special thanks to Arkshine for help in WeaponList related things. Also I'd like to thank ConnorMcLeod for his Real Snipers Crosshairs plugin, which allowed me to understand the basic method of how to add a crosshair to the weapon.


Change-Log:

* 1.3
- Fixed: Error "invalid player index".

* 1.2
- Fixed: Hud glitches while having 'opposed' weapons.
- Changed: Official release.

* 1.1
- Fixed: Glitch with hud when having sniper and its 'opposed' weapon.
- Fixed: Glitch when having m249 and awp, m249 bullet type isn't shown when buying them.
- Changed: 'Opposed' for awp is now galil - not m249.

* 1.0
- First release.

akomismo 08-15-2012 19:24

Re: Sniper Crosshairs
 
is this for admin only?

akomismo 08-15-2012 19:25

Re: Sniper Crosshairs
 
can u make this for admin only thanks :)

kramesa 08-15-2012 20:13

Re: Sniper Crosshairs
 
Never use this with easyanticheat on.

MPNumB 08-16-2012 09:07

Re: Sniper Crosshairs
 
Quote:

Originally Posted by akomismo (Post 1772479)
is this for admin only?

No.

Quote:

Originally Posted by akomismo (Post 1772480)
can u make this for admin only thanks :)

Admins aren't gods, so no.

Quote:

Originally Posted by kramesa (Post 1772496)
Never use this with easyanticheat on.

This is only visual HUD thing (bullets don't go any more accurate) - clients shouldn't get banned.

xakintosh 08-16-2012 09:20

Re: Sniper Crosshairs
 
Well Done Master.
The power is with you aways http://ic3.deviantart.com/images2/i/.../Jedi_Emoticon

kramesa 08-16-2012 11:27

Re: Sniper Crosshairs
 
Quote:

Originally Posted by MPNumB (Post 1772879)
No.


Admins aren't gods, so no.


This is only visual HUD thing (bullets don't go any more accurate) - clients shouldn't get banned.

http://easyanticheat.userboard.net/t...about-eac-bans


Quote:

Q: Can I modify the model of the AWP sniper weapon and attach a crosshair to it while unscoped?
-A: No. Such crosshair will give you an advantage in aiming without scope, thus it is not allowed. (Why else would you want to apply a crosshair to it?)
But nice plugin.

MPNumB 08-16-2012 19:14

Re: Sniper Crosshairs
 
Quote:

Originally Posted by kramesa (Post 1772984)
http://easyanticheat.userboard.net/t...about-eac-bans

Quote:

Q: Can I modify the model of the AWP sniper weapon and attach a crosshair to it while unscoped?
-A: No. Such crosshair will give you an advantage in aiming without scope, thus it is not allowed. (Why else would you want to apply a crosshair to it?)
But nice plugin.

Well, it's the server who is changing the information sent to the client. Therefor client isn't using any custom files, which means that anti-cheat will not ban the client due to use of custom illegal things. It can ban however if the anti-cheat makes a screenshots, and sees the crosshair itself in the image. Without that I cannot figure out any other reason why you and how you could get banned by using this plugin.

kiki33hun 08-18-2012 03:23

Re: Sniper Crosshairs
 
Nice plugin!

kramesa 08-25-2012 11:06

Re: Sniper Crosshairs
 
Quote:

Originally Posted by MPNumB (Post 1773397)
Well, it's the server who is changing the information sent to the client. Therefor client isn't using any custom files, which means that anti-cheat will not ban the client due to use of custom illegal things. It can ban however if the anti-cheat makes a screenshots, and sees the crosshair itself in the image. Without that I cannot figure out any other reason why you and how you could get banned by using this plugin.

Ok man, sorry :3


All times are GMT -4. The time now is 15:03.

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