mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-24 04:41:22 +00:00
- Added SXF_IS<TARGET/MASTER/TRACER>.
- The spawned actor becomes the calling actor's specified pointers respectively.
This commit is contained in:
parent
3efbf6c74e
commit
fcf1d56b1a
2 changed files with 18 additions and 0 deletions
|
@ -1857,6 +1857,9 @@ enum SIX_Flags
|
||||||
SIXF_ORIGINATOR = 0x00800000,
|
SIXF_ORIGINATOR = 0x00800000,
|
||||||
SIXF_TRANSFERSPRITEFRAME = 0x01000000,
|
SIXF_TRANSFERSPRITEFRAME = 0x01000000,
|
||||||
SIXF_TRANSFERROLL = 0x02000000,
|
SIXF_TRANSFERROLL = 0x02000000,
|
||||||
|
SIXF_ISTARGET = 0x04000000,
|
||||||
|
SIXF_ISMASTER = 0x08000000,
|
||||||
|
SIXF_ISTRACER = 0x10000000,
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
|
static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
|
||||||
|
@ -2014,6 +2017,18 @@ static bool InitSpawnedItem(AActor *self, AActor *mo, int flags)
|
||||||
mo->roll = self->roll;
|
mo->roll = self->roll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags & SIXF_ISTARGET)
|
||||||
|
{
|
||||||
|
self->target = mo;
|
||||||
|
}
|
||||||
|
if (flags & SIXF_ISMASTER)
|
||||||
|
{
|
||||||
|
self->master = mo;
|
||||||
|
}
|
||||||
|
if (flags & SIXF_ISTRACER)
|
||||||
|
{
|
||||||
|
self->tracer = mo;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,9 @@ const int SXF_NOPOINTERS = 1 << 22;
|
||||||
const int SXF_ORIGINATOR = 1 << 23;
|
const int SXF_ORIGINATOR = 1 << 23;
|
||||||
const int SXF_TRANSFERSPRITEFRAME = 1 << 24;
|
const int SXF_TRANSFERSPRITEFRAME = 1 << 24;
|
||||||
const int SXF_TRANSFERROLL = 1 << 25;
|
const int SXF_TRANSFERROLL = 1 << 25;
|
||||||
|
const int SXF_ISTARGET = 1 << 26,
|
||||||
|
const int SXF_ISMASTER = 1 << 27,
|
||||||
|
const int SXF_ISTRACER = 1 << 28,
|
||||||
|
|
||||||
// Flags for A_Chase
|
// Flags for A_Chase
|
||||||
const int CHF_FASTCHASE = 1;
|
const int CHF_FASTCHASE = 1;
|
||||||
|
|
Loading…
Reference in a new issue