EVENT DAMAGECEILING

From EDukeWiki
Revision as of 02:46, 4 February 2022 by Doom64hunter (talk | contribs)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_DAMAGECEILING -1 Damage Source 2-6 values

EVENT_DAMAGECEILING is a Game Event.

This event is triggered whenever a ceiling is hit by a weapon.

This event is only executed if the tilenum was set with damageeventtile and damageeventtilerange.

THISACTOR equals the ID of the projectile or source of damage.

RETURN or the userdef return 0 is the sectnum of the ceiling being damaged.

Setting RETURN to -1 aborts the ceiling damage code, preventing hardcoded textures such as ceiling lights from being destroyed. Setting this to -1 will also prevent EVENT_DAMAGEHPLANE from executing.

The userdef return 1 through 5 equals the hitradius parameters. If there's no radius damage, return 1 equals -1.

See also EVENT_DAMAGEFLOOR, EVENT_DAMAGEWALL, EVENT_DAMAGESPRITE and EVENT_POSTDAMAGESPRITE.