-
Автор темы
- #1
I tried to fix the knife icon in the killfeed. When I kill someone as a Terrorist it works but on CT it still shows the default knife icon.
T side:
CT side:
My fireevent hook:
T side:
CT side:
My fireevent hook:
Код:
ool __fastcall Hooks :: fire_event :: hook (void * ecx, void * edx, IGameEvent * event) {
if (strstr (event-> GetName (), "player_death")) {
if (g_EngineClient-> GetPlayerForUserID (event-> GetInt ("attacker")) == g_EngineClient-> GetLocalPlayer ()) {
const auto icon_override = Skins :: Get (). GetIconOverride (event-> GetString ("weapon"));
if (icon_override) event-> SetString ("weapon", icon_override);
}
}
return o_events (ecx, edx, event);
}