Curation round 27 (code only): Weapon_Bone::Fire and the fetus tear (no offline gaps left), TakeDamage's interleaved hit order, 74 SetAnimation reset flags corrected, and a parity audit of every boss, every enemy, the rest of the player and tears, effects and familiars; one normalize_angle_degrees, IsTargetInAttackRange defaults (59 duplicates)
This commit is contained in:
1 parent
cc77c923e8
commit
e66baf4063
215 files changed
+2046
-1093
No files matched your search
+10
-12
@@ -55,8 +55,8 @@ constexpr uint32_t RAGE_STEPS = 3;
|
||||
|
||||
// He teleports every 300 to 899 frames, at most 30 frames after he leaves the camera's sight (checked 100 out from him
|
||||
// at each corner), the damage he takes cutting it by half. He lands 160 to 320 out from his target along its way (any
|
||||
// way while it stands still), at least 160 from every player: up to 20 more tries go round his target 90 degrees at a
|
||||
// time, 40 further out each, from 320. Bosses that stay in place never teleport.
|
||||
// way while it stands still), at least 160 from every player: 20 more spots go round his target 90 degrees at a time,
|
||||
// 40 further out each, from 320, the last one never checked. Bosses that stay in place never teleport.
|
||||
constexpr uint32_t TELEPORT_FRAMES_MIN = 300;
|
||||
constexpr uint32_t TELEPORT_FRAMES_ROLL = 600;
|
||||
constexpr uint32_t TELEPORT_HIDDEN_FRAMES = 30;
|
||||
@@ -732,20 +732,18 @@ static void delirium_teleport(Entity_NPC& npc)
|
||||
|
||||
while (!is_clear_of_players(spot))
|
||||
{
|
||||
if (tries >= DELIRIUM_TELEPORT_TRIES)
|
||||
{
|
||||
log_printf(LOG_INFO, "??? teleport: %d tries\n", tries);
|
||||
npc.deliriumFormAge = npc.deliriumFormAge + 1;
|
||||
npc.deliriumTeleportTimer = Random() % TELEPORT_FRAMES_ROLL + TELEPORT_FRAMES_MIN;
|
||||
return;
|
||||
}
|
||||
float ring = (float)tries * DELIRIUM_RING_STEP + TELEPORT_RING;
|
||||
float angle = ((float)(tries % TELEPORT_QUARTERS) * TELEPORT_QUARTER_DEGREES + start) * DEGREES_TO_RADIANS;
|
||||
Vector around = npc.GetPlayerTarget()->pos;
|
||||
spot = room.GetClampedPositionImpl(
|
||||
vector_make(std::cos(angle) * ring + around.x, std::sin(angle) * ring + around.y), DELIRIUM_TELEPORT_REACH,
|
||||
DELIRIUM_TELEPORT_REACH, DELIRIUM_TELEPORT_REACH, DELIRIUM_TELEPORT_REACH);
|
||||
tries++;
|
||||
if (++tries < DELIRIUM_TELEPORT_TRIES) continue;
|
||||
|
||||
log_printf(LOG_INFO, "??? teleport: %d tries\n", tries);
|
||||
npc.deliriumFormAge = npc.deliriumFormAge + 1;
|
||||
npc.deliriumTeleportTimer = Random() % TELEPORT_FRAMES_ROLL + TELEPORT_FRAMES_MIN;
|
||||
return;
|
||||
}
|
||||
|
||||
log_printf(LOG_INFO, "??? teleport: %d tries\n", tries);
|
||||
@@ -982,7 +980,7 @@ static void form_start(Entity_NPC& npc, float maxHealth)
|
||||
npc_ai_update(npc);
|
||||
form_chain_dress(npc, true, maxHealth);
|
||||
}
|
||||
if (npc.type == ENTITY_CHUB) npc.state = NPC_STATE_IDLE;
|
||||
if (npc.type == ENTITY_CHUB) npc.state = NPC_STATE_APPEAR;
|
||||
}
|
||||
|
||||
// Changes him into his next form: what the last one left goes, the new boss inits in his place (clamped into the
|
||||
@@ -1038,7 +1036,7 @@ static void delirium_morph(Entity_NPC& npc, FormSeconds seconds)
|
||||
npc.maxHitPoints = maxHealth;
|
||||
npc.type = type;
|
||||
npc.variant = variant;
|
||||
Entity* cloud = spawn_at(ENTITY_EFFECT, EFFECT_POOF02, poof_size_get(npc, false), npc.pos, &npc);
|
||||
Entity* cloud = spawn_at(ENTITY_EFFECT, EFFECT_POOF01, poof_size_get(npc, false), npc.pos, &npc);
|
||||
cloud->posOffset = npc.posOffset;
|
||||
cloud->renderDepthOffset = npc.posOffset.y + 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user