Sector_SetDamage

From ZDoom Wiki

Jump to: navigation, search

214:Sector_SetDamage (tag, amount, mod)

tag: Tag of affected sector 
amount: Amount of damage to applay 
mod: Means-of-death identifier :- 
       0  = MOD_UNKNOWN 
       12 = MOD_WATER 
       13 = MOD_SLIME 
       14 = MOD_LAVA 
       15 = MOD_CRUSH 
       16 = MOD_TELEFRAG 
       17 = MOD_FALLING 
       18 = MOD_SUICIDE 
       19 = MOD_BARREL 
       20 = MOD_EXIT 
       21 = MOD_SPLASH 
       22 = MOD_HIT 

Sets the amount of damage done to a player in a sector. This is in addition to whatever is specified by the sector's special. Damage amount below 20 will only hurt the player if he doesn't have an environment suit. Damages between 20-49 will occasionally hurt the player even with an environment suit on. Damages of 50 and above will always hurt the player unless he is in god mode.

There are some newer built-in damage types for which no MOD code exists and custom damage types are identified by names; neither can be used with this special. If you want to attach this special outside a script (e.g., to a line or a thing) but need to use a damage type that is recognized by the game by name, but is not listed above, set the line/thing special to run a script instead and use the SectorDamage ACS function in the script.

Personal tools