1
This commit is contained in:
parent
b77d8a3125
commit
4fca04c2e3
@ -3333,9 +3333,6 @@ void Human::InternalBeKill(int killer_id, const std::string& killer_name, int we
|
||||
KillMgr::Instance()->OnHumanDead(this, &info);
|
||||
room->frame_event.AddDead(GetWeakPtrRef(), 0);
|
||||
}
|
||||
} else {
|
||||
if (room->GetGasData().old_area_meta->CanRevive() &&
|
||||
revive_count < mt::Param::s().revive_count) {
|
||||
} else {
|
||||
real_dead = true;
|
||||
dead_frameno = room->GetFrameNo();
|
||||
@ -3344,7 +3341,18 @@ void Human::InternalBeKill(int killer_id, const std::string& killer_name, int we
|
||||
KillMgr::Instance()->OnHumanDead(this, &info);
|
||||
room->frame_event.AddDead(GetWeakPtrRef(), 0);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (room->GetGasData().old_area_meta->CanRevive() &&
|
||||
revive_count < mt::Param::s().revive_count) {
|
||||
dead = true;
|
||||
real_dead = false;
|
||||
downed = false;
|
||||
SetHP(0.0f);
|
||||
dead_frameno = room->GetFrameNo();
|
||||
GetTrigger()->Die(killer_id, weapon_id);
|
||||
OnDie();
|
||||
KillMgr::Instance()->OnHumanDead(this, &info);
|
||||
room->frame_event.AddDead(GetWeakPtrRef(), 0);
|
||||
} else {
|
||||
dead = true;
|
||||
real_dead = true;
|
||||
@ -3358,6 +3366,7 @@ void Human::InternalBeKill(int killer_id, const std::string& killer_name, int we
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int Human::GetTeamMode()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user