1
This commit is contained in:
parent
db0e9e72e3
commit
fd78e6bdba
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user