1
This commit is contained in:
parent
bc1a675e41
commit
0ac45cd1e7
@ -84,12 +84,13 @@ void Bullet::OnHit(std::set<Entity*>& objects)
|
||||
if (IsFlyHook()) {
|
||||
if (sender.Get() && !sender.Get()->dead) {
|
||||
for (auto& target : objects) {
|
||||
if (
|
||||
!(target->IsCreature(room) &&
|
||||
((Creature*)target)->IsCar())) {
|
||||
Creature* c = target->IsCreature(room) ? (Creature*)target : nullptr;
|
||||
if (!(c && c->IsCar())) {
|
||||
ProcFlyHook(target);
|
||||
if (!c || (c->team_id != sender.Get()->team_id)) {
|
||||
target->OnBulletHit(this);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -535,7 +536,8 @@ void Bullet::Check(float distance)
|
||||
GetGridList(),
|
||||
[this, &objects, &c_hit_num, &eat] (Creature* c, bool& stop)
|
||||
{
|
||||
if (sender.Get()->IsProperTarget(c)) {
|
||||
bool no_teammate = !IsFlyHook();
|
||||
if (sender.Get()->IsProperTarget(c, no_teammate)) {
|
||||
if (gun_meta->i->ispenetrate() &&
|
||||
hit_objects_.find(c->GetUniId()) != hit_objects_.end()) {
|
||||
//穿人
|
||||
|
@ -414,7 +414,7 @@ void Incubator::NextWave()
|
||||
cs::SMPvePassWave notify_msg;
|
||||
int next_wave = hum->room->pve_data.GetWave() + 1 + 1;
|
||||
int max_wave = room->pve_data.max_wave;
|
||||
next_wave = std::max(next_wave, max_wave);
|
||||
next_wave = std::min(next_wave, max_wave);
|
||||
notify_msg.set_new_wave(next_wave);
|
||||
notify_msg.set_wait_time(hum->room->pve_mode_meta->pb->wave_prepare_time());
|
||||
notify_msg.set_pve_max_wave(max_wave);
|
||||
|
Loading…
x
Reference in New Issue
Block a user