This commit is contained in:
aozhiwei 2024-01-19 14:42:02 +08:00
parent 56c0f14818
commit 0051d3f12b

View File

@ -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()