Radiation

Adds radiation system.

By SchwarzKruppzo

Modules

Hooks hooks
Main file of the Radiation plugin, which aliases it as cwRadSystem and implements containment zones that irradiate the players inside them, radiation sickness and the Geiger counter.

Commands

Registers the /ContainmentBoxEndPos superadmin command of the Radiation plugin, which sets the end corner of the box containment zone being placed to where the player is looking.
Registers the /ContainmentBoxPlace superadmin command of the Radiation plugin, which adds a box containment zone with the given radiation level between the corners set with /ContainmentBoxStartPos and /ContainmentBoxEndPos.
Registers the /ContainmentBoxStartPos superadmin command of the Radiation plugin, which sets the start corner of the box containment zone being placed to where the player is looking.
Registers the /ContainmentRemove superadmin command of the Radiation plugin, which removes the containment zones whose centre or corner lies within a radius, 64 units by default, of where the player is looking.
Registers the /ContainmentSave superadmin command of the Radiation plugin, which saves the containment zones of the current map with cwRadSystem:SaveAreas.
Registers the /ContainmentSpherePlace superadmin command of the Radiation plugin, which adds a sphere containment zone with the given radius and radiation level where the player is looking.

Items

Filter item
Defines the Filter item (filter) of the Radiation plugin, a gas mask filter with an energy charge that is swapped into the player's equipped gasmask item, or into the cp_filter character data for Civil Protection.
Defines the Geiger Counter item (geiger_counter) of the Radiation plugin, which has no use action and lets its carrier hear and see radiation levels through cwRadSystem:PlayerHasGeigerCounter.
Defines the PDB User Manual item (pdb_book) of the Radiation plugin, a book that raises the reader's Medical attribute to 50 when it is lower, is not used up, and teaches Overwatch soldiers nothing.
PDB-6 item
Defines the PDB-6 item (rad_checker) of the Radiation plugin, a device that tells a player with at least half of the Medical attribute the radiation dose (radlevel) of the player or NPC they are looking at from close up.