Skip to content

Labeler Redux Part 2: Revenge of the Labeler

Rob Nelson requested to merge pull/3395/labeler into Bleeding-Edge

Created by: Exxion

This adds the ability to disable certain items by using a hand labeler on them with harm intent. (The items can be enabled again by removing the label, of course.) Currently, it's only configured to disable glasses and film cameras, but it is designed to be relatively easy to change other items to be harm-labelable.

  • Adds a few variables to /atom. These do nothing with their default settings and exist only to be modified for certain objects, etc.
    • min_harm_label is the minimum length required for a harm-label to successfully disable an object. The object cannot be harm-labeled if this is zero. Since the minimum length of a label is 2, set this to 1 or 2 if any harm-label should disable an item.
    • harm_labeled is the length of the current harm-label. 0 if there isn't one, of course.
    • harm_label_examine is a list containing the messages attached to the examine message of an item if it has been harm-labeled. The string in the first position is the message attached if the harm-label is too short to be effective, while the string in the second position is the message attached if the harm-label successfully disables the item.
    • Also, harm_label_update proc is added. By default, it does nothing, and is unnecessary in most circumstances. Only used if a variable of the object has to be changed if it's harm-labeled. (For example, it updates the vision_flags of glasses.)
  • Everyone in view is alerted when something is harm-labeled, successfully or not. This does not apply to items that cannot be harm-labeled at all.
  • Again, removing the label fixes the item. (remove_label sets harm_labeled to 0 and calls update_harm_label.)

Current features:

  • All glasses that cover both eyes gain the BLIND vision_flag when successfully harm-labeled. Note that mesons and thermals still keep their special effects, though. (This was originally unintentional, but I decided it made sense and left it.) Most have min_harm_label 12.
  • All glasses that cover only one eye just lose their special effects when successfully harm-labeled. The wearer can still see, but only with their normal vision. This applies to HUDs except the sunglasses security hud. They have min_harm_label 3.
  • Pictures taken by film cameras are completely black and contain no meaningful information when the camera is harm-labeled successfully. min_harm_label is 3.

Possible future harm-labelable items:

  • Guns. (Wrap a label around the trigger or something. Would have to have very high min_harm_label.)
  • Security cameras.
  • Flashers.

Merge request reports