1
This commit is contained in:
parent
f086829eda
commit
e8879cde5a
@ -245,6 +245,7 @@ behaviac::EBTStatus HeroAgent::DoAttack()
|
||||
}
|
||||
bool shot_ok = false;
|
||||
glm::vec3 shot_dir = GetOwner()->GetPos().CalcDir(target.Get()->GetPos());;
|
||||
GlmHelper::Normalize(shot_dir);
|
||||
GetOwner()->SetAttackDir(shot_dir);
|
||||
GetOwner()->Shot(shot_dir, shot_ok, 0, 0);
|
||||
|
||||
|
@ -2188,6 +2188,11 @@ void Human::OnBulletHit(IBullet* bullet)
|
||||
bullet->GetSender().Get()->GetUniId(),
|
||||
bullet->GetSender().Get()->GetName(),
|
||||
dmg_out);
|
||||
#if 0
|
||||
if (bullet->GetSender().Get()->IsEntityType(ET_Hero)) {
|
||||
a8::XPrintf("被炮塔打出血 %f %f %f\n", {GetHP(), GetMaxHP(), dmg_out});
|
||||
}
|
||||
#endif
|
||||
bullet->GetSender().Get()->GetTrigger()->DmgOut(this, dmg_out);
|
||||
if (bullet->GetSender().Get() &&
|
||||
!bullet->GetSender().Get()->dead &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user