mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- Added Skulltag's PUFFGETSOWNER flag.
SVN r967 (trunk)
This commit is contained in:
parent
0869b51928
commit
99f55e8b8f
4 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
May 12, 2008 (Changes by Graf Zahl)
|
May 12, 2008 (Changes by Graf Zahl)
|
||||||
|
- Added Skulltag's PUFFGETSOWNER flag.
|
||||||
- Fixed: Parsing sector special bit masks must be done backwards so that later
|
- Fixed: Parsing sector special bit masks must be done backwards so that later
|
||||||
definitions take precedence.
|
definitions take precedence.
|
||||||
- Added base translation tables for UDMF compatibility maps which only should
|
- Added base translation tables for UDMF compatibility maps which only should
|
||||||
|
|
|
@ -300,6 +300,7 @@ enum
|
||||||
MF5_NOINFIGHTING = 0x00100000, // This actor doesn't switch target when it's hurt
|
MF5_NOINFIGHTING = 0x00100000, // This actor doesn't switch target when it's hurt
|
||||||
MF5_NOINTERACTION = 0x00200000, // Thing is completely excluded from any gameplay related checks
|
MF5_NOINTERACTION = 0x00200000, // Thing is completely excluded from any gameplay related checks
|
||||||
MF5_NOTIMEFREEZE = 0x00400000, // Actor is not affected by time freezer
|
MF5_NOTIMEFREEZE = 0x00400000, // Actor is not affected by time freezer
|
||||||
|
MF5_PUFFGETSOWNER = 0x00800000, // [BB] Sets the owner of the puff to the player who fired it
|
||||||
|
|
||||||
|
|
||||||
// --- mobj.renderflags ---
|
// --- mobj.renderflags ---
|
||||||
|
|
|
@ -2769,6 +2769,9 @@ AActor *P_LineAttack (AActor *t1, angle_t angle, fixed_t distance,
|
||||||
puff->Destroy();
|
puff->Destroy();
|
||||||
puff = NULL;
|
puff = NULL;
|
||||||
}
|
}
|
||||||
|
// [BB] If the puff came from a player, set the target of the puff to this player.
|
||||||
|
if ( puff && (puff->flags5 & MF5_PUFFGETSOWNER) && t1 && t1->player )
|
||||||
|
puff->target = t1;
|
||||||
return puff;
|
return puff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,6 +240,7 @@ static flagdef ActorFlags[]=
|
||||||
DEFINE_FLAG(MF5, NOINFIGHTING, AActor, flags5),
|
DEFINE_FLAG(MF5, NOINFIGHTING, AActor, flags5),
|
||||||
DEFINE_FLAG(MF5, NOINTERACTION, AActor, flags5),
|
DEFINE_FLAG(MF5, NOINTERACTION, AActor, flags5),
|
||||||
DEFINE_FLAG(MF5, NOTIMEFREEZE, AActor, flags5),
|
DEFINE_FLAG(MF5, NOTIMEFREEZE, AActor, flags5),
|
||||||
|
DEFINE_FLAG(MF5, PUFFGETSOWNER, AActor, flags5), // [BB] added PUFFGETSOWNER
|
||||||
|
|
||||||
// Effect flags
|
// Effect flags
|
||||||
DEFINE_FLAG(FX, VISIBILITYPULSE, AActor, effects),
|
DEFINE_FLAG(FX, VISIBILITYPULSE, AActor, effects),
|
||||||
|
@ -255,6 +256,7 @@ static flagdef ActorFlags[]=
|
||||||
DEFINE_DEPRECATED_FLAG(LOWGRAVITY),
|
DEFINE_DEPRECATED_FLAG(LOWGRAVITY),
|
||||||
DEFINE_DEPRECATED_FLAG(SHORTMISSILERANGE),
|
DEFINE_DEPRECATED_FLAG(SHORTMISSILERANGE),
|
||||||
DEFINE_DEPRECATED_FLAG(LONGMELEERANGE),
|
DEFINE_DEPRECATED_FLAG(LONGMELEERANGE),
|
||||||
|
DEFINE_DUMMY_FLAG(NONETID),
|
||||||
};
|
};
|
||||||
|
|
||||||
static flagdef InventoryFlags[] =
|
static flagdef InventoryFlags[] =
|
||||||
|
|
Loading…
Reference in a new issue