Shared definition of the cw_combineaccessmonitor entity of the Combine Devices plugin, an admin-only spawnable entity named Combine Monitor s2120.

Sets up the networked strings for the three text lines and the access level, and the status int.

Summary

Methods

Allows every tool on the monitor.
Draws the monitor and its screen: the three text lines and access level, or a flashing error.
Sets the small Combine monitor model and physics, with 1 health and the normal status.
Destroys the monitor's screen with sparks and broken glass once its health runs out.
Sets the monitor's status in the networked int 5.
Sets up the networked strings 0 to 2 (the three text lines), 3 (the access level) and int 5 (status).
Returns TRANSMIT_ALWAYS, so the monitor is networked to every client.

Methods

Allows every tool on the monitor.

Parameters

  • player
  • trace
  • tool

Returns

  • Boolean Always true

Draws the monitor and its screen: the three text lines and access level, or a flashing error.

Nearby players also see random binary on the error screen. Destroyed monitors show no screen.

On the server

Sets the small Combine monitor model and physics, with 1 health and the normal status.

On the client

Creates the render target and scanline material the monitor's screen is drawn with.

Defined in

Destroys the monitor's screen with sparks and broken glass once its health runs out.

Parameters

  • damageInfo

Sets the monitor's status in the networked int 5.

Parameters

  • int Number 0 for normal, 1 for destroyed (screen off) or 2 for the flashing error screen

Sets up the networked strings 0 to 2 (the three text lines), 3 (the access level) and int 5 (status).

The status is 0 for normal, 1 for destroyed and 2 for error.

Returns TRANSMIT_ALWAYS, so the monitor is networked to every client.

Returns

  • Number TRANSMIT_ALWAYS

Defined in