1
This commit is contained in:
parent
a2fe0ca1e0
commit
89aeefdab0
@ -285,6 +285,7 @@ void Car::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
|
|||||||
passenger->RemoveBuffByEffectId(kBET_Passenger);
|
passenger->RemoveBuffByEffectId(kBET_Passenger);
|
||||||
room->frame_event.AddCarChg(passenger);
|
room->frame_event.AddCarChg(passenger);
|
||||||
}
|
}
|
||||||
|
Explosion();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Car::GetAabbBox(AabbCollider& aabb_box)
|
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.x = hero_meta_->i->radius();
|
||||||
aabb_box._max.y = hero_meta_->i->radius();
|
aabb_box._max.y = hero_meta_->i->radius();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Car::Explosion()
|
||||||
|
{
|
||||||
|
TouchProperTargets
|
||||||
|
(
|
||||||
|
[] (Creature* c, bool& stop)
|
||||||
|
{
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -38,6 +38,7 @@ class Car : public Creature
|
|||||||
private:
|
private:
|
||||||
int AllocSeat();
|
int AllocSeat();
|
||||||
void BeKill(int killer_id, const std::string& killer_name, int weapon_id);
|
void BeKill(int killer_id, const std::string& killer_name, int weapon_id);
|
||||||
|
void Explosion();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long long born_frameno_ = 0;
|
long long born_frameno_ = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user