mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-15 14:11:19 +00:00
Check for valid source in A_JawzChase, change 1 target rule
This commit is contained in:
parent
cb699c1770
commit
9ae9e7ec3a
1 changed files with 6 additions and 3 deletions
|
@ -8261,6 +8261,9 @@ void A_JawzChase(mobj_t *actor)
|
||||||
|
|
||||||
if (actor->tracer)
|
if (actor->tracer)
|
||||||
{
|
{
|
||||||
|
if (G_RaceGametype()) // Stop looking after first target in race
|
||||||
|
actor->extravalue1 = 1;
|
||||||
|
|
||||||
if (actor->tracer->health)
|
if (actor->tracer->health)
|
||||||
{
|
{
|
||||||
mobj_t *ret;
|
mobj_t *ret;
|
||||||
|
@ -8280,13 +8283,13 @@ void A_JawzChase(mobj_t *actor)
|
||||||
if (actor->extravalue1) // Disable looking by setting this
|
if (actor->extravalue1) // Disable looking by setting this
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (actor->target && !P_MobjWasRemoved(actor->target)) // No source!
|
||||||
|
return;
|
||||||
|
|
||||||
player = K_FindJawzTarget(actor, actor->target->player);
|
player = K_FindJawzTarget(actor, actor->target->player);
|
||||||
if (player)
|
if (player)
|
||||||
P_SetTarget(&actor->tracer, player->mo);
|
P_SetTarget(&actor->tracer, player->mo);
|
||||||
|
|
||||||
if (G_RaceGametype()) // Stop looking after first tic in race
|
|
||||||
actor->extravalue1 = 1;
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue