This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[L4D/L4D2] Weapon Fire Modes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
MasterMind420
BANNED
Join Date: Nov 2010
Plugin ID:
6994
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Delete This Thread
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 03-21-2020 , 11:52   [L4D/L4D2] Weapon Fire Modes
    Reply With Quote #1

    This plugin enables certain automatic weapons to set their fire mode (Single/Burst/Auto)
    Pistol and magnum fire modes are also included (Single/Burst/Semi-Auto/Auto)

    Desert Rifle is not allowed because of the way it burst fires already.
    This plugin is a work in progress and any feedback or suggestions are appreciated.

    Thanks to Lux & Silvers for coding advice.
    Thanks to TimoCop for his Automatic Pistols plugin which gave me a baseline to work with.

    PRESS ZOOM KEY TO CHANGE FIRE MODE

    Compatibility - Fire modes are saved to the weapon entity, so if you use multiple equipment which uses multiple guns switching them will cause the
    fire modes to reset, because every time you switch it becomes a new entity, eventually i will come up with a fix for this.

    Automatic Pistols by TimoCop may interfere with this plugins fire modes, if it does let me know and i'll add options to disable fire modes on
    Pistols/Magnums in this plugin. Eventually I will add options per gun to enable disable specific guns using fire modes.

    Code:
    [ v1.0 ]
    Initial Release
    
    [ v1.1 ]
    Fixed - Mode switch PrintToChat on unsupported weapons
    
    Changed - Weapon checks have been moved around and optimized somewhat.
    		  Moved function code from PostThink to OnPlayerRunCmd
    		  Renamed plugin file to l4d_weapon_fire_modes(delete v1.0 from your plugins directory)
    
    Features - Added L4D1 support
    	       Added late load support
    
    [ v1.2 ]
    Fixed - Burst fire for pistols is now as intended
    		Burst fire bug when 1 bullet in clip and then reloading
    
    Changed - Reworked most of the function code to optimize and correct the way it was intended to function
    		  You must now release the fire button before the gun continues to fire in single and burst mode
    		  Optimized some of the code thanks to Silvers suggestions
    
    Features - Added Semi Auto mode for pistols
    		   Added Burst mode bullet count option (Dragokas)
    		   Added l4d_weapon_fire_modes.cfg
    
    [ v1.3 ]
    Fixed - Switching multiple guns in a slot breaks changing fire modes

    Last edited by DarkDeviL; 10-18-2021 at 09:02. Reason: Restore to previous version.
    MasterMind420 is offline
     



    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 11:59.


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