Question about blocking bullets but not players

ArchangelGabe

L1: Registered
Jul 11, 2014
18
0
So... I suppose to start off, I've been doing some research on how to let players pass through a door but not allow bullets or projectiles pass through.

Tried a few things including downloading this guys https://www.youtube.com/watch?v=6NZ-w8EuJ40 test map to see if it would work on TF2. Turns out, it doesn't.

So could anyone give me some pointers on what to use/do to prevent bullets/projectiles/bombs/etc from passing though the area but allow players to pass?
 

Idolon

they/them
aa
Feb 7, 2008
2,105
6,106
Block bullets is definitely still a thing. People generally use it on stairs so that splash damage from rockets doesn't act funky. If you can't find the texture, make sure that you either turn off the 'tf' filter, or download the ABS pack (which will make tool textures show up with the 'tf' filter on).
 
Apr 14, 2013
663
343
block bullets is indeed avaliable, but remember Block bullets also blocks players, which is, as far as I understand, not wanted.
Can you please tell us for what do you need this, anyways? from what you said so far, it seems useless, since doors block bullets (and should also block players, obviously), and there is no other real-life situation I can think of that bullets can't pass through a place and players can. If you put it inside a game, wouldn't it be a bit unrealistic and confusing for the player? (or it's some crazy alien shit for the avm contest)
 

Fragancia

L2: Junior Member
Feb 22, 2013
91
33
This is a bit hacky, but I assume it still works.

Create a brush with nodraw/trigger texture, make it a func_physbox_multiplayer, make sure these flags are checked:

- Start Asleep
- Debris
- Motion Disabled
- Only Break on Trigger
- Don't Take Physics Damage
- Don't Allow Bullet Penetration
- Prevent Motion Enable on Player Bump

Uncheck the rest.
Also, set these keyvalues:

- Material: (Anything)
- Strength: 0
- Disable Shadows: Yes
- Disable Receiving Shadows: Yes
- Render Mode: Don't Render

I made a simple map you can download to test it yourself
[VMF]
[BSP]
 

wareya

L420: High Member
Jun 17, 2012
493
191
Make a displacement with the "hull collision" flag disabled.
This unfortunately might still let wrangler shots through if the engineer can target the player without looking directly at the displacement, because of a bug (bad optimization) with the way sentry hitscan is calculated. This bug also happens on "invisible" textured brushes, but not on blockbullets.
 

ArchangelGabe

L1: Registered
Jul 11, 2014
18
0
Block bullets is definitely still a thing. People generally use it on stairs so that splash damage from rockets doesn't act funky. If you can't find the texture, make sure that you either turn off the 'tf' filter, or download the ABS pack (which will make tool textures show up with the 'tf' filter on).

Gotcha, I forgot it was just a texture and not a "func_" lol. But strangely doesn't work for me for some reason. Maybe I have the settings wrong. I'll tinker around with it.
 
Last edited:

ArchangelGabe

L1: Registered
Jul 11, 2014
18
0
block bullets is indeed avaliable, but remember Block bullets also blocks players, which is, as far as I understand, not wanted.
Can you please tell us for what do you need this, anyways? from what you said so far, it seems useless, since doors block bullets (and should also block players, obviously), and there is no other real-life situation I can think of that bullets can't pass through a place and players can. If you put it inside a game, wouldn't it be a bit unrealistic and confusing for the player? (or it's some crazy alien shit for the avm contest)

In my map, there's a center arena where there would be blue bots, in which reds could get achievements off of. Originally I had godmode in the arena for reds so they could get achievements without being bothered or killed by blue players. The only problem is reds would snipe/shoot from the arena and kill anyone on the outside, so my purpose of having the bullets and projectiles blocked would be to keep reds from shooting out.


Might be thinking "Why not just put doors and a roof on the thing?"

Problem is, that's where the blue team spawns, in the arena with the bots. And on my server, we allow players to use jetpack to roam around the map. So if we had a roof, they would have to go through the doors which could easily be camped.
 

ArchangelGabe

L1: Registered
Jul 11, 2014
18
0
This is a bit hacky, but I assume it still works.

Create a brush with nodraw/trigger texture, make it a func_physbox_multiplayer, make sure these flags are checked:

- Start Asleep
- Debris
- Motion Disabled
- Only Break on Trigger
- Don't Take Physics Damage
- Don't Allow Bullet Penetration
- Prevent Motion Enable on Player Bump

Uncheck the rest.
Also, set these keyvalues:

- Material: (Anything)
- Strength: 0
- Disable Shadows: Yes
- Disable Receiving Shadows: Yes
- Render Mode: Don't Render

I made a simple map you can download to test it yourself
[VMF]
[BSP]

Thanks dude! I'll test it out and see what I can come up with!
 

ArchangelGabe

L1: Registered
Jul 11, 2014
18
0
Make a displacement with the "hull collision" flag disabled.
This unfortunately might still let wrangler shots through if the engineer can target the player without looking directly at the displacement, because of a bug (bad optimization) with the way sentry hitscan is calculated. This bug also happens on "invisible" textured brushes, but not on blockbullets.

Alrighty, thanks! I'll see what I can do with it. If the other suggestions don't work.