SirPlease / L4D2-Competitive-Rework

Just refreshing and optimizing the core files a bit, eh?
GNU General Public License v3.0
242 stars 131 forks source link

Hittable collides with / stuck on weapon spawns #357

Open jensewe opened 3 years ago

jensewe commented 3 years ago

Probably well-known one. Should it be considered as a bug?

https://forums.alliedmods.net/showthread.php?p=2723746 [L4D1 & L4D2] Remove Weapons/Carryables Collision [v1.0.5 | 11-April-2021]

Although I know that Sir you've previously went through this one, it would be helpful if the mentioned issue is ought to be gone. However, I did notice that this plugin leads to unexpected issues, for example, gascan explodes by melee hit. Not sure whether hittables interact with items.

Or maybe we can use Collision Hook of SDKHook_ShouldCollide to customize collision rules on those things, perhaps at a cost of some performance.

https://www.twitch.tv/vanillezz/clip/TolerantFriendlyDragonWutFace?filter=clips&range=all&sort=time

Mart-User commented 3 years ago

thanks for reporting that issue with the gascan, I didn't knew. I think I fixed it in the latest version

Btw, I saw the video and I don't know if the plugin would help to "prevent" that bug

SDKHook_ShouldCollide is kinda generic method and you can't filter it by "entity" id.

Maybe need an extension like this one: https://forums.alliedmods.net/showthread.php?t=197815 Or trying to replicate what Lux did here https://forums.alliedmods.net/showthread.php?p=2705656