Вопрос Knife icon only applies to T knife model

Начинающий
Статус
Оффлайн
Регистрация
12 Фев 2020
Сообщения
37
Реакции[?]
9
Поинты[?]
0
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:
Terrorist.png

CT side:
CT.png

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);
}
 
Сверху Снизу