1
This commit is contained in:
parent
cd0d0726ae
commit
c573265b9c
@ -134,6 +134,11 @@ void AndroidAI::DoAttack()
|
|||||||
shot_dir.Normalize();
|
shot_dir.Normalize();
|
||||||
shot_dir.Rotate((rand() % 10) / 180.0f);
|
shot_dir.Rotate((rand() % 10) / 180.0f);
|
||||||
sender->attack_dir = shot_dir;
|
sender->attack_dir = shot_dir;
|
||||||
|
if (sender->curr_weapon->meta->NeedTrace()) {
|
||||||
|
sender->shot_target_id = enemy->entity_uniid;
|
||||||
|
} else {
|
||||||
|
sender->shot_target_id = 0;
|
||||||
|
}
|
||||||
sender->Shot();
|
sender->Shot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user