Raised This Month: $22 Target: $400
 5% 

[L4D/L4D2] Improved Multiple Equipment


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
MasterMind420
BANNED
Join Date: Nov 2010
Plugin ID:
5373
Plugin Version:
3.6
Plugin Category:
General Purpose
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 10-05-2016 , 10:56   [L4D/L4D2] Improved Multiple Equipment
    Reply With Quote #1

    [L4D/L4D2] IMPROVED MULTIPLE EQUIPMENT

    >>>>>NEW FEATURES<<<<<
    Auto Activate -
    Multiple Equipment now activates at round start, no need to pick anything up.
    AFK Save -
    Saves and loads equipment if you go afk automatically, option to enable/disable in config.
    Primary Weapon Workaround -
    All primary weapons now retain 1 bullet before the gun completely empties so u can switch.
    Splitscreen Player Support -
    Plugin now fully supports splitscreen players, except for Extra Equipment View(impractical to code in).
    Extra Equipment View -
    Switching to thirdperson shows your extra equipment on yourself, all other players extra items always show.

    >>>>>HOW TO<<<<<
    (Select mode 1 or 2 in the cfg)
    Mode 1 = Press 1,2,3,4,5 once to switch.
    Mode 2 = Press 1,2,3,4,5 twice to switch.
    Restore Item =
    Press 1,2,3,4,5 or shove.
    Switch Command = Bind sm_s0 to a key or type !s0 in chat.

    >>>>>CHANGELOG<<<<<
    ---VERSION 2.0---
    Added afk feature, now saves and loads equipment if you go afk.
    Added reactivate feature, on map change you can freely switch items without having to pick anything up.
    Added primary weapon workaround, all primary weapons now retain 1 bullet before the gun completely empties, so u can switch.
    No need for the drop fix for the M60 or Grenade Launcher it's built into Multiple Equipment.

    ---VERSION 2.1---
    Added new thirdperson !eview feature, this command is no longer necessary but still available.
    Weapon clipping issues have been resolved by this, basically if you go thirdpersonshoulder it automatically activates !eview showing you your extra equipment on your back, when you leave thirdpersonshoulder it reverts back to disabling the !eview command so you won't have weapon clipping issues. I have also added a precaution to player_spawn which disables it again, just in case.

    ---VERSION 2.2---
    Corrected the code for the auto !eview feature, there should be no more clipping issues in firstperson.
    Reworked item pickup code. Let me know if other players connect/disconnect, if on map change it breaks.

    ---VERSION 2.3---
    Cleaned up the script a bit.
    Added M60 reserve ammo workaround, just needs a reload animation when the clip empties. Eventually i'll get to it.
    Added a fix to the grenade launcher not reloading its last round.

    ---VERSION 2.4---
    Added afk feature, now saves and loads equipment if you go afk.
    Added reactivate feature, on map change you can freely switch items without having to pick anything up.
    Added primary weapon workaround, all primary weapons now retain 1 bullet before the gun completely empties, so u can switch.
    Added new thirdperson !eview auto feature, this command has been deactivated, when you switch to thirdpersonshoulder it will activate !eview.

    ---VERSION 2.5---
    Reworked activation into OnClientPostAdminCheck timer.
    Reworked player_bot_replace and bot_player_replace to correct detaching item entities causing item clipping as well as fixing afk saving of equipment.
    Removed code causing loose indentation warning on compile, it's no longer necessary.

    ---VERSION 2.6---
    Added splitscreen player support.
    Removed showing extra equipment on splitscreen players to fix item clipping issues.
    Added cvar l4d_me_afksave, saving while afk is now optional(because of possible exploit).
    Added cvar l4d_me_view, showing extra equipment is now optional(because of clipping issues).
    Reworked activation and auto thirdpersonshoulder extra equipment showing into OnGameFrame.
    Added player_disconnect event pre hook to remove all items from fully disconnected players.
    Added clipping fix to item_pickup so it will trigger everytime an item is picked up.
    Added timer to bot_player_replace to correct clipping issues when coming back from afk.
    Some unnecessary code has also been removed.

    ---VERSION 2.7---
    Added cvar l4d_me_custom_notify, you can now setup a chat/hint welcome message for your server.
    Added cvar l4d_me_custom_notify_msg, change this to the message you would like to be displayed.
    Reworked activation into player_spawn, initially I had issues but worked them out.
    Modified afk saving slightly, as well as player_spawn to add RemoveItemAttach after equipment loads.
    This seems to have resolved the spawn clipping issue where it looks like you have an extra weapon.

    ---VERSION 2.8---
    Moved auto activation and thirdpersonshoulder check back to OnClientPostAdminCheck.
    Added Clipping Fix to Activate, item_pickup, player_bot_replace, bot_player_replace.
    Added bot checks to stop timers being started that aren't necessary for bots.
    Removed Mode Select Menu, Mode 2, as well as all unnecessary code involving prior activation methods.
    AttachAllEquipment only happens in thirdpersonshoulder view now.
    Removed Show Message and Mode Select convars from the config.

    ---VERSION 2.9---
    Added l4d_me_mode cvar into the config, Single Tap and Double Tap are now selectable again in the config.
    Both modes work flawlessly now, no random slot switching when you switch and the scroll wheel is also fixed.
    The item in the slot will remain that item until you single tap it or double tap it depending on the mode you select.

    ---VERSION 3.0---
    Changed custom server message delivery to a more effective method, also added a client check.
    Added a workaround for the afk thirpersonshoulder clipping bug, no more clipping issues after leaving afk, if entering afk thirdpersonshoulder.
    Modified all the clipping fix methods i was using to only remove the view, not the attachments, removing the attachments broke the viewing system.

    ---VERSION 3.1---
    Fixed all secondary equipment loss after all players die(Mission Lost).
    Fixed settransmit Extra Equipment View/Thirdperson Viewing thanks to Ludastars help.

    ---VERSION 3.2---
    Fixed bug causing extra equipment positions being offset after map change.
    Fixed bug causing extra equipment positions being offset after leaving afk.
    Fixed bug where adrenaline would show incorrectly in the secondary slot.
    Fixed bug where defibrillator would show incorrectly in the secondary slot.
    Modified alot more code...optimizations and other minor fixes.

    ---VERSION 3.3---
    Fixed issue where changing your character using a plugin would offset all extra equipment.
    Also optimized CreateItemAttach to use Case instead of If statements, thanks to Ludastar.


    ---VERSION 3.4---
    Drastically cut the performance impact of the character switch view fix in half.
    Bot clipping issues in splitscreen have been resolved, requires a map reload/restart first.
    Fixed an issue when restarting a game or changing mission would save equipment from last game.


    ---VERSION 3.5---
    Added and made optional(off by default) in the config a simple player connect message.

    ---VERSION 3.6---
    Added ThirdpersonShoulderDetect Plugin Support.
    Cleaned up some code.
    This is my finale release of this plugin.

    ---VERSION 3.6 FINAL---
    Replaced old garbage ammo lock code with a much better method. This new method allows u to shoot all ammo from the gun before locking it.

    AS ALWAYS DELETE YOUR CONFIGS IF THEY'VE CHANGED AFTER AN UPDATE AND REPORT ANY BUGS.

    CREDIT = MasterMind420 / Ludastar / Pan Xiaohai / Marcus101RR
    ORIGINAL THREAD = https://forums.alliedmods.net/showthread.php?t=166580

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


    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 09:17.


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