This commit is contained in:
aozhiwei 2023-04-01 12:24:14 +08:00
parent db0e9e72e3
commit fd78e6bdba
2 changed files with 2 additions and 8 deletions

View File

@ -106,18 +106,12 @@ bool AirRaid::GenAirRaidPos(const mt::AirRaid* raid_meta, glm::vec3& center)
center = glm::vec3(v2_center.x, 0.0f, v2_center.y);
{
std::vector<Player*> humans;
#if 0
room_->GetAlivePlayers(humans, room_->GetRoomMaxPlayerNum());
#endif
if (humans.size() > 3) {
std::random_shuffle(humans.begin(), humans.end());
for (Human* hum : humans) {
if (!hum->poisoning) {
// 99
#if 1
#else
center = hum->GetPos() + dir * (200 + rand() % 500);
#endif
center = hum->GetPos().ToGlmVec3() + dir * (float)(200 + rand() % 500);
break;
}
}

View File

@ -216,6 +216,7 @@ public:
void RemoveTask(int task_uniid);
const mt::AirLine* GetAirLine() { return airline_; }
int GetPolyExtFlag(int poly_idx);
size_t GetRoomMaxPlayerNum();
private:
void ShuaAndroid();
@ -286,7 +287,6 @@ private:
void CheckShowHand();
void ShowHand();
void ShuaLastGas();
size_t GetRoomMaxPlayerNum();
void InitAndroidAI();
void ForwardGasRing(int n);
void InternalRemoveObjectLater(Entity* entity, a8::Attacher& entity_xtimer_attacher);