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);
|
center = glm::vec3(v2_center.x, 0.0f, v2_center.y);
|
||||||
{
|
{
|
||||||
std::vector<Player*> humans;
|
std::vector<Player*> humans;
|
||||||
#if 0
|
|
||||||
room_->GetAlivePlayers(humans, room_->GetRoomMaxPlayerNum());
|
room_->GetAlivePlayers(humans, room_->GetRoomMaxPlayerNum());
|
||||||
#endif
|
|
||||||
if (humans.size() > 3) {
|
if (humans.size() > 3) {
|
||||||
std::random_shuffle(humans.begin(), humans.end());
|
std::random_shuffle(humans.begin(), humans.end());
|
||||||
for (Human* hum : humans) {
|
for (Human* hum : humans) {
|
||||||
if (!hum->poisoning) {
|
if (!hum->poisoning) {
|
||||||
// 99
|
center = hum->GetPos().ToGlmVec3() + dir * (float)(200 + rand() % 500);
|
||||||
#if 1
|
|
||||||
#else
|
|
||||||
center = hum->GetPos() + dir * (200 + rand() % 500);
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -216,6 +216,7 @@ public:
|
|||||||
void RemoveTask(int task_uniid);
|
void RemoveTask(int task_uniid);
|
||||||
const mt::AirLine* GetAirLine() { return airline_; }
|
const mt::AirLine* GetAirLine() { return airline_; }
|
||||||
int GetPolyExtFlag(int poly_idx);
|
int GetPolyExtFlag(int poly_idx);
|
||||||
|
size_t GetRoomMaxPlayerNum();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ShuaAndroid();
|
void ShuaAndroid();
|
||||||
@ -286,7 +287,6 @@ private:
|
|||||||
void CheckShowHand();
|
void CheckShowHand();
|
||||||
void ShowHand();
|
void ShowHand();
|
||||||
void ShuaLastGas();
|
void ShuaLastGas();
|
||||||
size_t GetRoomMaxPlayerNum();
|
|
||||||
void InitAndroidAI();
|
void InitAndroidAI();
|
||||||
void ForwardGasRing(int n);
|
void ForwardGasRing(int n);
|
||||||
void InternalRemoveObjectLater(Entity* entity, a8::Attacher& entity_xtimer_attacher);
|
void InternalRemoveObjectLater(Entity* entity, a8::Attacher& entity_xtimer_attacher);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user