AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2] Melee Fix (https://forums.alliedmods.net/showthread.php?t=154366)

Mr. Zero 04-07-2011 00:06

[L4D2] Melee Fix
 
2 Attachment(s)
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


IxAvnoMonvAxI 05-02-2011 23:44

Re: [L4D2] Melee Fix
 
Easy dedicated servers servers servers for non-jejakhaeju Can not do that? Or in general listen server
Will you be able to make ..

Skorpion1976 05-05-2011 06:57

Re: [L4D2] Melee Fix
 
yes YES Y.E.S. :) Thanks :)

stufz 05-30-2011 01:51

Re: [L4D2] Melee Fix
 
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 ?

Mr. Zero 05-30-2011 03:41

Re: [L4D2] Melee Fix
 
Quote:

Originally Posted by stufz (Post 1477939)
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.

stufz 06-05-2011 19:47

Re: [L4D2] Melee Fix
 
Thank you sir for pointing me in the right direction ! Done & works :D

theblade 08-16-2011 02:30

Re: [L4D2] Melee Fix
 
Quote:

Originally Posted by stufz (Post 1482138)
Thank you sir for pointing me in the right direction ! Done & works :D

Can you post you compiled version without the Debug messages. Thought i can manage compiling it myself....:oops:

stufz 08-29-2011 19:49

Re: [L4D2] Melee Fix
 
Quote:

Originally Posted by theblade (Post 1533615)
Can you post you compiled version without the Debug messages. Thought i can manage compiling it myself....:oops:

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.

AtomicStryker 08-31-2011 06:26

Re: [L4D2] Melee Fix
 
You CAN post compiled files (in cases where the online compiler fails) if you provide the source with it.

s.m.a.c head 09-10-2013 15:32

Re: [L4D2] Melee Fix
 
when do melee weapons deal incorrect damage ? what has to be customized ?
Does this fix tanks with extra HP getting slayed fast with melee


All times are GMT -4. The time now is 04:48.

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