Raised This Month: $305 Target: $400
 76%   Almost there!

[l4d2] Save Weapon (Co-op)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
maks
Member
Join Date: Dec 2011
Location: Russia
Plugin ID:
4662
Plugin Version:
4.12
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Bug fix l4d2 coop
    Old 06-03-2015 , 14:18   [l4d2] Save Weapon (Co-op)
    Reply With Quote #1

    Fixed bug with saving weapons in l4d2 coop if more than 4 players

    Requirements:

    Left 4 Dead 2 coop 4+ players
    Metamod: Source/SourceMM (Latest Version)
    SourceMod: 1.10 - 1.11

    Update:
    20.03.2016 _ v3.7.6
    17.07.2016 _ v3.7.7
    01.01.2017 _ v3.7.8
    06.08.2017 _ v4.2
    19.02.2018 _ v4.3
    08.04.2020 _ v4.6
    03.10.2020 _ v4.7 (The Last Stand)
    08.10.2020 _ v4.9
    11.10.2020 _ v4.10
    9.01.2021 _ v4.12 (Fix Precache Model)

    github
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_ty_saveweapon_4.sp - 726 views - 18.3 KB)

    Last edited by maks; 01-09-2021 at 02:25.
    maks is offline
    Munch
    Senior Member
    Join Date: May 2012
    Location: Liverpool UK
    Old 06-03-2015 , 15:54   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #2

    Discription is a bit vague

    Does this plugin save your weapons between map rounds or campaign games.
    __________________
    Dead Men Fighting L4D2 8 Man Dead Men Fighting UK
    Munch is offline
    maks
    Member
    Join Date: Dec 2011
    Location: Russia
    Old 06-07-2015 , 09:54   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #3

    Caches are required for the server texture.
    Correctly saves the weapon when entering the asylum at the end of the round.
    maks is offline
    DeathChaos25
    Senior Member
    Join Date: Jan 2014
    Location: Puerto Rico
    Old 06-12-2015 , 21:13   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #4

    If I'm right and understood the source, it works like this.

    When players reach the saferoom, there is a glitch with 4+ players when transitioning their weapons to the next level.

    The players who are player 5 and on, will either have nothing, or will have whatever their "original" survivor had instead.

    Example, you have a 6 player game with 2 Nicks.

    Nick 1 is the original, and Nick 2 is the extra player.

    When the next chapter starts, Nick 2 loses all of his weapons and will either have nothing or whatever Nick 1 had instead.

    This plugin looks like it wants to remedy that.
    __________________
    DeathChaos25 is offline
    psycki
    Member
    Join Date: Aug 2013
    Location: brasil
    Old 06-25-2015 , 07:24   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #5

    one report in log
    Code:
    L 06/25/2015 - 07:37:36: [l4d2_ty_saveweapon_3.0.smx] m_ModelName(models/v_models/v_knife_t.mdl)
    L 06/25/2015 - 07:37:36: [l4d2_ty_saveweapon_3.0.smx] ___________
    __________________

    Last edited by psycki; 06-25-2015 at 07:25.
    psycki is offline
    maks
    Member
    Join Date: Dec 2011
    Location: Russia
    Old 06-27-2015 , 11:10   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #6

    Updated
    maks is offline
    Electr000999
    Senior Member
    Join Date: Aug 2011
    Location: Russia, Perm
    Old 08-22-2015 , 10:51   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #7

    why you clear health? and not restored to old values after map changed:
    Code:
    TyFakeCHEAT(client, "give", "health");
    SetEntProp(client, Prop_Send, "m_currentReviveCount", 0);
    SetEntProp(client, Prop_Send, "m_isGoingToDie", 0);
    SetEntProp(client, Prop_Send, "m_iHealth", 71);
    and why you don't save ammo count.

    i am put fixed source:
    • Added ammo saving
    • Fixed syntax errors with using transitional syntax.
    • Optimised melee saving. now without comparing the model name.
    • Included beta fix from Maks (Long connect fix)
    • Added saving health if player incaped and used plugin logic.

    edit1:
    • deleted set clip info after give default info, because after give command we have ammo by default.
    • I corrected the black hole in the logic ammo saving.
    edit2:
    • disabled event spawn hook.
    • now the data about the weapons stored in the one array, instead of the four variables.
    edit3:
    • now the data about the weapons classes stored in the one string array, instead of the four string variables.
    edit4:
    • this is stable version without lost weapons.
    • now spectators not lose their weapons
    • add forwards pre save / after load client weapons
    • changed 2nd detection melee code.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_ty_saveweapon.sp - 1337 views - 21.6 KB)

    Last edited by Electr000999; 09-06-2015 at 15:52.
    Electr000999 is offline
    Send a message via Skype™ to Electr000999
    maks
    Member
    Join Date: Dec 2011
    Location: Russia
    Old 09-05-2015 , 06:15   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #8

    Updated
    maks is offline
    bazrael
    Senior Member
    Join Date: Jan 2010
    Location: Where Lucy became superw
    Old 11-06-2015 , 06:19   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #9

    PHP Code:
    [SMListing 1 convars for: l4d2_ty_saveweapon
      
    [Name]                           [Value]
      
    l4d2_ty_noob                     1 
    What does this cvar do?

    -EDIT-
    Why Save Weapon plugin probably still happen a situation that can't save weapon? When does this happen?
    __________________
    Kill all the son of a bitches, that's my official instructions.
    L4Dε Modified Talker

    Last edited by bazrael; 11-06-2015 at 18:45. Reason: Reply
    bazrael is offline
    maks
    Member
    Join Date: Dec 2011
    Location: Russia
    Old 11-06-2015 , 10:28   Re: [l4d2] Save Weapon (Co-op)
    Reply With Quote #10

    l4d2_ty_noob 1 gives the player weapon smg_silenced
    maks 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 03:56.


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