mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 15:44:24 +00:00
1bd6ac028b
- Added a PickupMessage property to the internal actor parser, replaced most of the virtual PickupMessages with it and placed the code that reads the metadata into AInventory::PickupMessage. Now the PickupMessage method is truly virtual and I can do: Added a Health.LowMessage property to define double message items like Doom's medikit in DECORATE. - Since defining Mana3 as an ammo type and then overriding the TryPickup method means that this item defeats all ammo checks in the game it might as well be defined as a CustomInventory item. At least this fixes the amount given in easy and very hard skills. - Converted all ammo items to DECORATE. - Changed internal property setting of ammo types and sister weapons to use fuglyname as for DECORATE definitions. This allows to export the ammo definitions into DECORATE definitions without doing it for the weapons themselves. - Replaced obituary methods with actor properties. - Fixed: The secret map check didn't work for maps inside Zips. SVN r196 (trunk)
51 lines
920 B
C++
51 lines
920 B
C++
#ifndef __A_HERETICGLOBAL_H__
|
|
#define __A_HERETICGLOBAL_H__
|
|
|
|
#include "info.h"
|
|
#include "a_pickups.h"
|
|
|
|
class AHereticWeapon : public AWeapon
|
|
{
|
|
DECLARE_STATELESS_ACTOR (AHereticWeapon, AWeapon)
|
|
};
|
|
|
|
class APhoenixFX1 : public AActor
|
|
{
|
|
DECLARE_ACTOR (APhoenixFX1, AActor)
|
|
public:
|
|
int DoSpecialDamage (AActor *target, int damage);
|
|
};
|
|
|
|
class APhoenixPuff : public AActor
|
|
{
|
|
DECLARE_ACTOR (APhoenixPuff, AActor)
|
|
};
|
|
|
|
class ASorcerer2 : public AActor
|
|
{
|
|
DECLARE_ACTOR (ASorcerer2, AActor)
|
|
public:
|
|
void Serialize (FArchive &arc);
|
|
void BeginPlay ();
|
|
|
|
int NumBossSpots;
|
|
AActor *FirstBossSpot;
|
|
};
|
|
|
|
class AWizard : public AActor
|
|
{
|
|
DECLARE_ACTOR (AWizard, AActor)
|
|
public:
|
|
void NoBlockingSet ();
|
|
};
|
|
|
|
void P_DSparilTeleport (AActor *actor);
|
|
|
|
class AStaffPuff : public AActor
|
|
{
|
|
DECLARE_ACTOR (AStaffPuff, AActor)
|
|
public:
|
|
void BeginPlay ();
|
|
};
|
|
|
|
#endif //__A_HERETICGLOBAL_H__
|