This commit is contained in:
aozhiwei 2023-03-30 14:46:28 +08:00
parent 2e6702ebd3
commit 0fa21c90bf

View File

@ -242,6 +242,10 @@ void Bullet::ProcBomb()
if (sender.Get() && sender.Get()->IsHuman()) {
sender.Get()->AsHuman()->stats->IncWeaponUseTimes(gun_meta->id(), 1);
}
bool is_player = sender.Get()->IsPlayer();
if (is_player) {
int i = 0;
}
Position bomb_pos = GetPos();
room->frame_event.AddExplosionEx(sender,
meta->id(),
@ -500,7 +504,12 @@ void Bullet::Check(float distance)
GetHitCreatures(result);
}
if (!result.objects.empty() ||
#if 1
// 999
(distance > gun_meta->range()) ||
#else
(!IsBomb() && distance > gun_meta->range()) ||
#endif
result.eat ||
(gun_meta->id() == 30918 && distance >= fly_distance) ||
(IsBomb() && meta->_inventory_slot() != IS_RPG && distance >= fly_distance) ||