Unsappable buildings

Discussion in 'Mapping Questions & Discussion' started by 【EmNudge】, Jun 21, 2016.

  1. 【EmNudge】

    【EmNudge】 L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    35
    This has been talked about before, but I haven't found a solution yet.

    I want to make an obj_dispenser, not a dynamic prop with a healing trigger_hurt, that is unsappable.
    Because of the red-tape recorders de-building ability, it doesn't register as OnDestroy, so I can't respawn it when it's down.

    any ideas?
     
  2. dryerlint

    dryerlint L5: Dapper Member

    Messages:
    205
    Positive Ratings:
    183
  3. Muddy

    Server Staff Muddy Muddy

    Messages:
    2,372
    Positive Ratings:
    4,167
    Do the building entities not have a property/flag to make them invincible?
     
  4. Moonrat

    aa Moonrat The end of an era

    Messages:
    877
    Positive Ratings:
    502
    I think they can still be sapped, and while it won't damage them, it will cease their function.
     
  5. Viperi

    aa Viperi not actually a snek

    Messages:
    962
    Positive Ratings:
    530
    And that's why some custom maps use unreachable sentries to avoid this. Obviously not in official maps.
     
  6. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,071
    Positive Ratings:
    832
    Put the dispenser in a solid brush. I used 64x64x64 Block Bullets.
     
    • Thanks Thanks x 1
    • Useful Useful x 1
  7. 【EmNudge】

    【EmNudge】 L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    35
    while it doesn't have the exact same functionality, as players of the same team can't walk through it, it actually works.
    I tried surrounding it with invisible brushes which stopped healing as well. as mentioned in a different thread, I made them displacements which just made them a visible solid and made things worse.

    thanks!
    Sapping stops the dispenser from functioning, but that's not even the problem as an engineer can come on over and hit it off.
    The problem is the red-tape recorder which doesn't destroy sentries, it unbuilds them. This doesn't damage them, so invincibility won't help, and because it doesn't destroy them, there is no OnDestroyed event attached. This means I can't respawn them upon breaking.

    This doesn't work. Prop_dynamics are for the most part not solid, so bullets and players walk right through them. Placing it inside a obj_dispenser also doesn't guarantee the bullets will hit the prop first.
     
  8. Pocket

    aa Pocket func_croc

    Messages:
    4,477
    Positive Ratings:
    2,205
    You could just slap down a blockbullets brush the same size and shape as the prop?
     
  9. dryerlint

    dryerlint L5: Dapper Member

    Messages:
    205
    Positive Ratings:
    183
    This is probably stupid... but would a func_nobuild work? Since sappers are considered to be buildings?
     
  10. Viperi

    aa Viperi not actually a snek

    Messages:
    962
    Positive Ratings:
    530
    No.
     
  11. Nicky

    aa Nicky Rotten Tops

    Messages:
    907
    Positive Ratings:
    1,664
    Func_nobuild just means that any engineer standing in it can not build.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  12. Frosty Scales

    aa Frosty Scales

    Messages:
    83
    Positive Ratings:
    34
    Try a func_forcefield over the dispenser. That should block one team the same way as the block bullets brush does, while letting the other team still pass through it.
     
  13. 【EmNudge】

    【EmNudge】 L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    35
    nope. neither worked when turning a blockbullets brush into a func_forcefield.

    EDIT: once the dispenser was sapped/destroyed the forcefield would work, only letting one team through that space. Never did it block bullets though
     
  14. Frosty Scales

    aa Frosty Scales

    Messages:
    83
    Positive Ratings:
    34
    Try it using tools/toolsinvisible rather than blockbullets maybe?

    Also you could try making it as a hollow box around the dispenser rather than just a single brush around it.
     
  15. 【EmNudge】

    【EmNudge】 L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    35
    It flat out doesn't block bullets. I don't think it was made to. Nothing changed.
     
  16. Frosty Scales

    aa Frosty Scales

    Messages:
    83
    Positive Ratings:
    34
    I misunderstood you; you're looking for something to block bullets but not block players. IIRC you can do this with func_physbox_multiplayer and some very specific settings. I'll edit this post with them in a few minutes. You'll still probably want to keep the func_forcefield there for the team filtering, and just have the func_physbox_multiplayer block bullets.

    Edit:
    [​IMG]
    You don't need to set any keyvalues, just these flags. Have it as a single brush convering the dispenser. The only issue I could potentially see with this is that the dispenser may not work inside of it, in which case you could just hollow it out and it should work fine.
     
    • Thanks Thanks x 1
  17. 【EmNudge】

    【EmNudge】 L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    35
    works great, but can I make it block projectiles as well, just as blockbullets does?
     
  18. Frosty Scales

    aa Frosty Scales

    Messages:
    83
    Positive Ratings:
    34
    Yep! Just add a func_clip_vphysics covering the dispenser.
     
  19. 【EmNudge】

    【EmNudge】 L4: Comfortable Member

    Messages:
    179
    Positive Ratings:
    35
    didn't seem to work. Also there is no "invulnerable" checkbox on it as there is for obj_sentrygun for some odd reason.
     
  20. Frosty Scales

    aa Frosty Scales

    Messages:
    83
    Positive Ratings:
    34
    func_clip_vphysics should be blocking projectiles like the sandman baseball etc. if that's what you mean.
    You could also set up a trigger_multiple to kill the projectile as it comes near the dispenser.