1
This commit is contained in:
parent
06659136e7
commit
0c17ba861f
@ -508,6 +508,7 @@ void Bullet::Check(float distance)
|
|||||||
#if 1
|
#if 1
|
||||||
// 999
|
// 999
|
||||||
(fly_distance < 0.00001f && distance > gun_meta->range()) ||
|
(fly_distance < 0.00001f && distance > gun_meta->range()) ||
|
||||||
|
(fly_distance > 0.00001f && distance >= fly_distance) ||
|
||||||
#else
|
#else
|
||||||
(!IsBomb() && distance > gun_meta->range()) ||
|
(!IsBomb() && distance > gun_meta->range()) ||
|
||||||
#endif
|
#endif
|
||||||
|
@ -367,6 +367,14 @@ void InternalShot(Creature* c,
|
|||||||
weapon_lv = weapon_lv;
|
weapon_lv = weapon_lv;
|
||||||
}
|
}
|
||||||
int weapon_buff_id = 0;
|
int weapon_buff_id = 0;
|
||||||
|
#if 1
|
||||||
|
if (c->GetAbility()->GetAttrAddition(kHAT_ShotRange) > 0.00001f) {
|
||||||
|
if (fly_distance > 0.00001f) {
|
||||||
|
} else {
|
||||||
|
fly_distance = weapon_meta->range() * (1 + c->GetAbility()->GetAttrAddition(kHAT_ShotRange));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
auto bullet_born_offset_ptr = &weapon_meta->_bullet_born_offset;
|
auto bullet_born_offset_ptr = &weapon_meta->_bullet_born_offset;
|
||||||
if (c->GetCurrWeapon()->meta == weapon_meta) {
|
if (c->GetCurrWeapon()->meta == weapon_meta) {
|
||||||
if (c->GetCurrWeapon()->bullet_born_offset_ptr) {
|
if (c->GetCurrWeapon()->bullet_born_offset_ptr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user