MAPINFO: Difference between revisions

606 bytes added ,  21 June 2023
Add quotes around the first two parameters of AddCustomData
(Documented Zan's MAPINFO features)
Tag: Source edit
 
(Add quotes around the first two parameters of AddCustomData)
Tag: Source edit
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{SHORTDESC:Special lump for defining map properties}}
'''{{Zdoomwiki|MAPINFO}}''' is a special lump that allows defining information about maps, and configuring other game settings. It has received a few extensions in Zandronum:
'''{{Zdoomwiki|MAPINFO}}''' is a special lump that allows defining information about maps, and configuring other game settings. It has received a few extensions in Zandronum:


== Map defition ==
== Map definition ==
:See also: {{Zdoomwiki|MAPINFO/Map definition}}
:See also: {{Zdoomwiki|MAPINFO/Map definition}}


Line 21: Line 22:
|}
|}


== GameInfo defition ==
== GameInfo definition ==
:See also: {{Zdoomwiki|MAPINFO/GameInfo definition}}
:See also: {{Zdoomwiki|MAPINFO/GameInfo definition}}


Line 28: Line 29:
! Description
! Description
|-
|-
! <tt>ForceSpawnEventScripts</tt>
! <tt>AddCustomData = "<name>", "<type>", <default></tt>
| Forces [[EVENT scripts]] of type <tt>GAMEEVENT_ACTOR_SPAWNED</tt> to run for all actors, except for those with the <tt>NOSPAWNEVENTSCRIPT</tt> [[DECORATE#Actor_Flags|actor flag]].
| {{Devfeature|3.2|alpha}} Add a custom player data field for the scoreboard. <tt>name</tt> is the name of your field. <tt>type</tt> is either <tt>int</tt>, <tt>bool</tt>, <tt>float</tt>, <tt>string</tt>, <tt>color</tt>, or <tt>texture</tt>. <tt>default</tt> is the default value of your field.
|-
|-
! <tt>ForceDamageEventScripts</tt>
! <tt>ForceSpawnEventScripts = <bool></tt>
| Forces [[EVENT scripts]] of type <tt>GAMEEVENT_ACTOR_DAMAGED</tt> to run for all actors, except for those with the <tt>NODAMAGEEVENTSCRIPT</tt> [[DECORATE#Actor_Flags|actor flag]].
| Forces [[EVENT scripts]] of type <tt>GAMEEVENT_ACTOR_SPAWNED</tt> to run for all actors, except for those with the <tt>NOSPAWNEVENTSCRIPT</tt> [[DECORATE#Actor_flags|actor flag]], actors that have either the <tt>NOBLOCKMAP</tt> (except projectiles and puffs) or <tt>NOSECTOR</tt> flags enabled, or inherit from {{Zdoomwiki|Classes:HexenArmor|HexenArmor}}.
|-
!<tt>ForceDamageEventScripts = <bool></tt>
|Forces [[EVENT scripts]] of type <tt>GAMEEVENT_ACTOR_DAMAGED</tt> to run for all actors, except for those with the <tt>NODAMAGEEVENTSCRIPT</tt> [[DECORATE#Actor_flags|actor flag]].
|}
|}


[[Category: Special lumps]]
[[Category: Special lumps]]