A_AlienSpectreDeath

From ZDoom Wiki
Jump to navigation Jump to search

A_AlienSpectreDeath
(no parameter)

Calls A_NoBlocking. If the calling actor is the last of its type on the map, and there is at least one living player, does a number of other things, depending on the calling actor's nature:

  • AlienSpectre1 (The Programmer's spectre): performs Floor_LowerToLowest on sector tagged 999, plays the sound "svox/voc95" on the VOICE channel, and sets the player's log to 95.
  • AlienSpectre2 (The Bishop's spectre): prints the "TXT_KILLED_BISHOP" string ("You Killed The Bishop!"), gives the player a QuestItem21, plays the sound "svox/voc74" on the VOICE channel, and sets the player's log to 74.
  • AlienSpectre3 (The Oracle's spectre): performs Door_Open on sector tagged 222 with a speed of 8 units, prints the "TXT_KILLED_ORACLE" string ("You've Killed The Oracle!"), kills all remaining Oracle actors, and gives the player a QuestItem23. If the player also has a QuestItem21, gives it a QuestItem22 as well. If the player has a QuestItem24 in inventory, plays the sound "svox/voc85" on the VOICE channel, and sets the player's log to 85. Otherwise, plays the sound "svox/voc87" and sets the player's log to 87.
  • AlienSpectre4 (Macil's spectre): Prints the "TXT_KILLED_MACIL" string ("You Killed Macil!") and gives the player a QuestItem24. If the player has a QuestItem25, plays the sound "svox/voc106" on the VOICE channel, and sets the player's log to 106. Otherwise, plays the sound "svox/voc79" and sets the player's log to 79.
  • AlienSpectre5 (The Loremaster's spectre): performs Floor_LowerToLowest on sector tagged 666, prints the "TXT_KILLED_LOREMASTER" string ("You've Killed the Loremaster!"), gives the player a QuestItem26 and, if not in multiplayer, both an UpgradeAccuracy and an UpgradeStamina. If the player has a Sigil with five pieces, plays the sound "svox/voc85" on the VOICE channel, and sets the player's log to 85. Otherwise, plays the sound "svox/voc83" and sets the player's log to 83.
  • Any other class: does nothing else.

This codepointer is restricted to AlienSpectre1 and derived classes.