Update 1 changes

This commit is contained in:
Mike Rubits
2023-10-03 14:43:06 -04:00
parent 60f29560f3
commit 8dc1fc9794
67 changed files with 1806 additions and 1479 deletions

View File

@@ -656,7 +656,7 @@ bool SV_movestep(edict_t *ent, vec3_t move, bool relink)
float stepsize;
// push down from a step height above the wished position
if (ent->spawnflags.has(SPAWNFLAG_MONSTER_SUPER_STEP))
if (ent->spawnflags.has(SPAWNFLAG_MONSTER_SUPER_STEP) && ent->health > 0)
stepsize = 64.f;
else if (!(ent->monsterinfo.aiflags & AI_NOSTEP))
stepsize = STEPSIZE;
@@ -741,7 +741,8 @@ bool SV_movestep(edict_t *ent, vec3_t move, bool relink)
ent->groundentity = nullptr;
return true;
}
else if (!ent->spawnflags.has(SPAWNFLAG_MONSTER_SUPER_STEP))
// [Paril-KEX] allow dead monsters to "fall" off of edges in their death animation
else if (!ent->spawnflags.has(SPAWNFLAG_MONSTER_SUPER_STEP) && ent->health > 0)
return false; // walked off an edge
}
@@ -831,7 +832,7 @@ bool SV_movestep(edict_t *ent, vec3_t move, bool relink)
return false;
}
if (ent->spawnflags.has(SPAWNFLAG_MONSTER_SUPER_STEP))
if (ent->spawnflags.has(SPAWNFLAG_MONSTER_SUPER_STEP) && ent->health > 0)
{
if (!ent->groundentity || ent->groundentity->solid == SOLID_BSP)
{
@@ -867,7 +868,11 @@ bool SV_movestep(edict_t *ent, vec3_t move, bool relink)
if (relink)
{
gi.linkentity(ent);
G_TouchTriggers(ent);
// [Paril-KEX] this is something N64 does to avoid doors opening
// at the start of a level, which triggers some monsters to spawn.
if (!level.is_n64 || level.time > FRAME_TIME_S)
G_TouchTriggers(ent);
}
if (stepped)