func_breakable

func_breakable #

TWHL

New parameters #

  • Most of spawnobject values are compatible with those in Sven Co-op.
  • Relative to attack option is now working as intended (was buggy in Half-Life).
  • HUD Info name - name to display when player is looking at this breakable. Requires Show HUD Info spawnflag.

New spawnflags #

  • Show HUD Info - whether to show HUD info for players looking at this breakable. This is not affected by mp_allowmonsterinfo and sp_allowmonsterinfo cvars.
  • Explosive Only - make the breakable immune to any non-explosive damage.
  • Op4Mortar only - make the breakable resistant to anything besides op4mortar shells.
  • Not solid - make breakable non-solid (can be destroyed only with trigger).
  • Smoke trails on gibs - add gray particle trails on gibs (using the default effect from the engine).
  • Transparent gibs - make gibs semi-transparent.

Bugfixes #

  • Fixed func_breakable taking damage from some attacks even if Only Trigger spawnflag is set (original Half-Life bug).