Raised This Month: $32 Target: $400
 8% 

L4D2 Melee Weapons Mod 2.2.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Plugin ID:
1599
Plugin Version:
2.2.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    10 
    Plugin Description:
    add ammo system in melee Weapons and modify swing rate ,Melee weapon fatigue, change the gameplay of melee weapons
    Old 04-09-2010 , 09:48   L4D2 Melee Weapons Mod 2.2.1
    Reply With Quote #1

    L4D2 Melee Weapons Mod
    VIDEO:
    http://www.youtube.com/watch?v=22RMRGCHLZk
    http://www.youtube.com/watch?v=BVG3TMNlwYg

    Usage: This plugin make the melee weapons (except chainsaw) will breaks after a number of attacks (just like guns)
    In case , the melee weapons drop on the ground, the melee weapons can save how many times they have used

    For 2.2.1 the new one , you can use the strength of the melee weapon to escape from or kill special infected ,modify your melee weapon swing rate and Melee weapon fatigue. Also allowed ammo settings on different melee weapons


    Installation:
    For L4D2 Melee Weapons Mod 2.2
    Put l4d2_meleemod2.2.smx in plugins folder and l4dl1d.txt(<-- by mi123645) in gamedata folder

    For L4D2 Melee Weapons Mod 1.2
    Put sm_l4d2melee.smx in plugins folder

    COMMAND:
    There are one admin command added in 1.5
    require ADMIN_KICK flag
    Code:
    sm_setmelee <client name> <melee interval>
    This command can set individual melee swing while sm_l4d2meleemod_MA "1" or sm_l4d2meleemod_MA "2"

    This 3 commands added in version 1.6
    Code:
    sm_melee_upper <melee weapon name> <ammo>
    sm_melee_lower <melee weapon name> <ammo>
    sm_melee_reset

    Usage of this 3 commands:
    sm_melee_upper & sm_melee_lower : set the ammo of a specific melee weapon. You need to type both command together to make it work, it will overide the cvars settings.

    sm_melee_reset : Reset all the ammo settings made by sm_melee_upper & sm_melee_lower

    This two commands sm_melee_upper & sm_melee_lower should put in server.cfg to make it load every map

    example:
    Code:
    sm_melee_upper fireaxe 800
    sm_melee_lower fireaxe 400
    sm_melee_upper hunting_knife 600
    sm_melee_lower hunting_knife 400
    NOTE: Custom melee weapons also works

    CVAR
    // 0 = close melee swing adjust 1 =global melee swing adjust 2 = only individual melee swing adjust
    // -
    // Default: "2"
    sm_l4d2meleemod_MA "2"

    // melee swing interval (only work with sm_l4d2meleemod_MA "1")
    // -
    // Default: "0.3"
    sm_l4d2meleemod_MA_interval "0.3"

    // Enable Melee Weapon ammo count
    // -
    // Default: "1"
    sm_l4d2meleemod_ammo_enable "1"

    // number of melee weapon ammo needed to escape from special infected(set higher than sm_l4d2meleemod_ammo_lower to disable)
    // -
    // Default: "100"
    sm_l4d2meleemod_ammo_escape "100"

    // After How many times of attack, the melee weapons breaks (lower limit)
    // -
    // Default: "150"
    sm_l4d2meleemod_ammo_lower "150"

    // After How many times of attack, the melee weapons breaks (upper limit)
    // -
    // Default: "250"
    sm_l4d2meleemod_ammo_upper "250"

    // Show After how many attacks the melee weapon breaks ( 0 = disable ,1 = display numbers ,2 = bar
    // -
    // Default: "2"
    sm_l4d2meleemod_notice "2"

    // after the melee weapon breaks , which secondary weapon will give out .(0: single pistol 1:double pistol 2:magnum 3:chainsaw
    // -
    // Default: "0"
    sm_l4d2meleemod_pistol "0"


    // Show a message when melee weapon nearly breaks
    // -
    // Default: "0"
    sm_l4d2meleemod_lownotice 0

    // 0 = English , 1 = Traditional Chinese , 2= Simplified Chinese
    // -
    // Default: "0"
    sm_l4d2meleemod_language 0

    // melee Fatigue enable(melee weapon) sm_l4d2meleemod_MA must be 1 or 2
    // -
    // Default: "1"
    sm_l4d2meleemod_MF_enable 1

    // melee Fatigue start after ? number of swings (melee weapon)
    // -
    // Default: "6"
    sm_l4d2meleemod_MF_count 6

    // melee Fatigue time (melee weapon)
    // -
    // Default: "3.0"
    sm_l4d2meleemod_MF_time 3.0

    // 0 = disable all 1 =allow escape infected 2 = allow kill infected 3=both allowed
    // -
    // Default: "2"
    sm_l4d2meleemod_infectedmode 2

    // sm_l4d2meleemod_ammo_kill 150
    // -
    // Default: "150"
    number of melee weapon ammo needed to kill special infected


    cvar config file for 2.0 in cfg/sourcemod/l4d2_meleemod.cfg, please remove the old one


    Download the SMX since the compiler without SDKHOOKS include

    Changelog:
    2.2 fixed Melee Weapon Primary Attack Fatigue and Secondary Attack Fatigue reset after switching weapons hopefully this is the last update
    2.1 87 views
    -fixed Melee Weapon Primary Attack Fatigue disappear after shove
    -added Melee Weapon Secondary Attack Fatigue
    -added hint text to show Melee Fatigue
    2.0-1 added flags to cvar
    2.0 72 views
    added kill special infected option
    added hint text
    added 2 cvars
    attack button to kill , attack2 button to escape
    code optimized (get rid of GetConVarInt)


    Gamedata fixed
    2.2.1
    attempt to fix melee fatigue issues
    1.9.1
    quick fix for death check and restore state
    1.9
    low melee strength notice
    added language cvar (3 language)
    added 3 CVAR to control Melee weapon fatigue original requested by
    LTR.2 in http://forums.alliedmods.net/showthread.php?t=127677
    1.6
    allow different settings on different melee weapons , users please redownload the gamedata file (l4dl1d.txt)
    1.5
    added 1 cvar
    and 1 admin command
    1.4
    added 2 cvar and support melee swing rate modify
    1.3 added 1 cvar and 1 big feature
    1.2a added reset code
    1.2 added 1 cvar
    1.1 delete sm_l4d2meleemod_ammo cvar
    add upper limit and lower limit cvar

    1.0 1X views

    NOTE: sm_l4d2melee is a very old version and will not be supported
    l4d2_meleemod2.2.1 is the newest version


    Credits:
    Thx DJ_WEST for the instructor hint code
    thx mi123645 for the survivor escape code
    thx tPoncho for melee swing rate code
    thx AtomicStryker for Trie code
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_l4d2melee.sp - 3660 views - 5.3 KB)
    File Type: txt l4dl1d.txt (261 Bytes, 2871 views)
    File Type: sp Get Plugin or Get Source (l4d2_meleemod2.2.1.sp - 4335 views - 56.2 KB)

    Last edited by asherkin; 05-15-2020 at 11:42.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Jo-Barf_Creepy
    Member
    Join Date: Mar 2010
    Location: Denmark
    Old 04-09-2010 , 10:49   Re: L4D2 Melee Weapons Mod
    Reply With Quote #2

    Nice idea. But when I did read the Melee Weapons Mod title, I thougth there also was a higher swing rate :/
    __________________
    I <3 SourceMod
    _____________
    (L4D2) Can anyone make a plugin to set the spit's size and damage?
    Jo-Barf_Creepy is offline
    quang20082008
    Member
    Join Date: Mar 2010
    Old 04-09-2010 , 10:56   Re: L4D2 Melee Weapons Mod
    Reply With Quote #3

    Interesting
    quang20082008 is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-09-2010 , 12:12   Re: L4D2 Melee Weapons Mod
    Reply With Quote #4

    Quote:
    Originally Posted by Jo-Barf_Creepy View Post
    Nice idea. But when I did read the Melee Weapons Mod title, I thougth there also was a higher swing rate :/
    i will add more function later,like use a high amount of melee weapon strength to let you escape from special infected
    alexip121093 is offline
    Send a message via MSN to alexip121093
    IronWarrior
    Veteran Member
    Join Date: Jan 2010
    Old 04-09-2010 , 14:59   Re: L4D2 Melee Weapons Mod
    Reply With Quote #5

    Yep, very good idea.
    IronWarrior is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 04-09-2010 , 17:29   Re: L4D2 Melee Weapons Mod
    Reply With Quote #6

    I was thinking about this awhile back! Thanks!

    Is it how many hits done to enemy, or is it how many times the player FIRE's the melee weapon?
    Thraka is offline
    hoffa
    Junior Member
    Join Date: Mar 2010
    Old 04-09-2010 , 18:44   Re: L4D2 Melee Weapons Mod
    Reply With Quote #7

    how about when they use adrenalin it will make it break faster cause they are swinging it harder
    hoffa is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-09-2010 , 21:14   Re: L4D2 Melee Weapons Mod
    Reply With Quote #8

    Quote:
    Originally Posted by Cemisti View Post
    It would be nice if you could add in some randomness to how fast they break like:

    sm_l4d2meleemod_min_ammo 50
    sm_l4d2meleemod_max_ammo 150

    Also it would be nice, if you could make seperate settings for each melee weapon that override the general setting:

    sm_l4d2meleemod_min_ammo_crowbar 40
    sm_l4d2meleemod_max_ammo_crowbar 120

    Just throwing out some suggestions that I think would make this plugin even more awesome!
    I would do this first
    sm_l4d2meleemod_min_ammo 50
    sm_l4d2meleemod_max_ammo 150
    alexip121093 is offline
    Send a message via MSN to alexip121093
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-09-2010 , 21:25   Re: L4D2 Melee Weapons Mod
    Reply With Quote #9

    Suggestion: you should add a hint text for notifying the weapons almost break (sometimes you know people will ignore the limit of weapon).
    I need to translate the text into Tranditional Chinese. Can you add translation phrase??

    Last edited by chris1701; 04-09-2010 at 21:34.
    chris1701 is offline
    Sapphire4890
    New Member
    Join Date: Apr 2010
    Old 04-09-2010 , 21:56   Re: L4D2 Melee Weapons Mod
    Reply With Quote #10

    on9 1210 change l4d2 too much
    l4d2 become PKS2
    left 4 dead 2 ----> Plugins Kill special infected 2

    1210 dont be on9 la
    Sapphire4890 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:53.


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