Raised This Month: $4 Target: $400
 1% 

[L4D2] Melee Mode v2.0.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Plugin ID:
1673
Plugin Version:
2.0.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Removes guns for new gameplay
    Old 05-18-2010 , 18:33   [L4D2] Melee Mode v2.0.0
    Reply With Quote #1

    Well this is my first plugin.

    This plugin will remove all weapons excluding secondaries. You can modify which secondaries get removed by cvars.

    CVARS:
    Code:
    // Remove ammo piles?
    // -
    // Default: "1"
    l4d2_meleemode_ammo_remove "1"
    
    // Enable Melee Mode?
    // -
    // Default: "1"
    l4d2_meleemode_enable "1"
    
    // Game modes Melee Mode is allowed to operate in
    // -
    // Default: "coop,realism"
    l4d2_meleemode_modes "coop,realism"
    
    // Remove chainsaws?
    // -
    // Default: "0"
    l4d2_meleemode_remove_chainsaws "0"
    
    // Remove upgrades 0=no 4=incendiary 8=explosive 16=lasers, you can add the values up
    // -
    // Default: "28"
    l4d2_meleemode_remove_upgrades "28"
    
    // Remove secondaries 0=no 1=pistols 2=magnums, you can add the values up
    // -
    // Default: "3"
    l4d2_meleemode_secondaries "3"
    
    // Ratio of melee weapons per 1 weapon(pistol/magnum) that bots will uphold
    // -
    // Default: "1"
    l4d2_meleemode_weapon_ratio "1"
    History:

    1.0 - Release
    1.1 - sb_max_team_melee_weapons change is now changed automatically on round start
    1.2 - Skipped for private revision
    1.3 - If plugin enabled will remove the SMG given by the L4D Respawn plugin by AtomicStryker, and split weapon removal into two seperate timers to prevent lag.
    1.4 - New Cvar l4d2_remove_ammo, delete your old l4d2_melee_mode.cfg before upgrading.
    1.5 - New Cvar l4d2_mm_modes, delete your old l4d2_melee_mode.cfg before upgrading.
    1.5.5 - New Cvar l4d2_upgrade_remove, delete your old l4d2_melee_mode.cfg, small bugfix aswell.
    1.6 - New Cvar l4d2_remove_chainsaw, delete your old l4d2_melee_mode.cfg. Plugin also hooks Cvar changes.
    1.6.1 - Fixed the plugin hooked Cvars not working due to my fail.
    1.6.23 - New way of removing smg given by respawn plugin. Fixed all KillTimer errors with this plugin, no more error log spam.
    1.6.3 - New way of removing smg is now actually added, and added l4d2_remove_smg Cvar, delete your l4d2_melee_mode.cfg before updating.
    2.0.0 - Rewrite
    Plugin no longer relies on timers.
    New cvars.
    Plugin gives a random melee weapon to each player.
    Plugin handles rescues and map transitions when removing secondaries.
    Plugin no longer conflicts with other plugins which give weapons.
    Renamed source file to l4d2_meleemode.sp
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_meleemode.sp - 1458 views - 9.6 KB)
    __________________

    Last edited by McFlurry; 12-18-2011 at 15:44. Reason: Re-uploaded to remove custom include.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Acecombat2
    Senior Member
    Join Date: Nov 2009
    Old 05-21-2010 , 03:09   Re: [L4D2] Melee Mode v1.3
    Reply With Quote #2

    Nice... this what i need to make players to force them to get points to buy primary weapons. thx for your effort.
    __________________
    I'm Noob So Please Don't Criticise me (Fail In Engglish)
    Acecombat2 is offline
    Acecombat2
    Senior Member
    Join Date: Nov 2009
    Old 05-22-2010 , 05:51   Re: [L4D2] Melee Mode v1.3
    Reply With Quote #3

    hey can you make your plugin not to remove the ammo pile please?

    make it configurable
    __________________
    I'm Noob So Please Don't Criticise me (Fail In Engglish)
    Acecombat2 is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 05-22-2010 , 15:43   Re: [L4D2] Melee Mode v1.4
    Reply With Quote #4

    New version posted.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Acecombat2
    Senior Member
    Join Date: Nov 2009
    Old 05-22-2010 , 19:23   Re: [L4D2] Melee Mode v1.4
    Reply With Quote #5

    thx
    __________________
    I'm Noob So Please Don't Criticise me (Fail In Engglish)
    Acecombat2 is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 06-02-2010 , 04:31   Re: [L4D2] Melee Mode v1.6
    Reply With Quote #6

    New version posted.
    New version will make you have to compile it yourself, stupid tag mismatch warnings causing it to fail.
    Edit: New Fix
    __________________

    Last edited by McFlurry; 06-04-2010 at 00:07.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    mommafish
    Member
    Join Date: Mar 2010
    Old 07-11-2010 , 08:17   Re: [L4D2] Melee Mode v1.6.23 *Update*
    Reply With Quote #7

    i tried this with item buy plugin.. some of my friends say after they buy a gun it dissapears from his hands. so how do i prevent this plugin from removing gun from the players hands?\


    so what im saying is just remove the spawn spots of weapons?

    Last edited by mommafish; 07-11-2010 at 08:22.
    mommafish is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 07-12-2010 , 16:46   Re: [L4D2] Melee Mode v1.6.23 *Update*
    Reply With Quote #8

    It does only remove spawn locations, if the gun was an smg it will be removed, though I'll add a cvar for that.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    cheewongken
    Senior Member
    Join Date: Feb 2009
    Old 09-09-2010 , 13:40   Re: [L4D2] Melee Mode v1.6.3 *Update*
    Reply With Quote #9

    hey, this doesn't remove the pistols all chars get when you start the map, right?

    edit: i looked through the code and saw PistolRemover 1-5.. i'm guessing it does remove the pistols then. won't know till i test it out, but i've gotta wait till sunday.

    edit2: if it does, do the bots immediately grab the melee? (i really need to test it out to find out lol)

    Last edited by cheewongken; 09-09-2010 at 17:24.
    cheewongken is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 09-09-2010 , 16:40   Re: [L4D2] Melee Mode v1.6.3 *Update*
    Reply With Quote #10

    It should be removing the pistols when the map starts, the player will go into civilian mode of course.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    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 19:18.


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