This commit is contained in:
aozhiwei 2021-05-14 19:06:40 +08:00
parent a2fe0ca1e0
commit 89aeefdab0
2 changed files with 12 additions and 0 deletions

View File

@ -285,6 +285,7 @@ void Car::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
passenger->RemoveBuffByEffectId(kBET_Passenger);
room->frame_event.AddCarChg(passenger);
}
Explosion();
}
void Car::GetAabbBox(AabbCollider& aabb_box)
@ -296,3 +297,13 @@ void Car::GetAabbBox(AabbCollider& aabb_box)
aabb_box._max.x = hero_meta_->i->radius();
aabb_box._max.y = hero_meta_->i->radius();
}
void Car::Explosion()
{
TouchProperTargets
(
[] (Creature* c, bool& stop)
{
});
}

View File

@ -38,6 +38,7 @@ class Car : public Creature
private:
int AllocSeat();
void BeKill(int killer_id, const std::string& killer_name, int weapon_id);
void Explosion();
private:
long long born_frameno_ = 0;