Raised This Month: $ Target: $400
 0% 

[L4D2] AutoGrabLaserSight


Post New Thread Reply   
 
Thread Tools Display Modes
Author
WolfGang
BANNED
Join Date: Oct 2010
Plugin ID:
2596
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Laser Sight on weapon pickup
    Old 10-03-2011 , 17:08   [L4D2] AutoGrabLaserSight
    Reply With Quote #1

    This plugin is capable with coop and versus.

    Description: When a player picks up a weapon, they automatically pick-up Laser-Sights with the gun.

    Requires SDK Hooks!
    http://forums.alliedmods.net/showthread.php?t=106748

    Equip - Add LaserSight
    Dropped - Remove LaserSight/Gun

    Changelog:
    Version 1.0 - Release
    Version 1.1 - Fixed Exploit

    Other Info - Credit, Thanks to Mr.Zero
    Attached Files
    File Type: zip GrabLaserSight.zip (1.15 MB, 5982 views)

    Last edited by WolfGang; 11-03-2011 at 17:17. Reason: Updated to Version 1.1
    WolfGang is offline
    Chronic1
    SourceMod Donor
    Join Date: Jun 2011
    Old 10-07-2011 , 18:14   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #2

    Can you add something that deletes the dropped weapon? Some jerk found an exploit where if you keep picking up weapons from the safe room, it drops a ton of guns on the ground and lags the server.
    __________________
    Chronic1 is offline
    WolfGang
    BANNED
    Join Date: Oct 2010
    Old 10-07-2011 , 20:32   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #3

    I'll fix that maybe in the future.
    WolfGang is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 10-07-2011 , 20:42   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #4

    try this one chronic http://forums.alliedmods.net/showthread.php?p=1118956
    adrianman is offline
    Chronic1
    SourceMod Donor
    Join Date: Jun 2011
    Old 10-07-2011 , 21:59   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #5

    didnt work that only blocks pistols
    __________________
    Chronic1 is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 10-07-2011 , 22:07   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #6

    To fix that exploit all you need to do is hook "player_use" event and get the vector length of the player and the "weapon_n_spawn" spawn position. where n is the gun name. Make sure it's less than or equal to 128.0(or whatever the use range is) then delete the weapon they currently have in their 0 slot.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Mr. Zero
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 10-07-2011 , 23:26   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #7

    I hope WolfGang doesn't mind this, however I updated his version to fix said bug as described by Chronic.

    You will need L4DStocks and SDKHooks if you want to compile a version yourself.

    On weapon equip, add laser.
    On weapon drop, remove laser.
    Added version cvar as per plugin approve requirements.
    Attached Files
    File Type: smx autolaser.smx (3.7 KB, 1166 views)
    File Type: sp Get Plugin or Get Source (autolaser.sp - 900 views - 2.8 KB)
    Mr. Zero is offline
    Chronic1
    SourceMod Donor
    Join Date: Jun 2011
    Old 10-08-2011 , 17:37   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #8

    Thanks a lot Mr. Zero!
    __________________
    Chronic1 is offline
    WolfGang
    BANNED
    Join Date: Oct 2010
    Old 10-09-2011 , 21:34   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #9

    New Version 1.1 uploaded: Found & Fixed an Exploit that allow player to spam the gun. LaserSights is removed when gun is dropped
    WolfGang is offline
    carlos moschen
    Member
    Join Date: Jan 2011
    Old 10-10-2011 , 18:27   Re: [L4D2] AutoGrabLaserSight
    Reply With Quote #10

    friend, perfect plugin, no errors! perfect, congratulations! very good indeed!
    carlos moschen is offline
    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 08:43.


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