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:
1 parent
534339a496
commit
5c89798773
280 files changed
+14904
-5309
No files matched your search
+1
-1
@@ -989,7 +989,7 @@ static void blink_spot_pick(Entity_NPC& npc)
|
||||
{
|
||||
for (int tries = 0; vector_is_zero(npc.targetPosition) && tries < BLINK_TRIES; tries++)
|
||||
{
|
||||
float angle = random_unit() * RANDOM_HALF_TURN * 2;
|
||||
float angle = random_unit() * PI_ROUGH * 2;
|
||||
float reach = random_unit() * BLINK_REACH_RANGE + BLINK_REACH_MIN;
|
||||
Vector spot = vector_make(std::cos(angle) * reach + npc.pos.x, std::sin(angle) * reach + npc.pos.y);
|
||||
Vector fromTarget = vector_sub(npc.GetPlayerTarget()->pos, spot);
|
||||
|
||||
Reference in new issue
Block a user