GZDoom internally uses the ZScript definition above. The Super Armor provided by the Powerful trait makes the skill entirely safe to use, as even if you miss and do not gain the additional 3 seconds of Super Armor, you will be able to move while its effect lingers for a few frames. DECORATE is still supported but no longer used by GZDoom. The skill travels forward a significant distance, and will stop the moment it hits an enemy. Note: This is legacy code, kept here for reference only. Note: The ZScript definition below is for reference and may be different in the current version of GZDoom.The most up-to-date version of this code can be found here. In ZDoom, this is subjected to a compatibility option, accessible through the compat_limitpain console variable or the menu system. This did not differentiate between lost souls spawned by pain elementals and 'independent' lost souls placed directly in the map.
In vanilla Doom, if the total number of lost souls in the level was greater than 20, the pain elemental's attack would fail, putting a limit at 21 lost souls. Note that when a pain elemental dies, three lost souls spawn burst out of it. The pain elemental is unique in that it does not have an attack of its own, instead it spits lost souls to do its bidding for them. Pain elementals are similar in appearance to cacodemons, but are brown and have stubby arms.