hl2_combinemonitor entity
Entity defined in plugin/entities/entities/hl2_combinemonitor
Part of Combine Civil Authority
Summary
Methods
Methods
ENT:DrawTranslucent()
client gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/cl_init.lua:85Draws the monitor and its screen for players within 1000 units.
The screen shows a waiting message when off and the networked civil record when on. Anti-citizens get a red error screen with scrolling noise, drawn only within 300 units.
ENT:Initialize()
shared gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/init.lua:13On the server
Sets up the monitor's frozen physics and starts it switched off.
On the client
Creates the render target and scanline material the monitor's screen is drawn with.
Defined in
ENT:SetPlayer(player)
server gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/init.lua:81Networks a player's civil record to clients for the monitor to display.
The record holds the name, citizen ID, loyalty, crime and work points, a work level from 1 to 10 derived from the work points, citizen status, residence and job.
Parameters
- player Player The player whose record is shown
ENT:SpawnFunction(client, trace)
server gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/init.lua:35Spawns the monitor from the spawn menu where the player looks, facing out of the surface.
Parameters
- client
- trace
Returns
- Entity The new monitor
ENT:Think()
server gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/init.lua:61Switches the monitor off once its six seconds are up, checking once a second.
ENT:TurnOff()
server gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/init.lua:48Switches the monitor's screen off with a blip.
ENT:TurnOn()
server gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/init.lua:54Switches the monitor's screen on with a blip for six seconds.
ENT:Use(player)
server gamemodes/cwhl2rp/plugins/cca/plugin/entities/entities/hl2_combinemonitor/init.lua:124Shows a non-Combine player's civil record on the monitor when it is switched off.
Parameters
- player