Left 4 Dead 2

Left 4 Dead 2

87 ratings
Fast Melee Exploit Fix #2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
Weapons: Melee
File Size
Posted
Updated
2.248 KB
8 Aug, 2024 @ 6:02am
14 Aug, 2024 @ 7:35am
5 Change Notes ( view )

Subscribe to download
Fast Melee Exploit Fix #2

In 1 collection by Interneted
My VScripts Collection
13 items
Description
More hate.

In short for nerds, this prevents the melees' m_flNextPrimaryAttack' netprop to be updated to a lower value than before.

I want to do this for every single weapon in the game to prevent fast firing trick on tier 1 shotguns, awp, and scout, as well as faster weapon deploy trick. It uses the same mechanic, but 30 ticks is so slow that it doesn't always work so rarely.

Short Description
With this simple script, you cannot swing a melee until the refire time has passed after swinging it no matter what, hence fixing the fast melee exploit by switching slow melee weapons back and forth which resets the refire time.

This is the 2nd part of my first fast melee exploit fix, contributing to a full port of sheo's fast melee fix[forums.alliedmods.net].

Though it is optional, it feels wrong to not subscribe the first part, it's completely up to you. Now I can feel how ZoneMod players use melees wisely, perhaps the true add-on I always wanted to make since I started VScripting and yes, noone cares.

Only works on local/dedicated servers, and the server must be on 30 tick rate or lower, otherwise It will not work. It can be used with melee scripts, though I am not sure it will work properly.

Let me know of any bugs and issues.

NOTICE: I don't recommend using this with another script that mess with the melees' next attack timer, doing so may cause your melee to be unusable/cannot be swung.
Popular Discussions View All (1)
0
10 Aug, 2024 @ 2:31am
Useless Nerd Information
Interneted
21 Comments
Interneted  [author] 14 Aug, 2024 @ 7:36am 
I have updated it again, try to see if it works.
Interneted  [author] 14 Aug, 2024 @ 6:47am 
I did some tests on a clean installation and I can't seem to get it to happen on my end, so do the code after I checked multiple times.

I am afraid that you might have check which add-ons are messing with this and report it to me.

Other than that, I have no idea.
Kaleidø.vtf 13 Aug, 2024 @ 12:39pm 
im running it with your other fix mod, and no just a local
Interneted  [author] 13 Aug, 2024 @ 5:41am 
@Kaleidø.vtf
I can't seem to replicate this, try disabling other scripts, leave these run alone and try to see if it works.

Lastly, are you running a sourcemod server?
Kaleidø.vtf 13 Aug, 2024 @ 1:39am 
bug
when holding gascan or gnome or tank and you click to throw and your last equiped weapon was a melee it makes it swing
Nescius 11 Aug, 2024 @ 11:17am 
From my perspective if I were to join a game that uses this it just makes my playing worse by messing with a certain mechanic with no clear indication it's being changed while at the same time giving very little positive to the guy that has the addon installed because they aren't using fast melee switch so they are unaffected by it.
I am of course not saying that you or anyone shouldn't be free to mod what they want I am simply saying it's dumb.
People join public coop/realism games etc. expecting the game to behave in some way and this messes with that. For example if this was part of a mutation then I wouldn't say a thing because there it's very clearly indicated (assuming it is indicated in the mutation description) that not using fast melee switch is part of its rules.
Interneted  [author] 11 Aug, 2024 @ 10:51am 
I can agree that hit detection in this game is pretty bad, I admit that I have no obligation of calling it a feature, exploit, trick, nor a Qol on my add-on.

Talking about macro, even macroing can bypass this if they were to do it faster than 30 ticks as I can't find useable events, outputs or anything, at least for now.

Doing it by macroing or not, it is the workshop after all, anyone is free to adjust their server on whatever feature they want to add.

In perspective, the 'trick' on the first part of this is just... broken, I am certain there is a reason why melees differ in firerates.

The thing I am concerned is that calling removing fun and wasting performance are quite questionable, these are such subjective things, don't you think? I find it fun doing it as well, and it is quite an advanced thing to do.
tomaz 11 Aug, 2024 @ 10:34am 
@Nescius, i'm aware lol i was just joking
Nescius 11 Aug, 2024 @ 10:05am 
@tomaz
I can't speak for everyone but many people that use this don't abuse it by setting up a simple macro.
Fast melee switch can be consider just another "advanced" thing to learn doing when doing it manually.
Most people do very similar thing with pump shotguns or cs snipers by canceling animation via shoving and shooting faster and there is no problem with that. This mod is in no way a QoL addon and simply removes fun learnable technique for melees, wastes performance and for anyone joined to a server it's not apparent such mod is interfering with their playing.
The hit melee detection is already bad for melees so with this addon active while unaware and trying to do melee switch one could assume its just l4d2 being l4d2.
If this addon was about preventing fast melee switch done via macro I would fully praise it.
Joellis 10 Aug, 2024 @ 9:45pm 
never even knew this existed lmao