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

[L4D2] Melee Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 04-07-2011 , 00:06   [L4D2] Melee Fix
Reply With Quote #1

Melee Fix

About:
I'm posting this plugin here because I do not intend to provide support or problem solving.

Plugin works for you? Cool.
Plugin does not work for you? Too bad.

Any developer can pick it up and treat it on their own if they wish.

Description:
Fixing melee weapons dealing incorrect damage on custom servers.

Known Problems / Things to Notice:
  • Melee damage fix doesn't work 100% correctly on SI. Witches and tanks will obey.

Cvars:
Code:
// How much damage melee weapons deal to Boomers
// -
// Default: "400.0"
l4d2_meleefix_boomer "400.0"

// Whether headshots are instant death to Boomers
// -
// Default: "1"
l4d2_meleefix_boomer_headshot "1"

// How much damage melee weapons deal to Chargers
// -
// Default: "400.0"
l4d2_meleefix_charger "400.0"

// No instant headshot death cvar for Chargers as this is hardcoded!

// How much damage melee weapons deal to Hunters
// -
// Default: "400.0"
l4d2_meleefix_hunter "400.0"

// Whether headshots are instant death to Hunters
// -
// Default: "1"
l4d2_meleefix_hunter_headshot "1"

// How much damage melee weapons deal to Jockeys
// -
// Default: "400.0"
l4d2_meleefix_jockey "400.0"

// Whether headshots are instant death to Jockeys
// -
// Default: "1"
l4d2_meleefix_jockey_headshot "1"

// How much damage melee weapons deal to Smokers
// -
// Default: "400.0"
l4d2_meleefix_smoker "400.0"

// Whether headshots are instant death to Smokers
// -
// Default: "1"
l4d2_meleefix_smoker_headshot "1"

// How much damage melee weapons deal to Spitters
// -
// Default: "400.0"
l4d2_meleefix_spitter "400.0"

// Whether headshots are instant death to Spitters
// -
// Default: "1"
l4d2_meleefix_spitter_headshot "1"

// How much damage melee weapons deal to the Tank
// -
// Default: "400.0"
l4d2_meleefix_tank "400.0"

// How much damage melee weapons deal to the Witch.
// -
// Default: "250.0"
l4d2_meleefix_witch "250.0"

Changelog:
Code:
Version 1.0.0 - 07/04/2011
Initial release
Attached Files
File Type: zip l4d2meleefix.zip (20.9 KB, 983 views)
File Type: zip l4d2meleefix_source.zip (848.2 KB, 1098 views)
Mr. Zero is offline
IxAvnoMonvAxI
Junior Member
Join Date: Jan 2011
Old 05-02-2011 , 23:44   Re: [L4D2] Melee Fix
Reply With Quote #2

Easy dedicated servers servers servers for non-jejakhaeju Can not do that? Or in general listen server
Will you be able to make ..
IxAvnoMonvAxI is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 05-05-2011 , 06:57   Re: [L4D2] Melee Fix
Reply With Quote #3

yes YES Y.E.S. Thanks
Skorpion1976 is offline
stufz
Member
Join Date: Jan 2010
Old 05-30-2011 , 01:51   Re: [L4D2] Melee Fix
Reply With Quote #4

Very nice, Mr. Zero - but is there a way to disable the DEBUG messaging ? I found this in witchfix.sp -

DebugPrintToChatAll("Fixing melee damage done to witch. Old %f, new %f", damage, g_fWitchMeleeDamage);

With the source files, I see the 2 bat files, maybe I can compile this myself ? But would I comment out the above line ?
__________________


Last edited by stufz; 05-30-2011 at 01:56.
stufz is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 05-30-2011 , 03:41   Re: [L4D2] Melee Fix
Reply With Quote #5

Quote:
Originally Posted by stufz View Post
Very nice, Mr. Zero - but is there a way to disable the DEBUG messaging ? I found this in witchfix.sp -

DebugPrintToChatAll("Fixing melee damage done to witch. Old %f, new %f", damage, g_fWitchMeleeDamage);

With the source files, I see the 2 bat files, maybe I can compile this myself ? But would I comment out the above line ?
Oh lordy, did I forget to disable debug messages?

In the main.sp you should be able to find a #define DEBUG. Remove that and the messages should stop.

Use create_release.bat if you want the full zip file again, use makefile.bat if you only need to update the .smx plugin.
Mr. Zero is offline
stufz
Member
Join Date: Jan 2010
Old 06-05-2011 , 19:47   Re: [L4D2] Melee Fix
Reply With Quote #6

Thank you sir for pointing me in the right direction ! Done & works
__________________

stufz is offline
theblade
Junior Member
Join Date: Feb 2011
Old 08-16-2011 , 02:30   Re: [L4D2] Melee Fix
Reply With Quote #7

Quote:
Originally Posted by stufz View Post
Thank you sir for pointing me in the right direction ! Done & works
Can you post you compiled version without the Debug messages. Thought i can manage compiling it myself....
theblade is offline
stufz
Member
Join Date: Jan 2010
Old 08-29-2011 , 19:49   Re: [L4D2] Melee Fix
Reply With Quote #8

Quote:
Originally Posted by theblade View Post
Can you post you compiled version without the Debug messages. Thought i can manage compiling it myself....
Yah, just came back to this today - Hmm, I can't post the smx - against board rules. You have to download the l4d2meleefix_source.zip from Mr.Zero and edit the main.sp as he says - remove #define DEBUG - I use notepad++

then do as he says - doubleclick makefile.bat to update the smx plugin - it'll be in the build folder.
__________________


Last edited by stufz; 08-30-2011 at 15:58.
stufz is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-31-2011 , 06:26   Re: [L4D2] Melee Fix
Reply With Quote #9

You CAN post compiled files (in cases where the online compiler fails) if you provide the source with it.
AtomicStryker is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 09-10-2013 , 15:32   Re: [L4D2] Melee Fix
Reply With Quote #10

when do melee weapons deal incorrect damage ? what has to be customized ?
Does this fix tanks with extra HP getting slayed fast with melee

Last edited by s.m.a.c head; 09-10-2013 at 16:12.
s.m.a.c head 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 10:44.


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