Editing Thinggroup
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 1: | Line 1: | ||
'''thinggroup''' is an [[EDF]] block which groups separate [[thingtype]]s into categories and gives them special flags, without also subjecting them to inheritance. The original motivation for this flag was extending the hell knight and baron of hell 'alliance' behaviour, where they can't harm each other by projectiles, but others monsters of separate species are always affected. | '''thinggroup''' is an [[EDF]] block which groups separate [[thingtype]]s into categories and gives them special flags, without also subjecting them to inheritance. The original motivation for this flag was extending the hell knight and baron of hell 'alliance' behaviour, where they can't harm each other by projectiles, but others monsters of separate species are always affected. | ||
==Syntax== | ==Syntax== | ||
Line 14: | Line 12: | ||
''Name'' is the name of this category. Currently it's merely descriptive, but must be unique per '''thinggroup'''. | ''Name'' is the name of this category. Currently it's merely descriptive, but must be unique per '''thinggroup'''. | ||
Each ''thingtypeX'' is the mnemonic of a [[thingtype]] already defined in EDF. In order for this definition to have any effect on gameplay, you must set '''flags''' to any of the following values, joined by | ( | Each ''thingtypeX'' is the mnemonic of a [[thingtype]] already defined in EDF. In order for this definition to have any effect on gameplay, you must set '''flags''' to any of the following values, joined by | (as in EDF flag settings): | ||
* '''PROJECTILEALLIANCE''': this prevents monsters from '''types''' from harming each other with projectiles. Hell knights and barons of hell have this flag set in the base things.edf. | * '''PROJECTILEALLIANCE''': this prevents monsters from '''types''' from harming each other with projectiles. Hell knights and barons of hell have this flag set in the base things.edf. | ||
* '''DAMAGEIGNORE''': monsters in the '''types''' list may be damaged by each other, but will not infight as a result. This generalizes the deprecated BOSSIGNORE '''thingtype''' flag. It will ''not'' prevent monsters from infighting others of the ''same'' species; for that, use a new thingtype flag (see below). | * '''DAMAGEIGNORE''': monsters in the '''types''' list may be damaged by each other, but will not infight as a result. This generalizes the deprecated BOSSIGNORE '''thingtype''' flag. It will ''not'' prevent monsters from infighting others of the ''same'' species; for that, use a new thingtype flag (see below). | ||
* '''INHERITED''': only has meaning if any of the other flags above is set. It makes it so any thingtypes inheriting the ones from the list are also included in this group. By default they don't inherit. | * '''INHERITED''': only has meaning if any of the other flags above is set. It makes it so any thingtypes inheriting the ones from the list are also included in this group. By default they don't inherit. | ||
Line 32: | Line 29: | ||
==Other infighting-related properties== | ==Other infighting-related properties== | ||
As infighting is a rather complex rule in Doom and related games, there are also other means to customize it: | As infighting is a rather complex rule in Doom and related games, there are also other means to customize it: | ||
* '''thingtype''' damagefactor attribute "immune". Unlike "damagefactor ''Xyz'', 0", this also prevents pain, thrusting and retaliation. Useful to prevent friendly fire and infighting for arbitrary [[ | * '''thingtype''' damagefactor attribute "immune". Unlike "damagefactor ''Xyz'', 0", this also prevents pain, thrusting and retaliation. Useful to prevent friendly fire and infighting for arbitrary [[damage types]] (means of death) between monsters. Example: | ||
thingdelta | thingdelta | ||
{ | { | ||
Line 45: | Line 42: | ||
:*'''HARMSPECIESMISSILE''', which allows monsters of the same species to be affected by each other's projectiles, overriding the default immunity from classic Doom. | :*'''HARMSPECIESMISSILE''', which allows monsters of the same species to be affected by each other's projectiles, overriding the default immunity from classic Doom. | ||
:*'''FRIENDFOEMISSILE''', which makes projectiles shot by friends harm enemies of the same species, and viceversa. Default [[MBF]] behaviour makes them immune due to being the same species. | :*'''FRIENDFOEMISSILE''', which makes projectiles shot by friends harm enemies of the same species, and viceversa. Default [[MBF]] behaviour makes them immune due to being the same species. | ||