Skip to content

CensoredImage

Value struct

Shared - used by classes in Characters and skins and Loadouts, catalog and store.

Class Documentation

Edit documentation

An image with uncensored variants. The client resolves it to one texture:

  1. It goes through UncensoredImages in stored order and takes the first entry whose category passes the censorship check.
  2. If no entry passes, it uses image.

For the censorship check, the client keeps a table that lists, for each category hash, the values for which that category is allowed. It compares the table against one value that it receives with the game start data. A category fails the check when it is not in the table, when the current value is not listed for it, or when the client has no value. A failed check shows the censored image.

Properties

UncensoredImages

Map<Hash, File> = {}
Type history (2 revisions)
  • 13.15 - 16.16 Map<Hash, String>
  • since 16.17 Map<Hash, File>
Edit documentation

Replacement textures keyed by the hash of a content category. An entry is used only when its category passes the censorship check (see the class description), and the first entry that passes wins over the others and over image.

Shipped keys include tobacco and shade. Shipped data sets one entry per image, on about 30 loading-screen images.

image

File = "0x0"
Type history (2 revisions)
  • 13.15 - 16.16 String
  • since 16.17 File
Edit documentation

The texture shown when no UncensoredImages entry passes the censorship check.

Referenced by 2 classes · 3 properties