[L4D2] laser sight crosshair removal updated: 06/29
2 Attachment(s)
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
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 |
Re: [L4D2] laser sight crosshair removal
I didnt't test it, but there will be a crosshair if you pick up a weapon with laser sights.
Somehow we need to remember which weapon already got the lasersights. With the command "GetPlayerWeaponSlot(client, 1);" we can log the entitynumber of the weapon and save it into an array. If then the user picks up a weapon, the event "weapon_pickup" will be fired, that contains the entitynumber so we can compare them. |
Re: [L4D2] laser sight crosshair removal
Ah, thats what triggers the weapon pickup, i was originally trying to use that for the picking-up of new weapons, but realized that wasn't triggering. As for the remembering what weapons have lasers, that will probably be the second thing i do after removing the need for sdkhooks, and any major bugs that come up.
|
Re: [L4D2] laser sight crosshair removal
I put this on my server, But its not working :cry:
|
Re: [L4D2] laser sight crosshair removal
Quote:
|
Re: [L4D2] laser sight crosshair removal
Quote:
oh and a suggestion lets say if they pick up laser sight theres a cmd to it cl_crosshair_alpha if there was a way if they pick up laser sight the cvar would change to cl_crosshair_alpha 255 |
Re: [L4D2] laser sight crosshair removal
this laser sight crosshair removal not work when you use this command
upgrade_add LASER_SIGHT can you fix this? |
Re: [L4D2] laser sight crosshair removal
Quote:
that you didn't install SDKhooks and its working like it should ? |
Re: [L4D2] laser sight crosshair removal
Quote:
And i just checked..sdkhooks doesn't come with sourcemod. sdktools does. Quote:
edit: updating to 1.0.5 which hooks the upgrade_add command for the laser sight |
Re: [L4D2] laser sight crosshair removal
I tried again, doesn't work. I have the hooks
I am using this plugin to spawn the laser sight http://forums.alliedmods.net/showthread.php?p=993960 EDIT: I got it working when I pick it up in a real spawn location, but it also removes the crosshair on the Magnum, which makes it very difficult to aim. |
All times are GMT -4. The time now is 14:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.