mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-01 21:00:44 +00:00
0e009ff18a
as well inherit directly from AActor. - Converted Strife's Coin, Oracle, Macil and StrifeHumanoid to DECORATE. Also moved the burning hand states to StrifePlayer where they really belong. SVN r1125 (trunk)
34 lines
989 B
C++
34 lines
989 B
C++
#include "actor.h"
|
|
#include "m_random.h"
|
|
#include "a_action.h"
|
|
#include "p_local.h"
|
|
#include "p_enemy.h"
|
|
#include "s_sound.h"
|
|
#include "a_strifeglobal.h"
|
|
|
|
// Macil (version 2) ---------------------------------------------------------
|
|
|
|
class AMacil1 : public AActor
|
|
{
|
|
DECLARE_CLASS (AMacil1, AActor)
|
|
public:
|
|
int TakeSpecialDamage (AActor *inflictor, AActor *source, int damage, FName damagetype);
|
|
};
|
|
|
|
IMPLEMENT_CLASS (AMacil1)
|
|
|
|
//============================================================================
|
|
//
|
|
// AMacil2 :: TakeSpecialDamage
|
|
//
|
|
// Macil is invulnerable to the first stage Sigil.
|
|
//
|
|
//============================================================================
|
|
|
|
int AMacil1::TakeSpecialDamage (AActor *inflictor, AActor *source, int damage, FName damagetype)
|
|
{
|
|
if (inflictor != NULL && inflictor->GetClass()->TypeName == NAME_SpectralLightningV1)
|
|
return -1;
|
|
|
|
return Super::TakeSpecialDamage(inflictor, source, damage, damagetype);
|
|
}
|