1
This commit is contained in:
parent
85fa3e272c
commit
887454e786
@ -258,6 +258,7 @@ void Bullet::ProcBomb()
|
||||
}
|
||||
#if 1
|
||||
AddGunBuff();
|
||||
ProcSmokeBomb();
|
||||
#else
|
||||
a8::Vec2 bomb_pos = GetPos();
|
||||
float time_addition = 0;
|
||||
@ -265,7 +266,6 @@ void Bullet::ProcBomb()
|
||||
time_addition += sender.Get()->GetAbility()->GetAttrAbs(kHAT_WeaponExplosionContinueTime);
|
||||
}
|
||||
room->frame_event.AddSmoke(this, meta->i->id(), bomb_pos, time_addition);
|
||||
ProcSmokeBomb();
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
@ -10,7 +10,7 @@ void SmokeMiTask::Check()
|
||||
{
|
||||
std::list<Player*> deleted_hums;
|
||||
for (auto& hum : player_set) {
|
||||
if (bomb_pos.Distance(hum->GetPos()) > gun_meta->i->bullet_rad() + hum->meta->i->radius()) {
|
||||
if (bomb_pos.Distance(hum->GetPos()) > gun_meta->float_param1 + hum->meta->i->radius()) {
|
||||
hum->RemoveBuffByEffectId(kBET_HunLuan);
|
||||
deleted_hums.push_back(hum);
|
||||
}
|
||||
@ -23,7 +23,7 @@ void SmokeMiTask::Check()
|
||||
(a8::XParams(),
|
||||
[this] (Player* hum, a8::XParams&) -> bool
|
||||
{
|
||||
if (bomb_pos.Distance(hum->GetPos()) < gun_meta->i->bullet_rad() + hum->meta->i->radius()) {
|
||||
if (bomb_pos.Distance(hum->GetPos()) < gun_meta->float_param1 + hum->meta->i->radius()) {
|
||||
if (!hum->HasBuffEffect(kBET_HunLuan)) {
|
||||
hum->AddBuff(nullptr, buff_meta, nullptr);
|
||||
player_set.insert(hum);
|
||||
|
Loading…
x
Reference in New Issue
Block a user