1
This commit is contained in:
parent
5c69619d1c
commit
d721633949
@ -173,6 +173,9 @@ void HeroAgent::ShotNormal(const glm::vec3& dir)
|
|||||||
if (owner_->CanShot(true)) {
|
if (owner_->CanShot(true)) {
|
||||||
bool shot_ok = false;
|
bool shot_ok = false;
|
||||||
glm::vec3 shot_dir = owner_->GetAttackDir();
|
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_) {
|
if (bullet_trace_mode_) {
|
||||||
owner_->Shot(shot_dir, shot_ok, 0, 0);
|
owner_->Shot(shot_dir, shot_ok, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user