killer
This commit is contained in:
parent
578942a8c5
commit
e9a56742ab
@ -50,6 +50,9 @@ const char* KillSay::ComposeKillSay(IGameEvent* event) {
|
||||
CachedEntity* ent = ENTITY(interfaces::engineClient->GetPlayerForUserID(vid));
|
||||
int clz = g_pPlayerResource->GetClass(ent);
|
||||
ReplaceString(msg, "%class%", (char*)tf_classes_killsay[clz]);
|
||||
player_info_s infok;
|
||||
interfaces::engineClient->GetPlayerInfo(interfaces::engineClient->GetPlayerForUserID(kid), &infok);
|
||||
ReplaceString(msg, "%killer%", (char*)infok.name);
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user