[L4D2]Charger_Collision_patch[Left 4 Fix][05/03/2024]
1 Attachment(s)
Charger Collision patch apart of Left 4 Fix.
https://github.com/LuxLuma/Left-4-fix Huge thanks to silvers in helping me learn alot of stuff about disassembly, IDA, memory patching and finding windows signatures. Charger_Collision_patch Fixes charging only allowing to hit 1 of each survivor character index and allows charger smashing into the same survivor more than once, survivors no longer become a brick wall after being charger smashed once, damage should only be delt once per survivor per charge.
Spoiler
Requirements:
Installation:
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Neat plugin idea, everything looked in order so I decided to run it on the Servers for a day and I came across this issue (Twitch Clip)
When glancing over the source code it should prevent the damage just fine, could it be possible that m_carryVictim is changed briefly upon charger_impact? |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Hmm i tested this problem alot and thought i fixed it, ill try and replicate it and see what happens, also a note do you use this plugin?
https://forums.alliedmods.net/showth...27934?t=127934 |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
I didn't even stop to think that OnTakeDamage calls can interfere with one another, it's a likely cause, especially as I've had to deal with this in the past. :oops: |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Ok noproblem that makes testing for me easier, if that plugin is the reason why it is happening, i'm unsure if ill be able to work around and would have to leave a note on the plugin thread.
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Alright that godframes plugin does not conflict with this plugin regardless of load order,
did you by any chance load the plugin mid game? |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
It's also the first plugin that uses OnTakeDamage (order-wise) that gets loaded. |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
I have no idea what could cause this, most likely a conflict somewhere causing my checks to fail.
Try doing this PHP Code:
Besure to restart server. Quote:
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
THANK YOU!!!
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
From your explanation it seems like a straight up port of the extension as opposed to a new fix. Does it do anything different than the bugfix extension?
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
In small rooms/hallways this is a huge problem at times more survivors easier for this to happen. Making this was apart of the reason i did not use the extension. |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Update 1.1
Added restore patch code to save me from headaches of reload errors. Added restore convar to put collsion force restore. |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Hello, LUX:wink:. On my server, it happens occasionally that the person who was hit by the Charger immediately died immediately, and the survivor was still in full health. It's just a very accidental event, but sometimes I die right after I get out of the security door. There is no error log. Could you please check it?:)
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
Since you are the second person who reported this ill have to approch it another way with handling damage. Post your plugin list please too. |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
ProdigySim says: Quote:
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
https://forums.alliedmods.net/showpo...2&postcount=11 The most idea way is for valve to disable collsion between survivors that have been hit already to avoid the charger getting stuck on them, and god forbid they don't use characters to keep track of them. |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Although it happened several times, I still don't know the specific conditions under which it happened. It was very accidental, and suddenly died after a hit.:) I have changed the collision damage time to 1.5 and the impact force to *0.1, but it still happens. My server is 10VS10, I hope the information I provided is helpful. Anyway, thank you for your work.:stupid:
Code:
001 "Admin File Reader" (1.10.0.6497) by AlliedModders LLC |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
I can confirm the bug where a survivor with full health goes down in a single charge, it's rather rare but during some hours of play it happens at least once. Most of the times though I (and others) don't notice. Seems to happen mostly on long charges. I can post plugin list if useful, but perhaps more interesting is that I run on 100 ticks server.
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
updated gamedata for 2.2.1.3
This also still needs a different approch :P |
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
The offsets for "CCharge::HandleCustomCollision" changed with today's update:
PHP Code:
|
Re: [L4D2]Better_Charger_Collision+patch[Left 4 Fix]
Quote:
Updated gamedata |
Re: [L4D2]Charger_Collision_patch[Left 4 Fix][06/04/2022]
Quote:
Update 2.0 Redid collision code semi custom. Fix rare strange bug with damage(prevented damage from even being delt instead of SDKHooks way) Prevented impulse velocity code from accounting current velocity, charger impact force is only accounted now (just sets velocity to 0) |
Re: [L4D2]Charger_Collision_patch[Left 4 Fix][06/04/2022]
Lux, does dhook conflict with left4dhooks? also i get sourcescramble.ext not executed error. can you help?
Quote:
Quote:
|
Re: [L4D2]Charger_Collision_patch[Left 4 Fix][06/04/2022]
PHP Code:
|
Re: [L4D2]Charger_Collision_patch[Left 4 Fix][06/04/2022]
Quote:
|
All times are GMT -4. The time now is 00:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.