Editing EDF thing reference
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
For placing the thing on the map, an integer field called '''doomednum''' must be specified. For forward compatibility it has to be greater than or equal to 20000 or in the 3000-3999 range. Due to how binary WAD files format their THINGS lumps, '''doomednum''' values have to be less than 32767, though textmode representations such as [[ExtraData]] or UDMF solve this limit. | For placing the thing on the map, an integer field called '''doomednum''' must be specified. For forward compatibility it has to be greater than or equal to 20000 or in the 3000-3999 range. Due to how binary WAD files format their THINGS lumps, '''doomednum''' values have to be less than 32767, though textmode representations such as [[ExtraData]] or UDMF solve this limit. | ||
{{See|Thing type flags}} | {{See|Thing type flags}} | ||
Line 36: | Line 34: | ||
basictype <basic type qualifier> | basictype <basic type qualifier> | ||
spawnstate <frame> | spawnstate <frame> | ||
seestate <frame> | seestate <frame> | ||
Line 94: | Line 91: | ||
nukespecial <BEX codepointer mnemonic> | nukespecial <BEX codepointer mnemonic> | ||
droptype <thing type mnemonic> | droptype <thing type mnemonic> | ||
cleardropitems | cleardropitems | ||
Line 115: | Line 105: | ||
flags3 <flag list> | flags3 <flag list> | ||
flags4 <flag list> | flags4 <flag list> | ||
particlefx <particle effect flag list> | particlefx <particle effect flag list> | ||
Line 128: | Line 117: | ||
acs_spawndata {num <number> modes <mnemonic>} | acs_spawndata {num <number> modes <mnemonic>} | ||
firstdecoratestate <frame> | firstdecoratestate <frame> | ||
Line 147: | Line 126: | ||
:Default = -1 | :Default = -1 | ||
:The identification number, which makes this actor type placeable in maps. Zombieman monsters for example have '''doomednum''' 3004. Objects which don't need to be placed on the map can have '''doomednum''' -1. For EDF, recommended numbers are in the ranges 3000-3999 and 20000 up. Other numbers may be used by future versions of Eternity, so they're not safe to use. | :The identification number, which makes this actor type placeable in maps. Zombieman monsters for example have '''doomednum''' 3004. Objects which don't need to be placed on the map can have '''doomednum''' -1. For EDF, recommended numbers are in the ranges 3000-3999 and 20000 up. Other numbers may be used by future versions of Eternity, so they're not safe to use. | ||
:NOTE: you can just use the first number following the inherited class, in the title | :NOTE: you can just use the first number following the inherited class, in the title. | ||
*'''dehackednum''' | *'''dehackednum''' | ||
:Default = -1 | :Default = -1 | ||
:Fake array index number, for Dehacked patch (BEX or DEH file) compatibility. It has to be an unique number if not -1. Safe numbers are from 10000 up. | :Fake array index number, for Dehacked patch (BEX or DEH file) compatibility. It has to be an unique number if not -1. Safe numbers are from 10000 up. | ||
:NOTE: you can use the second number following the inherited class in the title | :NOTE: you can use the second number following the inherited class in the title. | ||
*'''inherits''' | *'''inherits''' | ||
:Default = (nothing) | :Default = (nothing) | ||
:Sets the thing type from which this will copy properties. All of the properties except '''dehackednum''' will be copied from the base actor type. | :Sets the thing type from which this will copy properties. All of the properties except '''dehackednum''' will be copied from the base actor type. | ||
:NOTE: you can use the class in the title properties after the colon, instead of '''inherits''' in the '''thingtype''' body | :NOTE: you can use the class in the title properties after the colon, instead of '''inherits''' in the '''thingtype''' body. | ||
*'''compatname''' | *'''compatname''' | ||
:Default = (nothing) | :Default = (nothing) | ||
Line 458: | Line 437: | ||
====Pain/Death Properties==== | ====Pain/Death Properties==== | ||
*'''bloodcolor''' | |||
:Default = 0 | |||
:Allows this thing type to have differently colored blood when particle blood effects are enabled (this does not currently have any effect on blood sprites). Currently available blood color values are as follows: | |||
Blood color Number | |||
-------------------------- | |||
Red (normal) 0 | |||
Grey 1 | |||
Green 2 | |||
Blue 3 | |||
Yellow 4 | |||
Black 5 | |||
Purple 6 | |||
White 7 | |||
Orange 8 | |||
-------------------------- | |||
*'''nukespecial''' | *'''nukespecial''' | ||
:Default = NULL | :Default = NULL | ||
Line 476: | Line 471: | ||
:removes from this thingtype's dropitem list the named EDF thingtype. Useful when inheriting. | :removes from this thingtype's dropitem list the named EDF thingtype. Useful when inheriting. | ||
*'''collectionspawn''' ''thingtype'' [, ''spchance'' [, ''coopchance'' [, ''dmchance'']]] | *'''collectionspawn''' ''thingtype'' [, ''spchance'' [, ''coopchance'' [, ''dmchance'']]] | ||
:collectionspawn defines a thingtype at which THIS thingtype will select one instance out of all instances on the map at which to spawn itself at level start | :collectionspawn defines a thingtype at which THIS thingtype will select one instance out of all instances on the map at which to spawn itself at level start. | ||
:Explanation of collectionspawn multivalue properties: | :Explanation of collectionspawn multivalue properties: | ||
:*''thingtype'': Name of the EDF thingtype at which to spawn at random. If this is invalid, this collectionspawn definition will be disregarded. | :*''thingtype'': Name of the EDF thingtype at which to spawn at random. If this is invalid, this collectionspawn definition will be disregarded. | ||
Line 484: | Line 479: | ||
*'''itemrespawnat''' ''thingtype'' | *'''itemrespawnat''' ''thingtype'' | ||
:itemrespawnat defines an EDF thingtype at which this thingtype will respawn if it becomes subject to Heretic-style item respawning. | :itemrespawnat defines an EDF thingtype at which this thingtype will respawn if it becomes subject to Heretic-style item respawning. | ||
====Flags==== | ====Flags==== | ||
*'''cflags''' | *'''cflags''' | ||
Line 540: | Line 501: | ||
:Similar to flags, but takes a different set of values with different meanings. See the [[Thing type flags]] List, for the values which can be used in this field. Remember that if whitespace or disallowed characters are used, this field's value must be enclosed in quotation marks. | :Similar to flags, but takes a different set of values with different meanings. See the [[Thing type flags]] List, for the values which can be used in this field. Remember that if whitespace or disallowed characters are used, this field's value must be enclosed in quotation marks. | ||
*'''flags4''' | *'''flags4''' | ||
:Default = "" | :Default = "" | ||
:Similar to flags, but takes a different set of values with different meanings. See the [[Thing type flags]] List, for the values which can be used in this field. Remember that if whitespace or disallowed characters are used, this field's value must be enclosed in quotation marks. | :Similar to flags, but takes a different set of values with different meanings. See the [[Thing type flags]] List, for the values which can be used in this field. Remember that if whitespace or disallowed characters are used, this field's value must be enclosed in quotation marks. | ||
Line 590: | Line 548: | ||
*'''translation''' | *'''translation''' | ||
:Default = 0 | :Default = 0 | ||
:Sets a translation for the thing's sprite. Translation tables are 256-byte lumps which can be used to remap any range of colors in a sprite. When this field defaults, no translation will be used. Otherwise, you may either provide a number to access one of the internal player translation tables, or you may provide the name of a translation lump, which must be found | :Sets a translation for the thing's sprite. Translation tables are 256-byte lumps which can be used to remap any range of colors in a sprite. When this field defaults, no translation will be used. Otherwise, you may either provide a number to access one of the internal player translation tables, or you may provide the name of a translation lump, which must be found between T_START and T_END markers amongst one of the currently loaded wad files. Numeric values for player translations are as follows. All of the player translations remap the pure green range. | ||
Number Color | |||
------------------ | |||
1 Indigo | |||
2 Brown | |||
3 Red | |||
4 Tomato | |||
5 Dirt | |||
6 Blue | |||
7 Gold | |||
8 Felt | |||
9 Black | |||
10 Purple | |||
11 "Vomit" | |||
12 Pink | |||
13 Cream | |||
14 Yellow | |||
------------------ | |||
*'''tranmap''' | *'''tranmap''' | ||
:Default: not used | :Default: not used | ||
:This is a [[translucency map]] lump name to use to render the thing. | :This is a [[translucency map]] lump name to use to render the thing. As usual, such a lump needs to be between ''T_START'' and ''T_END'' in the wad. Useful if you want custom translucency effects, not easily available with simple parameterized means. | ||
*'''skinsprite''' | *'''skinsprite''' | ||
:Default = "noskin" | :Default = "noskin" | ||
:The skinsprite field defines a sprite that will be used to override the sprite value in any frame a thing of this type enters. This allows the creation of thingtypes which behave identically but look different without the creation of any new frames. Note that when things are crushed into gibs, the skinsprite is cleared at that time. If an Archvile resurrects such a thing, the proper skinsprite is then restored. | :The skinsprite field defines a sprite that will be used to override the sprite value in any frame a thing of this type enters. This allows the creation of thingtypes which behave identically but look different without the creation of any new frames. Note that when things are crushed into gibs, the skinsprite is cleared at that time. If an Archvile resurrects such a thing, the proper skinsprite is then restored. | ||
*'''defaultsprite''' | *'''defaultsprite''' | ||
:Default = the object's first spawn state's sprite | :Default = the object's first spawn state's sprite | ||
Line 626: | Line 586: | ||
:Default = 1.0 | :Default = 1.0 | ||
:Sets how much the vertical component of the sprite is to be scaled. | :Sets how much the vertical component of the sprite is to be scaled. | ||
====ACS Spawn Data Sub-Block==== | ====ACS Spawn Data Sub-Block==== |