1
This commit is contained in:
parent
2e6702ebd3
commit
0fa21c90bf
@ -242,6 +242,10 @@ void Bullet::ProcBomb()
|
|||||||
if (sender.Get() && sender.Get()->IsHuman()) {
|
if (sender.Get() && sender.Get()->IsHuman()) {
|
||||||
sender.Get()->AsHuman()->stats->IncWeaponUseTimes(gun_meta->id(), 1);
|
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();
|
Position bomb_pos = GetPos();
|
||||||
room->frame_event.AddExplosionEx(sender,
|
room->frame_event.AddExplosionEx(sender,
|
||||||
meta->id(),
|
meta->id(),
|
||||||
@ -500,7 +504,12 @@ void Bullet::Check(float distance)
|
|||||||
GetHitCreatures(result);
|
GetHitCreatures(result);
|
||||||
}
|
}
|
||||||
if (!result.objects.empty() ||
|
if (!result.objects.empty() ||
|
||||||
|
#if 1
|
||||||
|
// 999
|
||||||
|
(distance > gun_meta->range()) ||
|
||||||
|
#else
|
||||||
(!IsBomb() && distance > gun_meta->range()) ||
|
(!IsBomb() && distance > gun_meta->range()) ||
|
||||||
|
#endif
|
||||||
result.eat ||
|
result.eat ||
|
||||||
(gun_meta->id() == 30918 && distance >= fly_distance) ||
|
(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) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user