AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Stuck Zombie Melee Fix (https://forums.alliedmods.net/showthread.php?t=103568)

AtomicStryker 09-14-2009 08:34

[L4D & L4D2] Stuck Zombie Melee Fix
 
5 Attachment(s)
Another L4D(2) gameplay fix i don't expect Valve to do, in my lifetime.


Stuck Zombies - ducking, floating, or else not stagger-able; the worst kind of course being those which attack you still - will not escape your close combat wrath anymore. They'll die to your second melee blow.

Now also hits Zombies which dont trigger the entity_shoved event! (AKA the unhittables) All you must do is aim at them as you melee!



CVARS:

l4d_stuckzombiemeleefix_version


CHANGELOG:

1.0.0 - Release
1.0.1 - Added functionality to smash un-hittable Zombies too
1.0.2 - fixed log error in case zombie died during function
1.0.3 - more check code to prevent errors in log
1.0.4 - Sound Hook Callback Array error fix

Dragonshadow 09-14-2009 12:06

Re: [L4D] Stuck Zombie Melee Fix
 
Will test, though I don't think I've actually run into this before

crazydog 09-14-2009 12:10

Re: [L4D] Stuck Zombie Melee Fix
 
So, this will fix those un-meleeable zombies stuck in tables?

AtomicStryker 09-14-2009 12:47

Re: [L4D] Stuck Zombie Melee Fix
 
It should, yes.

duke24m 09-14-2009 13:51

Re: [L4D] Stuck Zombie Melee Fix
 
You're awesome. Thanks!

djromero 09-14-2009 14:49

Re: [L4D] Stuck Zombie Melee Fix
 
Quote:

Originally Posted by Dragonshadow (Post 932574)
Will test, though I don't think I've actually run into this before

Stay between coffe machine & table on the dinning room in NM3 and lure some zombies to you .... they get stuck on the table and you aren't able to melee them..

crazydog 09-15-2009 04:32

Re: [L4D] Stuck Zombie Melee Fix
 
1 Attachment(s)
Didn't seem to work too well for me. Here's a demo.

AtomicStryker 09-15-2009 05:17

Re: [L4D] Stuck Zombie Melee Fix
 
On first glance what i wrote about above is happening - there is no hit registered at all (no smacking sound).

Ill look into it.


EDIT:

Yes, its a graphical glitch. You must aim as if he was under the table (which for the server he is).

crazydog 09-15-2009 07:39

Re: [L4D] Stuck Zombie Melee Fix
 
Alright. I'll try that.

Yup. Aiming down did it. Moving it out of /disabled :P.
Would it be possible to make the plugin aim down for you, per say?

Video for the naysayers:
http://www.youtube.com/watch?v=VflDXVS_aqI

AtomicStryker 09-15-2009 09:05

Re: [L4D] Stuck Zombie Melee Fix
 
First i'd have to check for Zombies infront of the player. The only way i know if is looping all Entities ...

Looping a few hunded calls every time a Player melees? I dont think so :shock:

Frus 09-15-2009 11:27

Re: [L4D] Stuck Zombie Melee Fix
 
Quote:

Originally Posted by AtomicStryker (Post 933568)
First i'd have to check for Zombies infront of the player. The only way i know if is looping all Entities ...

Looping a few hunded calls every time a Player melees? I dont think so :shock:

I loop through all entities on a 0.1 repeating timer for about 3 seconds at the start of the first round in one of my plugins, it doesn't cause anything noticable.

Quite honestly it's worth it to try it and see what the actual impact is, you may be surprised.

DieTeetasse 09-15-2009 13:13

Re: [L4D] Stuck Zombie Melee Fix
 
GetClientAimTarget(clientid, false) should work :wink:

AtomicStryker 09-15-2009 15:27

Re: [L4D] Stuck Zombie Melee Fix
 
Except the Zombie's model is (to the server) actually out of the players aim, rendering that function useless.


EDIT:

But ill try it anyway :D

EDIT 2:

I take that back. It does in fact return the Zombie the server doesnt think youre hitting.


EDIT 3:

And another glorious day for L4D bugfixing. Have version 1.0.1

savagekid 09-15-2009 20:55

Re: [L4D] Stuck Zombie Melee Fix
 
Wicked Awesome!

Edhmelus 09-19-2009 01:38

Re: [L4D] Stuck Zombie Melee Fix
 
Quote:

Originally Posted by crazydog (Post 932585)
So, this will fix those un-meleeable zombies stuck in tables?

What about the zombies who are ducking under what for example, a pipe and can hit you forever and ever and ever and ever and ever and take you probably even out if its many any you only have lets say the pumpshotgun.

olj 09-19-2009 03:20

Re: [L4D] Stuck Zombie Melee Fix
 
Quote:

I take that back. It does in fact return the Zombie the server doesnt think youre hitting.
So, does GetClientAimtarget works for that? Dont have time to check code.

AtomicStryker 09-19-2009 06:53

Re: [L4D] Stuck Zombie Melee Fix
 
Yes, it works great against any kind of stuck Zombie now.

@olj
Yes thats what i said.

olj 09-19-2009 07:12

Re: [L4D] Stuck Zombie Melee Fix
 
Thanx. You are truly a "Valve's bugs killer" :mrgreen:

egor1908 09-22-2009 01:51

Re: [L4D] Stuck Zombie Melee Fix
 
I put this plugin on my server and it's not working. Any ideas?
Code:

          01 "Kigen's Anti-Cheat" (1.1.9) by Kigen
          02 "Stuck Zombie Melee Fix" (1.0.1) by AtomicStryker
          03 "Admin Menu" (1.2.3) by AlliedModders LLC
          04 "Vocalize Fatigue" (1.2a) by Mr. Zero
          05 "Basic Comm Control" (1.2.3) by AlliedModders LLC
          06 "L4DSwitchPlayers" (1.3) by SkyDavid (djromero)
          07 "Basic Ban Commands" (1.2.3) by AlliedModders LLC
          08 "Friendly House" (0.91) by Mr. Zero
          09 "L4D Vote Manager 2" (1.5.4) by Madcap
          10 "L4D Force Mission Changer" (1.3.5) by Dionys
          11 "Basic Chat" (1.2.3) by AlliedModders LLC
          12 "Admin Help" (1.2.3) by AlliedModders LLC
          13 "Basic Commands" (1.2.3) by AlliedModders LLC
          14 "Heartbeat trigger" (1.0) by B-man
          15 "RCON Lock" (0.3.2) by devicenull
          16 "Admin File Reader" (1.2.3) by AlliedModders LLC
          17 "Ghost Tank" (PLUGIN_VERSION) by Mr. Zero


AtomicStryker 09-22-2009 03:36

Re: [L4D] Stuck Zombie Melee Fix
 
'Not working' how. It should be fairly reliable.

egor1908 09-22-2009 08:19

Re: [L4D] Stuck Zombie Melee Fix
 
Quote:

Originally Posted by AtomicStryker (Post 940342)
'Not working' how. It should be fairly reliable.

I put this plugin in my "plugins" folder, and unhittable zombies acts like they allways do..

UPD: When i hit them. Aiming at them while melee doesnt help.

AtomicStryker 09-22-2009 12:47

Re: [L4D] Stuck Zombie Melee Fix
 
You probably misunderstood how this works. This does not _melee_ stuck zombies. It doesnt even work like melee (with the huge area of effect, AOE). You have to melee as you AIM DIRECTLY on a stuck zombie, twice, and it will die.

DiRgE 09-22-2009 15:52

Re: [L4D] Stuck Zombie Melee Fix
 
09/22/2009 - 15:19:11: [SM] Native "GetEntPropVector" reported: Entity 234 is invalid
L 09/22/2009 - 15:19:11: [SM] Displaying call stack trace for plugin "l4d_stuckzombiemeleefix.smx":
L 09/22/2009 - 15:19:11: [SM] [0] Line 147, /home/groups/alliedmodders/forums/files/5/2/2/3/3/49766.attach::GetEntityAbsOrigin()
L 09/22/2009 - 15:19:11: [SM] [1] Line 112, /home/groups/alliedmodders/forums/files/5/2/2/3/3/49766.attach::CheckForMovement()

egor1908 09-22-2009 15:53

Re: [L4D] Stuck Zombie Melee Fix
 
Quote:

Originally Posted by AtomicStryker (Post 940686)
You have to melee as you AIM DIRECTLY on a stuck zombie, twice, and it will die.

I did not misunderstood this.
I were aiming at the stuck zombie while melee, it did not die even after 4 hits.

AtomicStryker 10-06-2009 06:08

Re: [L4D] Stuck Zombie Melee Fix
 
It works as long you have an after-CC version of Sourcemod.

@DiRgE
Fixed that log error in 1.0.2

AtomicStryker 10-27-2009 16:36

Re: [L4D] Stuck Zombie Melee Fix
 
Added 1.0.3 which checks for the zombie entity still being a zombie after 2 seconds .. shouldnt happen too often, but happens

AtomicStryker 11-20-2009 11:53

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
Is fully compatible with L4D2

psychonic 12-14-2009 19:57

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
@AtomicStryker

Even though I find it highly unlikely that running a 64-person l4d/2 server (stably) is possible, this should be MAXPLAYERS+1 ;)

