From 0051d3f12b7ec9c3696b0952329b9d157a827b5c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 19 Jan 2024 14:42:02 +0800 Subject: [PATCH] 1 --- server/gameserver/buff/callfunc.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/gameserver/buff/callfunc.cc b/server/gameserver/buff/callfunc.cc index 22477231..b6df7557 100644 --- a/server/gameserver/buff/callfunc.cc +++ b/server/gameserver/buff/callfunc.cc @@ -1440,7 +1440,15 @@ void CallFuncBuff::AccumulatePower() void CallFuncBuff::Shot() { - + int id = meta->GetBuffParam2(this); + float x = meta->GetBuffParam3(this); + float y = meta->GetBuffParam4(this); + float z = meta->GetBuffParam5(this); + const mt::Equip* bullet_meta = mt::Equip::GetById(id); + if (bullet_meta) { + glm::vec3 target_pos = glm::vec3(x, y, z); + glm::vec3 attack_dir = target_pos - owner->GetPos().ToGlmVec3(); + } } void CallFuncBuff::BatchRandomPosSummonObstacle()