Hey, does everyone know how to implement a custom svg icon as a killfeed weapon indicator?
The code should be ok, I'm just unsure what the file name should be, and where the file should be placed. Should the svg file have specific sizes? Could anyone help with this?
What I have done is:
PHP Code:
Event event = CreateEvent("player_death", true);
event.SetString("weapon", "awp_custom_icon_bz");
event.SetInt("userid", GetClientUserId(param1));
event.SetInt("attacker", GetClientUserId(param1));
event.SetInt("assister", 0);
event.SetBool("headshot", false);
event.SetBool("penetrated", false);
event.SetBool("revenge", false);
event.SetBool("dominated", false);
for (int i = 1; i <= MaxClients; i++)if (IsClientInGame(i) && !IsFakeClient(i))
event.FireToClient(i);
event.Cancel();
I placed my logo into csgo/materials/panorama/images/icons/equipment/
what am I missing? When this code is executed I get a killfeed with no icon:
The file gets correctly precached on map start.
__________________