Editing
SetSectorDamage
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{ACSFunction |description=Modifies a sector's damaging floor status. |usage=''void'' '''SetSectorDamage'''(''int tag'', ''int amount'', ''str damagetype = "Unknown"'', ''int interval = 32'', ''int leaky = 0'') |parameters= *''tag'': tag of sectors to modify. *''amount'': damage to inflict per interval. Same as [[UDMF#Explanation_of_fields_2|UDMF '''sector''' '''damageamount''']] or [[ExtraData#damage|ExtraData '''sector''' '''damage''']]. *''damagetype'': [[damagetype]] ("means of death") of the harm, for purposes like obituary or resistance. Same as [[UDMF#Explanation_of_fields_2|UDMF '''sector''' '''damagetype''']] or [[ExtraData#damagemod|ExtraData '''sector''' '''damagemod''']]. *''interval'': period in tics between damages. 32 is the standard Doom time; Heretic uses 16 for lava. Same as [[UDMF#Explanation_of_fields_2|UDMF '''sector''' '''damageinterval''']] or [[ExtraData#damagemask|ExtraData '''sector''' '''damagemask''']]. *''leaky'': chance out of 256 that the damage will breach through radiation suit protection ('''PowerIronFeet'''). Doom uses 5 for its classic 20% damaging floors. Same as [[UDMF#Explanation_of_fields_2|UDMF '''sector''' '''leakiness''']] ([[ExtraData]] only offers '''LEAKYSUIT''' and '''IGNORESUIT'''). |return=None. |examples= This causes sectors tagged 1 to damage like the classic Doom lava: SetSectorDamage(1, 20, "Lava", 32, 5); This one clears all the damaging properties: SetSectorDamage(1, 0); |notes= This function strictly sets or clears the damaging floor status of a sector, which can only affect players, not monsters or other destructibles. It doesn't offer other possibilities, such as changing the '''damageflags''' ([[ExtraData#damagemask|as in ExtraData]]), so you can't for example enable lava that also produces terrain hits on damage, as in Heretic, if it wasn't this way before. For that, you can still use the "change floor texture and type" linedef specials. |id=-94 |seealso= *[[ChangeCeiling]] *[[ChangeFloor]] *[[SectorDamage]] }}
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:ACSFunction
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information