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

[L4D2]Disable Melee Fatigue ONLY IN COOP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
uriel18
Senior Member
Join Date: Apr 2009
Old 11-24-2009 , 16:32   [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #1

Hi, i would to know if itīs possible to disable melee fatigue in coop, like on L4D1.

I donīt like melee fatigue in Coop in advanced and expert difficulties.

If someone knows how to do this i will thank.
__________________
uriel18 is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 11-24-2009 , 16:34   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #2

My guess is there is a CVAR that controls it either to enable/disable or change the time.
Bigbuck is offline
uriel18
Senior Member
Join Date: Apr 2009
Old 11-24-2009 , 16:39   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #3

Quote:
Originally Posted by Bigbuck View Post
My guess is there is a CVAR that controls it either to enable/disable or change the time.
really? what? but sure itīs considered under cheat flag...
__________________
uriel18 is offline
Mnkras
Senior Member
Join Date: Mar 2009
Location: 127.0.0.1
Old 11-24-2009 , 17:58   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #4

if its a cheat the use admin cheats by device null
__________________
Mnkras is offline
triggerman
Senior Member
Join Date: Jun 2009
Old 11-24-2009 , 18:30   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #5

Quote:
Originally Posted by Mnkras View Post
if its a cheat the use admin cheats by device null
if its a cheat use sm_cvar
triggerman is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-25-2009 , 07:05   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #6

Hook melee attacks and set m_iShovePenalty on the client zero.



PHP Code:
#include <sourcemod>
#include <sdktools>

public Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
    if (
GetClientTeam(client) != 2) return Plugin_Continue;
    
    if (
buttons IN_ATTACK2)
    {
        
SetEntProp(iClientProp_Send"m_iShovePenalty"01);
    }
    return 
Plugin_Continue;


Last edited by AtomicStryker; 11-25-2009 at 08:21.
AtomicStryker is offline
Damizean
SourceMod Donor
Join Date: Mar 2009
Old 11-25-2009 , 07:56   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #7

Here's the updated plugin to work with L4D1 and L4D2 (and upgraded it to use OnPlayerRunCmd instead of OnGameFrame). I left apart the whole voting part because I'm working on a separate vote plugin interface for my plugins

The l4d_meleefatigue cvar controls either if you want to have the fatigue or not. (0 = Disabled / 1 = Enabled).
Attached Files
File Type: sp Get Plugin or Get Source (L4D_MeleeFatigue.sp - 2290 views - 5.7 KB)
__________________
Dat annoying guy
Damizean is offline
Send a message via AIM to Damizean Send a message via MSN to Damizean
uriel18
Senior Member
Join Date: Apr 2009
Old 11-25-2009 , 09:22   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #8

Thx, I will try when I come home.

Edit: Tested and works PERFECT!!!

You must be a god or something like that

Finally the game is like it must be since the beggining
__________________

Last edited by uriel18; 11-25-2009 at 15:56.
uriel18 is offline
Geek_Loco
SourceMod Donor
Join Date: May 2009
Old 12-20-2009 , 19:26   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #9

Damizean,

TY TY TY so much. This was getting very annoying for many of us on our servers. Much appreciated!!!
Geek_Loco is offline
mister_ben
Junior Member
Join Date: Sep 2009
Old 03-15-2010 , 18:59   Re: [L4D2]Disable Melee Fatigue ONLY IN COOP
Reply With Quote #10

Loving this one, L4D2 is just to slow and cumbersome with weapon switches it makes the game too irritating to me. Problem solved!

You heroes!
__________________
Thanks for my Current Server Plugins:

randomize_tank_witch_settings
MeleeInTheSaferoom
charselect
vendor
tankhp
mister_ben 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 12:44.


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