Raised This Month: $12 Target: $400
 3% 

Custom killfeed icon?


Post New Thread Reply   
 
Thread Tools Display Modes
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
Effeff
AlliedModders Donor
Join Date: Jan 2019
Location: discord: ff#0533
Old 03-02-2021 , 20:37   Re: Custom killfeed icon?
Reply With Quote #2

Have you seen this thread?

"[STOCK] Custom kill message icons"
https://forums.alliedmods.net/showthread.php?t=330116

edit: You probably have, since it looks like you are trying to do the same as them

I will try to make it work myself and get back to you.

edit2: I can't even manage to get the fall damage one to work. I wish you luck, sorry to be of no help.

Last edited by Effeff; 03-02-2021 at 21:21.
Effeff is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode