User:Ashe/Sandbox

From Valve Developer Community
Revision as of 17:05, 12 June 2023 by Ashe (talk | contribs) (Created page with "== Block bullets but not players == This trick allows to create a fake clipbrush that works as toolsblockbullets but is not solid to players using func_physbox_multiplayer...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Block bullets but not players

This trick allows to create a fake clipbrush that works as toolsblockbullets but is not solid to players using func_physbox_multiplayer.

Creating the brush

  • Create a func_physbox_multiplayer (maybe just func_physbox) brush entity.
  • Flags:
    • Start Asleep
    • Debris - Don't collide with the player or other 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