This commit is contained in:
aozhiwei 2023-11-07 17:51:15 +08:00
parent 5c69619d1c
commit d721633949

View File

@ -173,6 +173,9 @@ void HeroAgent::ShotNormal(const glm::vec3& dir)
if (owner_->CanShot(true)) {
bool shot_ok = false;
glm::vec3 shot_dir = owner_->GetAttackDir();
if (bullet_angle_offset_max_ > 0) {
GlmHelper::RotateY(shot_dir, a8::RandEx(bullet_angle_offset_min_, bullet_angle_offset_max_));
}
if (bullet_trace_mode_) {
owner_->Shot(shot_dir, shot_ok, 0, 0);
} else {