mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-01 21:00:44 +00:00
760f70d3f1
so that all files are included by a central one instead of compiling each one separately. This speeds up the compilation process by 25% when doing a complete rebuild in Visual C. - Cleaned up more header dependencies. SVN r1226 (trunk)
35 lines
975 B
C++
35 lines
975 B
C++
/*
|
|
#include "actor.h"
|
|
#include "m_random.h"
|
|
#include "a_action.h"
|
|
#include "p_local.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);
|
|
}
|