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
@@ -21,7 +21,6 @@ constexpr float COD_WORM_CHARGE_REACH = 150;
|
||||
constexpr float COD_WORM_CHARGE_ATTACK = 0.8f;
|
||||
constexpr float COD_WORM_CHARGE_COST = 0.2f;
|
||||
constexpr float COD_WORM_CONTROL_RANGE = 1000;
|
||||
constexpr int COD_WORM_RANGE_FRAMES = 7;
|
||||
constexpr float COD_WORM_CONTROL_DEADZONE = 0.1f;
|
||||
|
||||
// Under its shell it pulses, and comes out (for a while) once its target is away or out of sight. Confused, it always
|
||||
@@ -61,7 +60,7 @@ static void cod_worm_out(Entity_NPC& npc)
|
||||
const AnimationData* data = npc.sprite.animState.animData;
|
||||
isDigging = data && data->isLooping && npc.v1.x < COD_WORM_CHARGE_ATTACK &&
|
||||
(npc.IsControllerActionPressed(CONTROLLER_ACTION_SHOOT) ||
|
||||
npc.IsTargetInAttackRange(COD_WORM_CONTROL_RANGE, COD_WORM_RANGE_FRAMES, false));
|
||||
npc.IsTargetInAttackRange(COD_WORM_CONTROL_RANGE));
|
||||
}
|
||||
if (!isDigging) return;
|
||||
npc.state = NPC_STATE_STOMP;
|
||||
@@ -114,7 +113,7 @@ static void cod_worm_shell_hit(Entity_NPC& npc, bool isShielded)
|
||||
static void cod_worm_control_update(Entity_NPC& npc, bool isShielded)
|
||||
{
|
||||
npc.UpdateChargeBar(1, 0, npc.v1.x, true);
|
||||
if (npc.state == NPC_STATE_IDLE && npc.IsTargetInAttackRange(COD_WORM_CONTROL_RANGE, COD_WORM_RANGE_FRAMES, false))
|
||||
if (npc.state == NPC_STATE_IDLE && npc.IsTargetInAttackRange(COD_WORM_CONTROL_RANGE))
|
||||
{
|
||||
npc.controllerMovement = npc.GetControllerMovementInput(COD_WORM_CONTROL_DEADZONE);
|
||||
npc.state = NPC_STATE_ATTACK;
|
||||
|
||||
Reference in new issue
Block a user