Curation round 25 (code only): the ultra horsemen and the Beast's background, the Scourge and Polty, the player's last gaps with the frame gate removed, game core, debug and daily, local co-op and player-controlled enemies, TMTRAINER, local versus, the vanilla Lua API, the special-daily fix, shared constants folded (60 duplicates, 10 offline gaps)

This commit is contained in:
shweet committed 2026-11-23 07:35:21 -05:00
1 parent 534339a496
commit 5c89798773
280 files changed
+14904 -5309

No files matched your search

+3 -5
View File
@@ -28,7 +28,6 @@ constexpr float CRACK_STRIKE_DAMAGE = 20;
constexpr float CRACK_HOSTILE_DAMAGE = 2;
constexpr float CRACK_VERSUS_HIT_DAMAGE = 7;
constexpr int CRACK_HIT_SPACING = 3;
constexpr int CRACK_HIT_COUNTDOWN = 30;
constexpr int CRACK_SHAKE = 5;
// The crater it leaves.
constexpr int CRACK_CRATER_SUBTYPE = 1;
@@ -82,12 +81,12 @@ static void crack_hit(Entity_Effect& crack)
effect_tear_flags_set(crack, flags);
}
float damage = isVersus ? CRACK_VERSUS_HIT_DAMAGE : CRACK_HOSTILE_DAMAGE;
entity->TakeDamage(damage, damageFlags, EntityRef(source), CRACK_HIT_COUNTDOWN);
entity->TakeDamage(damage, damageFlags, EntityRef(source), HIT_COUNTDOWN);
}
else if (entity->type >= CRACK_NPC_TYPE_FIRST)
{
float damage = isHostile ? CRACK_HOSTILE_DAMAGE : crack.collisionDamage;
entity->TakeDamage(damage, 0, EntityRef(source), CRACK_HIT_COUNTDOWN);
entity->TakeDamage(damage, 0, EntityRef(source), HIT_COUNTDOWN);
}
}
if (crack.subtype == CRACK_PLAYER) crack.subtype = CRACK_PLAYER_STRUCK;
@@ -202,7 +201,6 @@ constexpr float HUSH_LASER_PLAYER_PULL = 1.1f;
constexpr float HUSH_LASER_FRICTION = 0.8f;
constexpr int HUSH_LASER_HIT_SPACING = 2;
constexpr float HUSH_LASER_DAMAGE = 2;
constexpr int HUSH_LASER_HIT_COUNTDOWN = 30;
constexpr int HUSH_LASER_TRAIL_SPACING = 5;
constexpr int HUSH_LASER_TRAIL_PRIORITY = 255;
constexpr ColorMod HUSH_LASER_TRAIL_COLOR = {{0, 0, 0, 0.8f}, {0, 0, 0, 0}, {17 / 255.0f, 159 / 255.0f, 225 / 255.0f}};
@@ -227,7 +225,7 @@ static void hush_laser_hit(Entity_Effect& laser)
if (vector_length_squared(vector_sub(victim.pos, laser.pos)) >= reach * reach) return;
if (victim.isDead || victim.entityCollisionClass == ENTCOLL_NONE) return;
victim.TakeDamage(HUSH_LASER_DAMAGE, 0, EntityRef(source), HUSH_LASER_HIT_COUNTDOWN);
victim.TakeDamage(HUSH_LASER_DAMAGE, 0, EntityRef(source), HIT_COUNTDOWN);
};
if (isFriendly)