mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- Added JLOSF_CHECKTRACER for A_JumpIfTargetInLOS.
- CHECKTRACER doesn't need to be a missile or have the SEEKERMISSILE flag.
This commit is contained in:
parent
981b5f32e0
commit
f54a59fdf8
2 changed files with 415 additions and 410 deletions
|
@ -3278,18 +3278,19 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckLOF)
|
|||
|
||||
enum JLOS_flags
|
||||
{
|
||||
JLOSF_PROJECTILE=1,
|
||||
JLOSF_NOSIGHT=2,
|
||||
JLOSF_CLOSENOFOV=4,
|
||||
JLOSF_CLOSENOSIGHT=8,
|
||||
JLOSF_CLOSENOJUMP=16,
|
||||
JLOSF_DEADNOJUMP=32,
|
||||
JLOSF_CHECKMASTER=64,
|
||||
JLOSF_TARGETLOS=128,
|
||||
JLOSF_FLIPFOV=256,
|
||||
JLOSF_ALLYNOJUMP=512,
|
||||
JLOSF_COMBATANTONLY=1024,
|
||||
JLOSF_NOAUTOAIM=2048,
|
||||
JLOSF_PROJECTILE = 1,
|
||||
JLOSF_NOSIGHT = 1 << 1,
|
||||
JLOSF_CLOSENOFOV = 1 << 2,
|
||||
JLOSF_CLOSENOSIGHT = 1 << 3,
|
||||
JLOSF_CLOSENOJUMP = 1 << 4,
|
||||
JLOSF_DEADNOJUMP = 1 << 5,
|
||||
JLOSF_CHECKMASTER = 1 << 6,
|
||||
JLOSF_TARGETLOS = 1 << 7,
|
||||
JLOSF_FLIPFOV = 1 << 8,
|
||||
JLOSF_ALLYNOJUMP = 1 << 9,
|
||||
JLOSF_COMBATANTONLY = 1 << 10,
|
||||
JLOSF_NOAUTOAIM = 1 << 11,
|
||||
JLOSF_CHECKTRACER = 1 << 12,
|
||||
};
|
||||
|
||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_JumpIfTargetInLOS)
|
||||
|
@ -3314,9 +3315,9 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_JumpIfTargetInLOS)
|
|||
{
|
||||
target = self->master;
|
||||
}
|
||||
else if (self->flags & MF_MISSILE && (flags & JLOSF_PROJECTILE))
|
||||
else if ((self->flags & MF_MISSILE && (flags & JLOSF_PROJECTILE)) || (flags & JLOSF_CHECKTRACER))
|
||||
{
|
||||
if (self->flags2 & MF2_SEEKERMISSILE)
|
||||
if ((self->flags2 & MF2_SEEKERMISSILE) || (flags & JLOSF_CHECKTRACER))
|
||||
target = self->tracer;
|
||||
else
|
||||
target = NULL;
|
||||
|
|
|
@ -92,18 +92,22 @@ const int RSF_KEEPTARGET = 2;
|
|||
const int RSF_TELEFRAG = 4;
|
||||
|
||||
// Flags for A_JumpIfTargetInLOS and A_JumpIfInTargetLOS
|
||||
const int JLOSF_PROJECTILE = 1;
|
||||
const int JLOSF_NOSIGHT = 2;
|
||||
const int JLOSF_CLOSENOFOV = 4;
|
||||
const int JLOSF_CLOSENOSIGHT = 8;
|
||||
const int JLOSF_CLOSENOJUMP = 16;
|
||||
const int JLOSF_DEADNOJUMP = 32;
|
||||
const int JLOSF_CHECKMASTER = 64;
|
||||
const int JLOSF_TARGETLOS = 128;
|
||||
const int JLOSF_FLIPFOV = 256;
|
||||
const int JLOSF_ALLYNOJUMP = 512;
|
||||
const int JLOSF_COMBATANTONLY = 1024;
|
||||
const int JLOSF_NOAUTOAIM = 2048;
|
||||
enum
|
||||
{
|
||||
JLOSF_PROJECTILE = 1,
|
||||
JLOSF_NOSIGHT = 1 << 1,
|
||||
JLOSF_CLOSENOFOV = 1 << 2,
|
||||
JLOSF_CLOSENOSIGHT = 1 << 3,
|
||||
JLOSF_CLOSENOJUMP = 1 << 4,
|
||||
JLOSF_DEADNOJUMP = 1 << 5,
|
||||
JLOSF_CHECKMASTER = 1 << 6,
|
||||
JLOSF_TARGETLOS = 1 << 7,
|
||||
JLOSF_FLIPFOV = 1 << 8,
|
||||
JLOSF_ALLYNOJUMP = 1 << 9,
|
||||
JLOSF_COMBATANTONLY = 1 << 10,
|
||||
JLOSF_NOAUTOAIM = 1 << 11,
|
||||
JLOSF_CHECKTRACER = 1 << 12,
|
||||
};
|
||||
|
||||
// Flags for A_ChangeVelocity
|
||||
const int CVF_RELATIVE = 1;
|
||||
|
@ -375,7 +379,7 @@ const int KILS_NOMONSTERS = 4;
|
|||
const int DMSS_FOILINVUL = 1;
|
||||
const int DMSS_AFFECTARMOR = 2;
|
||||
const int DMSS_KILL = 4;
|
||||
const int DMSS_NOFACTOR = 8;
|
||||
const int DMSS_NOFACTOR = 8;
|
||||
|
||||
// Flags for A_AlertMonsters
|
||||
const int AMF_TARGETEMITTER = 1;
|
||||
|
@ -388,7 +392,7 @@ enum
|
|||
RMVF_MISSILES = 1 << 0,
|
||||
RMVF_NOMONSTERS = 1 << 1,
|
||||
RMVF_MISC = 1 << 2,
|
||||
RMVF_EVERYTHING = 1 << 3
|
||||
RMVF_EVERYTHING = 1 << 3,
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue