This commit is contained in:
aozhiwei 2023-01-04 19:12:08 +08:00
parent 083b0a5bea
commit 11e91fda61

View File

@ -447,9 +447,12 @@ void Bullet::Check(float distance)
if (result.o_hit_num <= 0) {
GetHitCreatures(result);
}
if (!result.objects.empty() || (!IsBomb() && distance > gun_meta->range()) || result.eat ||
if (!result.objects.empty() ||
(!IsBomb() && distance > gun_meta->range()) ||
result.eat ||
(gun_meta->id() == 30918 && distance >= fly_distance) ||
(IsBomb() && meta->_inventory_slot() != IS_RPG && distance >= fly_distance)
(IsBomb() && meta->_inventory_slot() != IS_RPG && distance >= fly_distance) ||
(IsFlyHook() && distance >= raycast_len_)
) {
if (IsBomb()) {
ProcBomb();