mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-15 17:02:05 +00:00
153a2a4c2c
failed to start the demo. - Added a MF5_BRIGHT flag to always render an actor fullbright. - Fixed: Calling Door_Animated with a non-zero tag created a new thinker for each two-sided line of the sector. - Added Karate Chris's submission for making 'spray' a cheat. - Added CO2's default parameter additions for several Doom code pointers submission. - Added CO2's A_RemoveMaster/A_RemoveChildren submission. - Added Blzut3's SBARINFO replacement for the Doom statusbar. - Fixed: SBarInfo still displayed the wrong bar for height 0 - Added A_KillSiblings and A_DamageSiblings code pointers. - added MaxAbsorb and MaxFullAbsorb properties for Armor. SVN r1304 (trunk)
40 lines
821 B
C++
40 lines
821 B
C++
/*
|
|
#include "actor.h"
|
|
#include "info.h"
|
|
#include "p_local.h"
|
|
#include "p_spec.h"
|
|
#include "p_enemy.h"
|
|
#include "a_action.h"
|
|
#include "thingdef/thingdef.h"
|
|
*/
|
|
|
|
//
|
|
// A_KeenDie
|
|
// DOOM II special, map 32.
|
|
// Uses special tag 666 by default.
|
|
//
|
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_KeenDie)
|
|
{
|
|
CALL_ACTION(A_NoBlocking, self);
|
|
|
|
// scan the remaining thinkers to see if all Keens are dead
|
|
AActor *other;
|
|
TThinkerIterator<AActor> iterator;
|
|
const PClass *matchClass = self->GetClass ();
|
|
|
|
while ( (other = iterator.Next ()) )
|
|
{
|
|
if (other != self && other->health > 0 && other->IsA (matchClass))
|
|
{
|
|
// other Keen not dead
|
|
return;
|
|
}
|
|
}
|
|
|
|
ACTION_PARAM_START(1);
|
|
ACTION_PARAM_INT(doortag, 0);
|
|
|
|
EV_DoDoor (DDoor::doorOpen, NULL, NULL, doortag, 2*FRACUNIT, 0, 0, 0);
|
|
}
|
|
|
|
|