1
This commit is contained in:
parent
d8b1d6484d
commit
f4c7f5dd38
@ -967,6 +967,12 @@ void Creature::DoSkill(int skill_id,
|
|||||||
kRemoveNatureRecoverTimerEvent,
|
kRemoveNatureRecoverTimerEvent,
|
||||||
nullptr);
|
nullptr);
|
||||||
}
|
}
|
||||||
|
if (HaveBallingEnemy()) {
|
||||||
|
last_battling_frameno = room->GetFrameNo();
|
||||||
|
if (!battling_grass_hide_delay_timer.expired()) {
|
||||||
|
room->xtimer.ResetTimer(battling_grass_hide_delay_timer);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (skill->GetMinorType()) {
|
if (skill->GetMinorType()) {
|
||||||
auto old_context_dir = context_dir;
|
auto old_context_dir = context_dir;
|
||||||
auto old_context_pos = context_pos;
|
auto old_context_pos = context_pos;
|
||||||
|
@ -385,6 +385,10 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
|
|||||||
kRemoveNatureRecoverTimerEvent,
|
kRemoveNatureRecoverTimerEvent,
|
||||||
nullptr);
|
nullptr);
|
||||||
}
|
}
|
||||||
|
last_battling_frameno = room->GetFrameNo();
|
||||||
|
if (!battling_grass_hide_delay_timer.expired()) {
|
||||||
|
room->xtimer.ResetTimer(battling_grass_hide_delay_timer);
|
||||||
|
}
|
||||||
bool only_self = !room->IsMobaModeRoom();
|
bool only_self = !room->IsMobaModeRoom();
|
||||||
if (killer->IsHuman()) {
|
if (killer->IsHuman()) {
|
||||||
room->frame_event.AddPropChgEx
|
room->frame_event.AddPropChgEx
|
||||||
@ -2346,6 +2350,10 @@ void Human::OnBulletHit(IBullet* bullet)
|
|||||||
kRemoveNatureRecoverTimerEvent,
|
kRemoveNatureRecoverTimerEvent,
|
||||||
nullptr);
|
nullptr);
|
||||||
}
|
}
|
||||||
|
last_battling_frameno = room->GetFrameNo();
|
||||||
|
if (!battling_grass_hide_delay_timer.expired()) {
|
||||||
|
room->xtimer.ResetTimer(battling_grass_hide_delay_timer);
|
||||||
|
}
|
||||||
GetTrigger()->Attacked(bullet->GetSender().Get());
|
GetTrigger()->Attacked(bullet->GetSender().Get());
|
||||||
if (!dead && (bullet->IsBomb() || bullet->GetSender().Get()->team_id != team_id)) {
|
if (!dead && (bullet->IsBomb() || bullet->GetSender().Get()->team_id != team_id)) {
|
||||||
float finaly_dmg = 0;
|
float finaly_dmg = 0;
|
||||||
@ -2519,6 +2527,10 @@ void Human::OnExplosionHit(Explosion* e)
|
|||||||
kRemoveNatureRecoverTimerEvent,
|
kRemoveNatureRecoverTimerEvent,
|
||||||
nullptr);
|
nullptr);
|
||||||
}
|
}
|
||||||
|
last_battling_frameno = room->GetFrameNo();
|
||||||
|
if (!battling_grass_hide_delay_timer.expired()) {
|
||||||
|
room->xtimer.ResetTimer(battling_grass_hide_delay_timer);
|
||||||
|
}
|
||||||
float finaly_dmg = GetNetData()->CalcDmg(e);
|
float finaly_dmg = GetNetData()->CalcDmg(e);
|
||||||
#if 1
|
#if 1
|
||||||
{
|
{
|
||||||
|
@ -2982,6 +2982,12 @@ int Creature::Throw(int slot, const glm::vec3& bomb_pos, const glm::vec3& bomb_d
|
|||||||
kRemoveNatureRecoverTimerEvent,
|
kRemoveNatureRecoverTimerEvent,
|
||||||
nullptr);
|
nullptr);
|
||||||
}
|
}
|
||||||
|
if (HaveBallingEnemy()) {
|
||||||
|
last_battling_frameno = room->GetFrameNo();
|
||||||
|
if (!battling_grass_hide_delay_timer.expired()) {
|
||||||
|
room->xtimer.ResetTimer(battling_grass_hide_delay_timer);
|
||||||
|
}
|
||||||
|
}
|
||||||
--weapon.ammo;
|
--weapon.ammo;
|
||||||
room->frame_event.AddPropChgEx
|
room->frame_event.AddPropChgEx
|
||||||
(
|
(
|
||||||
|
@ -556,6 +556,12 @@ void InternalShot(Creature* c,
|
|||||||
kRemoveNatureRecoverTimerEvent,
|
kRemoveNatureRecoverTimerEvent,
|
||||||
nullptr);
|
nullptr);
|
||||||
}
|
}
|
||||||
|
if (c->HaveBallingEnemy()) {
|
||||||
|
c->last_battling_frameno = c->room->GetFrameNo();
|
||||||
|
if (!c->battling_grass_hide_delay_timer.expired()) {
|
||||||
|
c->room->xtimer.ResetTimer(c->battling_grass_hide_delay_timer);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (c->aiming) {
|
if (c->aiming) {
|
||||||
c->aiming = false;
|
c->aiming = false;
|
||||||
c->aiming_frameno = 0;
|
c->aiming_frameno = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user