EDF damagetype reference: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Added means of death)
No edit summary
Line 5: Line 5:
   obituary    <string>
   obituary    <string>
   obituaryself <string>
   obituaryself <string>
   sourceless  <true/false
   sourceless  <true/false>
  }
  }
==Explanation==
*'''num''': the identifier of the damage type, useful for parameterized specials such as [[DamageThing]] or [[Thing_Damage]].
*'''obituary''': the text to show when a player is killed by someone or something else using this damage type. If the attacker (usually a monster) using ammunition of this damage type has its dedicated obituary, then that obituary will be used. Otherwise this obituary will be used. If this isn't defined, it will simply write "Player died.".
*'''obituaryself''': text to show when a player is killed by themselves. If missing, and '''sourceless''' is false, it will just say "Player died.".
*'''sourceless''': (default false) set it to true if you want the damagetype to belong to sourceless (environmental) attackers.


==Default damage types (means of death)==
==Default damage types (means of death)==

Revision as of 14:02, 26 March 2017

Back to EDF
damagetype
{
  num          <integer>
  obituary     <string>
  obituaryself <string>
  sourceless   <true/false>
}

Explanation

  • num: the identifier of the damage type, useful for parameterized specials such as DamageThing or Thing_Damage.
  • obituary: the text to show when a player is killed by someone or something else using this damage type. If the attacker (usually a monster) using ammunition of this damage type has its dedicated obituary, then that obituary will be used. Otherwise this obituary will be used. If this isn't defined, it will simply write "Player died.".
  • obituaryself: text to show when a player is killed by themselves. If missing, and sourceless is false, it will just say "Player died.".
  • sourceless: (default false) set it to true if you want the damagetype to belong to sourceless (environmental) attackers.

Default damage types (means of death)

There are several built-in damage types, as defined in base/things.edf. They're useful in specials like DamageThing and Thing_Damage:

  • 0: (Unknown)
  • 1: Fist
  • 2: Pistol
  • 3: Shotgun
  • 4: Chaingun
  • 5: Rocket
  • 6: R_Splash
  • 7: Plasma
  • 8: BFG
  • 9: BFG_Splash
  • 10: Chainsaw
  • 11: SShotgun
  • 12: Slime
  • 13: Lava
  • 14: Crush
  • 15: Telefrag
  • 16: Falling
  • 17: Suicide
  • 18: Barrel
  • 19: Splash
  • 20: Hit
  • 21: BFG11k_Splash
  • 22: BetaBFG
  • 23: BFGBurst
  • 24: PlayerMisc
  • 25: Grenade
  • 26: Quake
  • 27: Fire