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

[L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)


Post New Thread Reply   
 
Thread Tools Display Modes
yagura40977
Junior Member
Join Date: Feb 2019
Old 03-03-2019 , 06:39   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #491

"meleeweapons" "fireaxe;frying_pan;machete;baseball_bat;crow bar;cricket_bat;tonfa;Hunting_knife;katana;el ectric_guitar;knife;;golfclub"

Sorry, my fault. Hunting_knife <=extra

It’s normal to delete it.
yagura40977 is offline
yagura40977
Junior Member
Join Date: Feb 2019
Old 03-03-2019 , 07:17   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #492



Previous situation

Last edited by yagura40977; 03-03-2019 at 07:20.
yagura40977 is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 03-05-2019 , 17:51   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #493

does anyone have any weapons for which this was added ?
Darkwob is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 09-26-2020 , 12:52   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #494

Here is my version after Last Stand update.
-Added pitchfork melee
-Added Shovel melee

You'll need to install:
Attached Files
File Type: sp Get Plugin or Get Source ([L4D2] MeleeInTheSafeRoom.sp - 745 views - 12.5 KB)
SilentBr is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-27-2020 , 07:33   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #495

Quote:
Originally Posted by SilentBr View Post
Here is my version after Last Stand update.
-Added pitchfork melee
-Added Shovel melee

You'll need to install:
Please update this to new syntax.
__________________
Spirit_12 is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 09-28-2020 , 09:59   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #496

Quote:
Originally Posted by Spirit_12 View Post
Please update this to new syntax.
I have no idea how to do this. I appreciate if you do this for me.
I'm using this plugin with sourcemod 1.10 and it is working fine, actually 95% of my plugins are old syntax, is that a problem?

Last edited by SilentBr; 09-28-2020 at 10:00.
SilentBr is offline
DiRgE
Member
Join Date: Jul 2009
Old 09-28-2020 , 10:52   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #497

SilentBr, I think he meant like this.

Check this out: https://wiki.alliedmods.net/SourcePa...itional_Syntax
Attached Files
File Type: sp Get Plugin or Get Source ([L4D2] MeleeInTheSafeRoom.sp - 326 views - 12.2 KB)

Last edited by DiRgE; 09-28-2020 at 11:44.
DiRgE is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-28-2020 , 11:14   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #498

Quote:
Originally Posted by DiRgE View Post
-
Hi, .SMX shouldn't be posted since it compiles fine on the forum when you click "Get Plugin".

There are some VBA/python scripts to convert syntax and methodmaps. See this thread for more details: https://forums.alliedmods.net/showthread.php?t=290805 (post #54 Dragokas uploaded a handy converter). There maybe a few small things requiring manual editing after - I think just variable type changes like Handle to ConVar.
__________________
Silvers is offline
DiRgE
Member
Join Date: Jul 2009
Old 09-28-2020 , 12:49   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #499

It's removed.

I do not have Office installed here, if anyone else do, feel free.

Syntax can still be the transitional even without using methodmap, just wont be OO like, am I wrong?

Last edited by DiRgE; 09-28-2020 at 12:57.
DiRgE is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-29-2020 , 01:07   Re: [L4D2] Melee In The Safe Room (with unlock all melee weapons on every campaign)
Reply With Quote #500

L4D2- Melee In The Saferoom

Version: 3.1.0

Spawns a selection of melee weapons in the saferoom, at the start of each round.

Plugin Highlights:

Quote:
- Fixed random option for versus games where second team wouldn't get the same set.

- Replaced "l4d2_MITSR_Random" Convar with "l4d2_MITSR_Spawn_Type".

- Pick between 0 = Custom weapon limits, 1 = Random weapon spawns and 2 = Map based. Third option will allow the plugin to spawn custom weapons unique to their own map.

- "l4d2_MITSR_MapBase_Amount" ConVar which sets the limit for each weapon upon Map Base option. This is a multiple, so make sure you don't set it too high.

- "l4d2_MITSR_Spawn_Type" ConVar also provides an alternative to downloading vpks, as you are only spawning weapons that are allowed on the map.

- "l4d2_MITSR_Debug" is implemented for event showcase. 0 = disable, 1 = Chat Messages and 2 = Log to file option.

- Given the history of the plugin. I wanted to keep it open to additional melee weapons. Current code allows you to add custom melee very easily.

- Added support for The Last Stand melee weapons.

Install Instructions:


Quote:
- Place the file in your plugins folder.

- Delete the [L4D2]MeleeInTheSaferoom.cfg file in your left4dead2/cfg/sourcemod folder. Plugin will auto-create a new one with updated ConVars.
ConVars:

PHP Code:
// Number of baseball bats to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_BaseballBat "1"

// Number of cricket bats to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_CricketBat "1"

// Number of crowbars to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Crowbar "1"

// 0 = off, 1 = Chat message, 2 = Log to file. Check logs/meleeinthesaferoom.txt
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
l4d2_MITSR_Debug "0"

