User:SirYodaJedi/Sandbox

From Valve Developer Community
< User:SirYodaJedi
Revision as of 09:57, 6 June 2024 by SirYodaJedi (talk | contribs) (Created page with "WAD JSON for ericw-tools concept <source lang=json> { "AAALADDER" : { // valid instances of "contents"; either: // - a case-insensitive string containing the textu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WAD JSON for ericw-tools concept

{
"AAALADDER" :
{
    // valid instances of "contents"; either:
    // - a case-insensitive string containing the textual representation
    //   of the content type
    // - a number
    // It cannot be an array, due to BSP format limitations
    "contents": -16,
    "contents": "LADDER",

    // valid instances of "flags"; either:
    // - a case-insensitive string containing the textual representation
    //   of the surface flags
    // - a number
    // - an array of the two above, which will be OR'd together
    "flags": [ "SPECIAL", 16 ],
    "flags": 24,
    "flags": "SPECIAL",

    // Array of compiler-specific flags that aren't written to the actual 
    "compile_flags": [ "NODRAW", "NOCULL" ],

    // array of which ambients to affect, instead of basing upon texture prefix ("NONE" to not have ambients)
    "ambients": [ "SKY", "WATER" ],

    "contents_priority": 1, // which priority group to use for determining brush contents when mismatch
    "hulls": [ 1, 3], // which clipping hulls are affected
    "light": 1234, // Texlight brightness
    "subdivide_size": 48, // override subdivision size

    // defaults if not defined in entities other than worldspawn
    "_phong_angle": "44",
    "_shadow": "-1",
    

    // width/height are allowed to be supplied in order to
    // have the editor treat the surface as if its dimensions
    // are these rather than the ones pulled in from the image
    // itself. they must be integers.
    "width": 64,
    "height": 64,

    // color to use for lighting bounces. if specified, this
    // is used instead of averaging the pixels of the image.
    "color": [255, 128, 64]
}
}