1
This commit is contained in:
parent
56c0f14818
commit
0051d3f12b
@ -1440,7 +1440,15 @@ void CallFuncBuff::AccumulatePower()
|
|||||||
|
|
||||||
void CallFuncBuff::Shot()
|
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()
|
void CallFuncBuff::BatchRandomPosSummonObstacle()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user