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

[L4D2] Making pipe bombs collide with Tanks?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpaceWashingMachine
Junior Member
Join Date: Nov 2016
Old 05-14-2021 , 14:41   [L4D2] Making pipe bombs collide with Tanks?
Reply With Quote #1

So the simple thing I'm after is for pipe bombs to collide with Tanks, the same way molotovs and vomit jars do, however I can't seem to find what actually disables the collision.

I've tried using SDKHook_ShouldCollide on both the tanks and the pipe bombs but neither seem to do anything.
SpaceWashingMachine is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-14-2021 , 15:57   Re: [L4D2] Making pipe bombs collide with Tanks?
Reply With Quote #2

You can check this plugin https://forums.alliedmods.net/showthread.php?t=327838 to have some tips
Don't know if that is what you want.
__________________
Marttt is offline
SpaceWashingMachine
Junior Member
Join Date: Nov 2016
Old 05-19-2021 , 03:04   Re: [L4D2] Making pipe bombs collide with Tanks?
Reply With Quote #3

From what I can see, that doesn't seem to work either, to be more specific it's the pipe bomb projectile entity that I want to collide, I may have had it configured wrong but that plugin also has the same issue where pipe bombs just go straight through.
SpaceWashingMachine is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 05-19-2021 , 11:25   Re: [L4D2] Making pipe bombs collide with Tanks?
Reply With Quote #4

Have you tried hooking the pipebomb projectile entity, sdkhook touch? I did something similar to create sticky bombs in a private plugin, i managed to make them stick to surfaces that way, but clients touch are a little trickier, i had mixed results, try hooking the pipebomb entity or the tank itself, string check for the pipebomb projectile in touch hook, or vice versa for the tank, printtochat or printtoserver the results to see if its triggered.
MasterMind420 is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 05-19-2021 , 11:28   Re: [L4D2] Making pipe bombs collide with Tanks?
Reply With Quote #5

another hackish way to do it would be to track the tank and pipebomb projectiles origins, get the tanks mins and max and do some calculating there to see if its within the tank bounds. I personally wouldnt use that method except as a last resort.
MasterMind420 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 01:32.


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