What does it do?
while a player is holding a gun that has a laser sight, it will remove the crosshairs and leave you with the red dot. It automatically re-enables and re-disables the laser sight as the player switches from their primary weapons to others.
Please make sure your sdkhooks is update:
http://forums.alliedmods.net/showthread.php?t=106748
This is my first true plugin, made in response to
http://forums.alliedmods.net/showthread.php?t=109979 . Currently everything seems to be working, but i wouldn't be surprised if bugs pop up, especially in versus.
TODO
- Check for survivor release.
- remove sdkhooks dependency
- client command to leave crosshairs on.
known compatibility issues
Currently i have a few ideas for removing the sdkhooks necessity, but any suggestions would be appreciated
ChangeLog
Code:
1.0.0
* initial release
1.0.5
* hooked upgrade_add to detect manually giving a laser sight
1.1.0
* fixed some sdkhook crashes
* no more per-client variables, but per-weapon variable, seems to work perfectly.
* fixes the problem of dropping weapons with lasers and picking up ones that don't.
1.1.6
*this version had addressed the map change situation, but updates seem to have broken that.
*seems to work on most recent update, so i'm going ahead and releasing it
1.2
*fixed some weapon detections
*added exception for awp
*added upgrade_remove hook