- added 'damage' to the actor variables exported to DECORATE's expression

evaluator.
- fixed: solid corpses could block ripper missile that originally killed them.


SVN r1520 (trunk)
This commit is contained in:
Christoph Oelckers 2009-04-04 09:28:10 +00:00
parent 4376c6b415
commit 9d47afb304
6 changed files with 16 additions and 1 deletions

View file

@ -1,4 +1,9 @@
April 2, 2009 April 4, 2009 (Changes by Graf Zahl)
- added 'damage' to the actor variables exported to DECORATE's expression
evaluator.
- fixed: solid corpses could block ripper missile that originally killed them.
April 2, 2009
- Fixed: Doom's status bar was lacking its default face. - Fixed: Doom's status bar was lacking its default face.
- Fixed: Custom skin face graphics were not added to the texture manager. - Fixed: Custom skin face graphics were not added to the texture manager.
- Fixed: UseHealthItems() gave you health equal to the number of items in - Fixed: UseHealthItems() gave you health equal to the number of items in

View file

@ -105,5 +105,6 @@ struct IWADInfo
}; };
extern const IWADInfo IWADInfos[NUM_IWAD_TYPES]; extern const IWADInfo IWADInfos[NUM_IWAD_TYPES];
extern EIWADType gameiwad;
#endif #endif

View file

@ -46,6 +46,8 @@ IMPLEMENT_CLASS (APowerup)
bool APowerupGiver::Use (bool pickup) bool APowerupGiver::Use (bool pickup)
{ {
if (PowerupType == NULL) return true; // item is useless
APowerup *power = static_cast<APowerup *> (Spawn (PowerupType, 0, 0, 0, NO_REPLACE)); APowerup *power = static_cast<APowerup *> (Spawn (PowerupType, 0, 0, 0, NO_REPLACE));
if (EffectTics != 0) if (EffectTics != 0)

View file

@ -834,6 +834,11 @@ bool PIT_CheckThing (AActor *thing, FCheckPosition &tm)
{ {
return true; return true;
} }
// Check for rippers passing through corpses
if ((thing->flags & MF_CORPSE) && (tm.thing->flags2 & MF2_RIP) && !(thing->flags & MF_SHOOTABLE))
{
return true;
}
int clipheight; int clipheight;

View file

@ -72,6 +72,7 @@ DEFINE_MEMBER_VARIABLE(z, AActor)
DEFINE_MEMBER_VARIABLE(momx, AActor) DEFINE_MEMBER_VARIABLE(momx, AActor)
DEFINE_MEMBER_VARIABLE(momy, AActor) DEFINE_MEMBER_VARIABLE(momy, AActor)
DEFINE_MEMBER_VARIABLE(momz, AActor) DEFINE_MEMBER_VARIABLE(momz, AActor)
DEFINE_MEMBER_VARIABLE(Damage, AActor)
//========================================================================== //==========================================================================
// //

View file

@ -33,6 +33,7 @@ ACTOR Actor native //: Thinker
native int tid; native int tid;
native int TIDtoHate; native int TIDtoHate;
native int waterlevel; native int waterlevel;
native int damage;
native fixed_t x; native fixed_t x;
native fixed_t y; native fixed_t y;
native fixed_t z; native fixed_t z;