1. On August 16th at 9pm CST, the site will be put in to read only mode for maintenance. Maintenance should not take longer than an hour.

Question about blocking bullets but not players

Discussion in 'Mapping Questions & Discussion' started by ArchangelGabe, Jul 11, 2014.

  1. ArchangelGabe

    ArchangelGabe L1: Registered

    Messages:
    18
    Positive Ratings:
    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?
     
  2. Giovanni

    Giovanni L1: Registered

    Messages:
    10
    Positive Ratings:
    2
  3. takabuschik

    aa takabuschik

    Messages:
    663
    Positive Ratings:
    315
    Blockbullets also blocks players, so it won't work I think.
    By making the door, the func_door brush's render mode is set to "don't render", however as long as it is nodraw or actually any other "normal" (not tools) texture, it blocks bullets if it's closed.
     
  4. ArchangelGabe

    ArchangelGabe L1: Registered

    Messages:
    18
    Positive Ratings:
    0
  5. Idolon

    aa Idolon the worst admin

    Messages:
    1,548
    Positive Ratings:
    4,437
    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).
     
  6. takabuschik

    aa takabuschik

    Messages:
    663
    Positive Ratings:
    315
    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)
     
  7. Fragancia

    Fragancia L2: Junior Member

    Messages:
    85
    Positive Ratings:
    29
    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:

    Column 1
    - 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:

    Column 1
    - 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 Thanks x 1
  8. wareya

    wareya L7: Fancy Member

    Messages:
    493
    Positive Ratings:
    173
    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.
     
    • Thanks Thanks x 1
  9. ArchangelGabe

    ArchangelGabe L1: Registered

    Messages:
    18
    Positive Ratings:
    0
    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: Jul 17, 2014
  10. ArchangelGabe

    ArchangelGabe L1: Registered

    Messages:
    18
    Positive Ratings:
    0
    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.
     
  11. ArchangelGabe

    ArchangelGabe L1: Registered

    Messages:
    18
    Positive Ratings:
    0
    Thanks dude! I'll test it out and see what I can come up with!
     
  12. ArchangelGabe

    ArchangelGabe L1: Registered

    Messages:
    18
    Positive Ratings:
    0
    Alrighty, thanks! I'll see what I can do with it. If the other suggestions don't work.