Raised This Month: $51 Target: $400
 12% 

[L4D2] Melee Spawn Control


Post New Thread Reply   
 
Thread Tools Display Modes
Author
iaNanaNana
Member
Join Date: Sep 2020
Location: Two-dimensional
Plugin ID:
7305
Plugin Version:
1.3
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unlock melee weapons
    Old 09-29-2020 , 08:52   [L4D2] Melee Spawn Control
    Reply With Quote #1

    Simply unlock melee weapons only, you can add melee weapons to map basis melee spawn in every map now.

    Cvar:
    PHP Code:
    l4d2_melee_spawn "" // Melee weapon list for unlock, use ',' to separate between names, e.g: pitchfork,shovel. Empty for no change
    l4d2_add_melee "" // Add melee weapons to map basis melee spawn or l4d2_melee_spawn, use ',' to separate between names. Empty for don't add 
    Required Extension : DHooks (Dynamic Hooks)

    Change:
    Code:
    1.3
    	- Fixed the meleeweapons list if some 3rd party map mission do not declare the "meleeweapons".
    	- Save the initial meleeweapons list. After changing the new mission, the "meleeweapons" will be restored and redeclared.
    
    1.2
    	- Fixed didn't take effect in time if added Cvars to server.cfg. Thanks to "Target_7" for reporting.
    
    1.1
    	- Fixed broken windows signatures.
    	- Not forces map to reload any more.
    	- Thanks to "Silvers" for reporting and help.
    
    1.0
    	- Initial release
    Attached Files
    File Type: zip l4d2_melee_spawn_control.zip (9.8 KB, 550 views)

    Last edited by iaNanaNana; 10-12-2020 at 18:45. Reason: Fixed windows signatures.
    iaNanaNana is offline
    Shao
    Senior Member
    Join Date: Jan 2015
    Old 09-29-2020 , 13:35   Re: [L4D2] Melee Spawn Control
    Reply With Quote #2

    I'd recommend adding on a per map basis, because Info Editor already does this but with all the features you can think of.
    Shao is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-29-2020 , 16:53   Re: [L4D2] Melee Spawn Control
    Reply With Quote #3

    - Old and new syntax mixed.
    - Missing and broken windows signatures.
    - Forces map to reload, not required since Last Stand Update.
    - Info Editor already does this and more, basically a dupe plugin.
    - Hard coding string lengths, use sizeof() instead:
    PHP Code:
    ExplodeString(s","sOriginal3240) -> ExplodeString(s","sOriginalsizeof(sOriginal), sizeof(sOriginal[])) 
    __________________
    Silvers is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 09-30-2020 , 05:41   Re: [L4D2] Melee Spawn Control
    Reply With Quote #4

    you can use
    PHP Code:
    #pragma newdecls required 
    Enforce the new syntax.
    __________________

    Last edited by HarryPotter; 09-30-2020 at 05:42.
    HarryPotter is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 10-12-2020 , 09:03   Re: [L4D2] Melee Spawn Control
    Reply With Quote #5

    Getting this error
    L 10/12/2020 - 09:01:43: Error log file session closed.
    L 10/12/2020 - 09:02:03: SourceMod error session started
    L 10/12/2020 - 09:02:03: Info (map "c1m1_hotel") (file "d:\l4d2\servers\1\serverfiles\left4dead2\add ons\sourcemod\logs\errors_20201012.log")
    L 10/12/2020 - 09:02:03: [l4d2_melee_spawn_control.smx] KeyValues::GetString sig invalid.
    L 10/12/2020 - 09:02:03: [l4d2_melee_spawn_control.smx] KeyValues::SetString sig invalid.
    L 10/12/2020 - 09:02:07: [SM] Exception reported: Invalid Handle 0 (error 4)
    L 10/12/2020 - 09:02:07: [SM] Blaming: l4d2_melee_spawn_control.smx
    L 10/12/2020 - 09:02:07: [SM] Call stack trace:
    L 10/12/2020 - 09:02:07: [SM] [0] SDKCall
    L 10/12/2020 - 09:02:07: [SM] [1] Line 72, .\scripting\l4d2_melee_spawn_control.sp:H_O nGetMissionInfo
    L 10/12/2020 - 09:02:07: [SM] Exception reported: Invalid Handle 0 (error 4)
    L 10/12/2020 - 09:02:07: [SM] Blaming: l4d2_melee_spawn_control.smx
    L 10/12/2020 - 09:02:07: [SM] Call stack trace:
    Krufftys Killers is offline
    Slaven555
    Member
    Join Date: Jul 2018
    Old 10-12-2020 , 12:55   Re: [L4D2] Melee Spawn Control
    Reply With Quote #6

    Quote:
    Originally Posted by Krufftys Killers View Post
    Getting this error
    L 10/12/2020 - 09:01:43: Error log file session closed.
    L 10/12/2020 - 09:02:03: SourceMod error session started
    L 10/12/2020 - 09:02:03: Info (map "c1m1_hotel") (file "d:\l4d2\servers\1\serverfiles\left4dead2\add ons\sourcemod\logs\errors_20201012.log")
    L 10/12/2020 - 09:02:03: [l4d2_melee_spawn_control.smx] KeyValues::GetString sig invalid.
    L 10/12/2020 - 09:02:03: [l4d2_melee_spawn_control.smx] KeyValues::SetString sig invalid.
    L 10/12/2020 - 09:02:07: [SM] Exception reported: Invalid Handle 0 (error 4)
    L 10/12/2020 - 09:02:07: [SM] Blaming: l4d2_melee_spawn_control.smx
    L 10/12/2020 - 09:02:07: [SM] Call stack trace:
    L 10/12/2020 - 09:02:07: [SM] [0] SDKCall
    L 10/12/2020 - 09:02:07: [SM] [1] Line 72, .\scripting\l4d2_melee_spawn_control.sp:H_O nGetMissionInfo
    L 10/12/2020 - 09:02:07: [SM] Exception reported: Invalid Handle 0 (error 4)
    L 10/12/2020 - 09:02:07: [SM] Blaming: l4d2_melee_spawn_control.smx
    L 10/12/2020 - 09:02:07: [SM] Call stack trace:
    try it
    Attached Files
    File Type: txt l4d2_melee_spawn_control.txt (1.8 KB, 145 views)
    Slaven555 is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 10-12-2020 , 13:22   Re: [L4D2] Melee Spawn Control
    Reply With Quote #7

    tried got this now
    L 10/12/2020 - 13:21:43: SourceMod error session started
    L 10/12/2020 - 13:21:43: Info (map "c1m1_hotel") (file "d:\l4d2\servers\1\serverfiles\left4dead2\add ons\sourcemod\logs\errors_20201012.log")
    L 10/12/2020 - 13:21:43: [l4d2_melee_spawn_control.smx] KeyValues::FindKey sig invalid.
    Krufftys Killers is offline
    Slaven555
    Member
    Join Date: Jul 2018
    Old 10-12-2020 , 14:40   Re: [L4D2] Melee Spawn Control
    Reply With Quote #8

    Quote:
    Originally Posted by Krufftys Killers View Post
    tried got this now
    L 10/12/2020 - 13:21:43: SourceMod error session started
    L 10/12/2020 - 13:21:43: Info (map "c1m1_hotel") (file "d:\l4d2\servers\1\serverfiles\left4dead2\add ons\sourcemod\logs\errors_20201012.log")
    L 10/12/2020 - 13:21:43: [l4d2_melee_spawn_control.smx] KeyValues::FindKey sig invalid.
    What version of sm and dhooks.
    Slaven555 is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 10-12-2020 , 14:45   Re: [L4D2] Melee Spawn Control
    Reply With Quote #9

    Quote:
    Originally Posted by Slaven555 View Post
    What version of sm and dhooks.
    DHooks (2.2.0-detours14a): Dynamic Hooks

    SM version 1.10 - build 6497:
    Krufftys Killers is offline
    Slaven555
    Member
    Join Date: Jul 2018
    Old 10-12-2020 , 15:00   Re: [L4D2] Melee Spawn Control
    Reply With Quote #10

    Quote:
    Originally Posted by Krufftys Killers View Post
    DHooks (2.2.0-detours14a): Dynamic Hooks

    SM version 1.10 - build 6497:
    this is from my server
    Attached Files
    File Type: 7z l4d2_melee_spawn_control_1.2.7z (6.7 KB, 265 views)
    Slaven555 is offline
    Reply



    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 12:15.


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