View Single Post
Author Message
FrAgOrDiE
AlliedModders Donor
Join Date: May 2018
Location: Italy
Old 03-02-2021 , 19:06   Custom killfeed icon?
Reply With Quote #1

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<= MaxClientsi++)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.
__________________
Add me on discord: FrAgOrDiE#5182
Add me on steam: https://steamcommunity.com/id/fragordie002/
Join my discord server: http://discord.gg/JpAUXMn
FrAgOrDiE is offline