PHP Code:

new bool:MeleeDelay[MAXPLAYERS]; 


dacomb 12-18-2009 03:58

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
Hey there AtomicStryker,
I keep getting this error on one of my L4D2 servers.
I don't seem to get it on the other one I have though and it has more mods than this one...
Is this something I would worry about?

Thanks!

Code:

L 12/18/2009 - 04:09:32: SourceMod error session started
L 12/18/2009 - 04:09:32: Info (map "c1m2_streets") (file "errors_20091218.log")
L 12/18/2009 - 04:09:32: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/18/2009 - 04:09:32: [SM] Displaying call stack trace for plugin "l4d_stuckzombiemeleefix.smx":
L 12/18/2009 - 04:09:32: [SM]  [0]  Line 33, /home/groups/alliedmodders/forums/files/5/2/2/3/3/49766.attach::HookSound_Callback()
L 12/18/2009 - 04:09:35: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/18/2009 - 04:09:35: [SM] Displaying call stack trace for plugin "l4d_stuckzombiemeleefix.smx":
L 12/18/2009 - 04:09:35: [SM]  [0]  Line 33, /home/groups/alliedmodders/forums/files/5/2/2/3/3/49766.attach::HookSound_Callback()
L 12/18/2009 - 04:09:36: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/18/2009 - 04:09:36: [SM] Displaying call stack trace for plugin "l4d_stuckzombiemeleefix.smx":
L 12/18/2009 - 04:09:36: [SM]  [0]  Line 33, /home/groups/alliedmodders/forums/files/5/2/2/3/3/49766.attach::HookSound_Callback()
L 12/18/2009 - 04:15:29: Error log file session closed.


