clothing ======== Define outfits for the male and female characters that can be used on zombies or the player. Items are provided with a probability value to define how likely they are to appear in the outfit. The file should be stored at the exact path ``media/clothing/clothing.xml`` and won't clash with other mods or the vanilla game file. The syntax of this file should be as follows: .. code-block:: xml MyOutfit my-outfit-guid 0.5 my-clothing-item-guid 0.5 my-other-clothing-item-guid my-sub-clothing-item-guid MyOutfit my-outfit-guid 0.5 my-clothing-item-guid 0.5 my-other-clothing-item-guid my-sub-clothing-item-guid File Patterns ------------- - ``**/clothing/clothing.xml`` Root Element ------------ :Element: ```` :Type: ``type_clothing`` Structure --------- The root element uses a **choice** composition, meaning it can contain any combination of the following elements: - :ref:`<> ` (optional): ```` - :ref:`<> ` (optional): ```` Root Type Details ----------------- .. _clothing.type_clothing: type_clothing ------------- :Type: Complex :Composition: choice Elements ~~~~~~~~ .. _clothing.type_clothing.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` Define an outfit with `m_FemaleOutfits `_ and `m_MaleOutfits `_ respectively for the female and male characters. If one of the two is not defined, it won't spawn naturally on the other gender in the game. Both male and female outfits can (and probably should) keep the same `m_Name `_ and `m_Guid `_ values. .. _clothing.type_clothing.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` Define an outfit with `m_FemaleOutfits `_ and `m_MaleOutfits `_ respectively for the female and male characters. If one of the two is not defined, it won't spawn naturally on the other gender in the game. Both male and female outfits can (and probably should) keep the same `m_Name `_ and `m_Guid `_ values. Types ----- .. _clothing.type_item: type_item --------- :Type: Complex :Composition: choice Elements ~~~~~~~~ .. _clothing.type_item.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` The probability of the item being selected for the outfit. Needs to be a value between 0.0 and 1.0. .. _clothing.type_item.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` The `GUID `_ of the clothing item that should be part of the outfit. You can define extra outfits thanks to the `subItems `_ parameter. .. _clothing.type_item.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` Define a sub-item for a specific clothing item used in the outfit, so other items can also be picked. .. _clothing.type_outfit: type_outfit ----------- :Type: Complex :Composition: choice Elements ~~~~~~~~ .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` The unique identifier for the outfit. Preferably keep it the same for the male and female variants. .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` The `GUID `_ of the outfit. This is the GUID associated to the clothing in the `fileGuidTable `_ and `clothingItem `_ files. To use a vanilla clothing item in your outfit, you need to redefine it in your own mod's fileGuidTable.xml file, otherwise the game will not recognize it. .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` If set to ``true``\ , the outfit will spawn with random pants or shirts, respectivement for the parameters `m_Pants `_ and `m_Top `_. When those two parameters are not set, they default to ``true``. .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` .. _clothing.type_outfit.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` .. _clothing.type_subItem: type_subItem ------------ :Type: Complex :Composition: choice Elements ~~~~~~~~ .. _clothing.type_subItem.unknown: unknown ^^^^^^^ :Occurrence: Optional (0 or 1) :Type: ``unknown`` The `GUID `_ of the clothing item that should be part of the outfit. You can define extra outfits thanks to the `subItems `_ parameter.