1
This commit is contained in:
parent
b5ba64191b
commit
0b3da99ac4
@ -326,7 +326,7 @@ void InternalShot(Creature* c,
|
||||
bullet_born_offset = a8::Vec2(v.z *10*1, v.x*10*-1);
|
||||
bullet_born_pos = c->GetPos() + bullet_born_offset;
|
||||
if (c->IsPlayer() || c->IsCar()) {
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG1
|
||||
a8::XPrintf("idx:%d offset:%f,%f angle:%f old_angle:%f angle_xy:%f,%f %f %f gun_muzzle_position:%f,%f,%f pos:%f,%f gun_id:%d\n",
|
||||
{
|
||||
i,
|
||||
|
@ -43,12 +43,12 @@ public:
|
||||
virtual void OnRemoveFromTargetPartObject(Entity* target) override;
|
||||
virtual void OnBattleStart(Room* room) override;
|
||||
void Destory();
|
||||
void BeKill(int killer_id, const std::string& killer_name, int weapon_id);
|
||||
|
||||
protected:
|
||||
virtual void _UpdateMove(int speed) override;
|
||||
void InternalUpdateMove(float speed);
|
||||
virtual void RecalcSelfCollider() override;
|
||||
void BeKill(int killer_id, const std::string& killer_name, int weapon_id);
|
||||
void InitAI();
|
||||
void DetachFromMaster();
|
||||
|
||||
|
@ -326,8 +326,26 @@ void Incubator::SpawnWaveMon(int wave)
|
||||
if (!hero) {
|
||||
A8_ABORT();
|
||||
}
|
||||
#ifdef DEBUG1
|
||||
{
|
||||
room->xtimer.AddDeadLineTimerAndAttach
|
||||
(
|
||||
SERVER_FRAME_RATE * (rand() % 3),
|
||||
a8::XParams()
|
||||
.SetSender(hero),
|
||||
[] (const a8::XParams& param)
|
||||
{
|
||||
Hero* hero = (Hero*)param.sender.GetUserData();
|
||||
hero->BeKill(VP_Gas, TEXT("battle_server_killer_gas", "毒圈"), VW_Gas);
|
||||
},
|
||||
&hero->xtimer_attacher.timer_list_);
|
||||
}
|
||||
#endif
|
||||
if (wave + 1 == room->pve_mode_meta->waves.size()) {
|
||||
hero->is_pve_boss = true;
|
||||
#ifdef DEBGU
|
||||
a8::XPrintf("pve_boss appear\n", {});
|
||||
#endif
|
||||
}
|
||||
|
||||
++room->pve_data.mon_num;
|
||||
|
@ -63,6 +63,9 @@ void PveData::OnBeKill(Hero* hero)
|
||||
}
|
||||
);
|
||||
pve_kill_boss = true;
|
||||
#ifdef DEBUG
|
||||
a8::XPrintf("onKill pve_boss\n", {});
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user