1
This commit is contained in:
parent
b916e16fde
commit
908c3dfd54
@ -737,23 +737,28 @@ void Human::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
|
|||||||
if (hum && hum->IsEntityType(ET_Player)) {
|
if (hum && hum->IsEntityType(ET_Player)) {
|
||||||
Creature* killer = (Creature*)hum;
|
Creature* killer = (Creature*)hum;
|
||||||
if (killer_id == GetEntityUniId()) {
|
if (killer_id == GetEntityUniId()) {
|
||||||
std::string msg = a8::Format(TEXT("battle_server_dead_specate", "%s 自杀").c_str(),
|
info.killer_id = killer->GetEntityUniId();
|
||||||
{
|
info.killer_team_id = killer->team_id;
|
||||||
killer_name,
|
SendRollMsgEx(info,
|
||||||
});
|
TEXT("battle_server_dead_specate", "%s 自杀").c_str(),
|
||||||
SendRollMsg(msg, killer->GetEntityUniId(), killer->team_id);
|
{
|
||||||
|
killer_name
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
((Human*)hum)->stats.kills++;
|
((Human*)hum)->stats.kills++;
|
||||||
((Human*)hum)->stats.last_kill_frameno = room->GetFrameNo();
|
((Human*)hum)->stats.last_kill_frameno = room->GetFrameNo();
|
||||||
((Human*)hum)->kill_humans.insert(this);
|
((Human*)hum)->kill_humans.insert(this);
|
||||||
((Human*)hum)->SyncAroundPlayers(__FILE__, __LINE__, __func__);
|
((Human*)hum)->SyncAroundPlayers(__FILE__, __LINE__, __func__);
|
||||||
if (weapon_id == VW_Tank) {
|
if (weapon_id == VW_Tank) {
|
||||||
std::string msg = a8::Format(TEXT("battle_server_dead_car", "%s 使用 载具 干掉了 %s").c_str(),
|
info.killer_id = killer->GetEntityUniId();
|
||||||
{
|
info.killer_team_id = killer->team_id;
|
||||||
killer_name,
|
SendRollMsgEx
|
||||||
name
|
(info,
|
||||||
});
|
TEXT("battle_server_dead_car", "%s 使用 载具 干掉了 %s").c_str(),
|
||||||
SendRollMsg(msg, killer->GetEntityUniId(), killer->team_id);
|
{
|
||||||
|
killer_name,
|
||||||
|
name
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(weapon_id);
|
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(weapon_id);
|
||||||
if (equip_meta) {
|
if (equip_meta) {
|
||||||
@ -3748,6 +3753,7 @@ void Human::SendRollMsgEx(KillInfo& info,
|
|||||||
element->mutable_union_obj_2()->set_id(equip_meta->i->text_icon());
|
element->mutable_union_obj_2()->set_id(equip_meta->i->text_icon());
|
||||||
}
|
}
|
||||||
result = "";
|
result = "";
|
||||||
|
p = p1 + strlen("${weapon_text_icon}");
|
||||||
} else {
|
} else {
|
||||||
result.push_back(*p);
|
result.push_back(*p);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user