# Game Configuration - Linedefs Settings

General settings:
generalizedlinedefs (boolean)
Set to true to support generalized linedef actions. This makes the gen_linedeftypes structure mandatory. Default value is false.
linedefflags (structure)
Lists the options that can be set on a linedef. In case of a map format that works with numeric flags, the values of the chosen options are added together to form the final linedef flags value (so each option should use its own bit). Note that with numeric flags, the linedef activation flags are also incorporated in the same value (see linedefactivations).
Example for numeric flags:

    linedefflags
    {
    	1 = "Impassable";
    	2 = "Block Monster";
    	4 = "Double Sided";
    	8 = "Upper Unpegged";
    	16 = "Lower Unpegged";
    	32 = "Secret";
    	64 = "Block Sound";
    }

Example for named flags:

    linedefflags
    {
    	blocking = "Impassable";
    	blockmonsters = "Block monster";
    	twosided = "Doublesided";
    	dontpegtop = "Upper unpegged";
    	dontpegbottom = "Lower unpegged";
    	secret = "Secret";
    	blocksound = "Block sound";
    }

linedefactivations (structure)
This provides a list of choices about how a linedef is activated. Only one of these choices can be selected by the user. In case of a map format that works with numeric flags, the value is part of the linedef flags value and should have it's own range of bits. To separate these bits from the linedef flag options, use the linedefactivationsfilter setting. For map formats which use named flags, you can just use names for the settings.
Example for numeric flags:

    linedefactivations
    {
    	0 = "Player walks over";
    	1024 = "Player presses Use";
    	2048 = "Monster walks over";
    	3072 = "Projectile hits";
    	4096 = "Player bumps";
    	5120 = "Projectile flies over";
    }

linedefactivationsfilter (integer)
Bit mask value that separates the linedefactivations bits from the linedefflags bits. This is required in map formats that use numeric linedef flags, because the bits share the same integer linedef flags value in the map data. This setting is ignored for map formats that use named flags.
linedefrenderstyles (structure) - GZDB only, UDMF only.
Lists the renderstyles that can be set on a linedef.
Example:

    linedefrenderstyles
    {
    	translucent = "Translucent";
    	add = "Additive";
    }

linedefflagstranslation (structure)
This is a translation between named (UDMF) linedef flags and the numeric linedef flags that your configuration uses (including linedef activation flags, if any). This structure is mandatory for all Game Configurations that do not use the UDMF map format and should not exist in Game Configurations that use the UDMF map format. Doom Builder uses this translation ot correctly work with copy/paste and prefabs (which are all converted to/from UDMF format). The setting names should be the non-UDMF flags. In case that your Game Configuration uses numeric flags map format, the setting names should be numeric. The setting values must be the equivalent UDMF flag names. The value can be prefixed with ! to indicate that the value should be inverted (for example, if a setting 32 with value '!raisable' is to be converted, the existance of the bit value 32 will set 'raisable' to false).
Example for numeric flags:

    linedefflagstranslation
    {
    	1 = "blocking";
    	2 = "blockmonsters";
    	4 = "twosided";
    	8 = "dontpegtop";
    	16 = "dontpegbottom";
    	32 = "secret";
    	64 = "blocksound";
    	512 = "repeatspecial";
    	1024 = "playeruse";
    	2048 = "monstercross";
    	3072 = "impact";
    	4096 = "playerpush";
    	5120 = "missilecross";
    	8192 = "monsteractivate";
    }

Linedef action definitions:
title (string)
The name of this linedef action.
id (string) - GZDB only.
The name used to display help page when you press the "Action Help" button in Thing or Linedef Edit windows (used in conjunction with actionspecialhelp property).
prefix (string)
Linedef action prefix ("WR", "SR", "GR" etc.). Usable only for Doom format linedef definitions.
requiresactivation (boolean) - GZDB only.
This linedef action requires activation flag(s). When this property is set to true, a warning will be shown when a user selects this linedef action and no activation flags are set.
The default value is true.
Example:

    1
    {
        title = "Polyobj Start Line";
        requiresactivation = false;
    }

Linedef action argument definitions:
See Action Argument Settings.