AtomicStryker 12-18-2009 04:03

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
Odd. Fixed.

dacomb 12-18-2009 13:00

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
thanks man! I appreciate the quick fix!

lexantis 01-15-2010 10:31

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
I want to apologize, because i dont fully understand from the first page, what this plugin really does(fixes?), can somebody explain it to me in more detail please?

AtomicStryker 01-15-2010 13:10

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
There is a youtube video on the first page.

NyteFire 04-25-2010 05:03

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
Any problems since The Passing update?

BloodyBlade 11-27-2019 16:35

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
1 Attachment(s)
* Converted plugin source to the latest syntax. Requires SourceMod 1.8 or newer.

JLmelenchon 09-26-2021 15:06

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
Any ideas ?

Code:

L 09/26/2021 - 18:55:17: [SM] Exception reported: Memory leak
L 09/26/2021 - 18:55:17: [SM] Blaming: Stuck_Zombie_Melee_Fix.smx
L 09/26/2021 - 18:55:17: [SM] Call stack trace:
L 09/26/2021 - 18:55:17: [SM]  [0] CreateTimer
L 09/26/2021 - 18:55:17: [SM]  [1] Line 83, plugin.sp::Event_EntShoved
L 09/26/2021 - 18:55:17: [SM] Exception reported: Could not create timer, no more handles


Silvers 09-26-2021 15:17

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
The original plugin where this error is from doe snot close the datapack on these lines:

PHP Code:

if (!IsValidEntity(zombieid)) return Plugin_Handled//did the zombie get disappear somehow?
if (!StrEqual(entclass"Infected")) return Plugin_Handled//make sure it STILL IS a zombie. 

The newer one posted seems to close them. Use the newer one.

kochiurun119 10-26-2023 13:55

Re: [L4D & L4D2] Stuck Zombie Melee Fix
 
I wish new version of new syntax for compile new sm 1.11 and 1.12 :(


All times are GMT -4. The time now is 22:25.

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