// Number of electric guitars to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_ElecGuitar "1"

// Should the plugin be enabled
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_MITSR_Enabled "1"

// Number of fireaxes to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_FireAxe "1"

// Number of frying pans to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_FryingPan "1"

// Number of golf clubs to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_GolfClub "1"

// Number of katanas to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Katana "1"

// Number of knifes to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Knife "1"

// Number of machetes to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Machete "1"

// Number multiple if l4d2_MITSR_Spawn_Type is set to 2.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "4.000000"
l4d2_MITSR_MapBase_Amount "1"

// Number of weapons to spawn if l4d2_MITSR_Spawn_Type is set to 1.
// -
// Default: "10"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Random_Amount "10"

// 0 = Custom list, 1 = Random Weapon and 2 = Map based weapons.
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
l4d2_MITSR_Spawn_Type "2"

// Number of tonfas to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Tonfa "1"

// Number of pitchforks to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Pitchforks "1"

// Number of shovel to spawn (l4d2_MITSR_Spawn_Type must be 0)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "10.000000"
l4d2_MITSR_Shovel "1"

// The version of Melee In The Saferoom
// -
// Default: "3.0.0"
l4d2_MITSR_Version "3.0.0" 
Change Log:

Quote:
3.1.0 (29-September-2020 - The Last Stand Update)
- Added support for Shovel and Pitchfork.

3.0.0 (22-Aug-2018 - Major rewrite)
- Switched ConVar to support 3 options. (Custom limits, Random or Map Based)
- Switched to transitional syntax.
- Moved repetitive fucntions into loops and arrays for future expansion.
- Fixed Melee spawning for second team in versus.
- Added debugging support for the plugin.
- Implemented AskPluginLoad2 function to check if game = Left4Dead 2.

2.0.7
- Made my own vpk with only standard melee weapons unlocked (no knife or riot shield).
- Precached all standard melee weapons.(it looks like without having something client side, knife and riot just won't work)

2.0.6
- MasterMind420 posted a release which use MITSR 2.0.5 but with some new .vpk's to unlock weapons.
- Repackaged .zip file and updated PHP to correct version

2.0.5
- Add support for the sacrifice an no mercy.
- Fixed a bug where hunter arms could be spawned.

2.0.4
- Fixed a potential error where on campaign mode, melee weapons wouldn't spawn on any but the first map.

2.0.3
- Added riot_shield to make sure people can get riot shields to spawn properly.
- Added !melee (admin command) to list all spawnable melee weapons on current campaign.

2.0.2
- Now spawns the default weapons, except for knives. Where it spawns a huntingknife.

2.0.1
- Quick (failing) test

2.0.0
- Complete rewrite, from a blank document.
- Fixed all errors (hopefully, tested for on all campaigns with two people with no errors)
- Made all Melee weapons work with out any glitches (read how to setup for more information)
- Now supports custom melee lists, e.g. spawn 4 knives, 1 golf club and 3 katans.
- Cleaner faster PHP.

1.2.6
- added tonfa to the cfg list of files.
- more sure sv_allowdownload is on.

1.2.5
- After many internal versions, trying to fix the glitches with unlocked melee weapons, I finally have one, which I believe works in all game modes. Basically, put the unlock_melee_weapons.vpk in your servers addon folder and this then downloads the individual files from the server to you clients on map start, because there all .txt files there all around 1 - 2kb each so they download instantly, enabling all melee weapons with no glitches and with audio.

1.2.0
- Been a while since an update, and this isn't anything big, basically I've added an extra cvar for versus mode, if enabled both teams get the same melee weapons when set to random, to make it fair.

1.1.1
- Right hopefully, hunter claws are 100% gone, now it finds out what weapons are aloud on that map, then picks from them.

1.1.0
- Changed how the weapons spawn, hopfully fixing the hunter claws once and for all (Thanks DJ_WEST)
- Fixed some typos
- Removed !mitserror
- NOTE: Please delete the old [L4D2]MeleeSafeRoom.cfg before using this plugin.
- NOTE: This version is broken, reuploaded 1.0.5

1.0.5
- Changed hunter claws check to check all cases (lower and higher caps)
- Added !mitserror command to output all weapon models spawned to help with debugging.

1.0.4
- Added extra checking for spawn amounts.
- Made sure knifes worked for edited servers.

1.0.3
- A Quick Beta version used to check a hunter claws bug had been fixed.

1.0.2
- Fixed Bug with weapons spawning in wrong place
- Wrote better PHP for positioning and rotating melee weapons

1.0.1
- Small bug fix (increased timer from round start)

1.0.0
- Initial Release
Credits:

Quote:
- SilverShot for his coding format style.
- Fyren for his help with nested loops.
- N3wton for originally making this plugin.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_melee_in_the_saferoom.sp - 891 views - 19.0 KB)
__________________

Last edited by Spirit_12; 09-30-2020 at 11:02.
Spirit_12 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 16:26.


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