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

Deathnotice custom icon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Paaf
Member
Join Date: Dec 2010
Old 07-24-2019 , 16:15   Deathnotice custom icon
Reply With Quote #1

Hello everyone,

I would like to change the deathnotice icon (top right corner of the screen) to a custom icon clients would download for example. This icon would be used to replace only certain weapons.

How is it possible to do that ?

Thank you in advance for your help

Edit : game is CSGO

Last edited by Paaf; 07-24-2019 at 16:18. Reason: missing informations
Paaf is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-24-2019 , 16:27   Re: Deathnotice custom icon
Reply With Quote #2

I'm pretty sure you would have to also mod the clients, thus it wouldn't be possible server side.
__________________
Neuro Toxin is offline
Paaf
Member
Join Date: Dec 2010
Old 07-24-2019 , 16:54   Re: Deathnotice custom icon
Reply With Quote #3

I have seen that on several servers, I think it is possible server side.
Paaf is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-24-2019 , 16:59   Re: Deathnotice custom icon
Reply With Quote #4

We are talking public servers?

Not faceit or such?
__________________
Neuro Toxin is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 07-24-2019 , 19:36   Re: Deathnotice custom icon
Reply With Quote #5

You might be able to hide the kill icon/names, then create your own (sprites + hud text (?)).

From a quick search, setting SetEventBroadcast(event, true) inside player_death event should hide the kill feed.
__________________

Last edited by ThatOneGuy; 07-24-2019 at 22:24.
ThatOneGuy is offline
PC Gamer
Senior Member
Join Date: Mar 2014
Old 07-24-2019 , 21:45   Re: Deathnotice custom icon
Reply With Quote #6

This may help to point you in the right direction since it alters the killfeed.

It's code taken from Leonardo's Be the Eye plugin.


Code:
public Action:OnPlayerDeath( Handle:hEvent, const String:strEventName[], bool:bDontBroadcast )
{
	new iClient = GetClientOfUserId( GetEventInt( hEvent, "userid" ) );
	if( !IsValidClient(iClient) )
		return Plugin_Continue;
	
	if( bEyeStatus[iClient] )
	{
		DontBeTheMonoculus( iClient );
		return Plugin_Continue;
	}
	
	new iKiller = GetClientOfUserId( GetEventInt( hEvent, "attacker" ) );
	if( !IsValidClient(iKiller) || !bEyeStatus[iKiller] )
		return Plugin_Continue;
	
	SetEventString( hEvent, "weapon", "eyeball_rocket" );
	SetEventInt( hEvent, "weaponid", 0 );
	SetEventString( hEvent, "weapon_logclassname", "eyeball_rocket" );
	SetEventInt( hEvent, "customkill", TF_CUSTOM_EYEBALL_ROCKET );
	
	SetEntityHealth( iKiller, GetClientHealth(iKiller) + iEyeHPP );
	return Plugin_Continue;
}
PC Gamer is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 07-25-2019 , 01:27   Re: Deathnotice custom icon
Reply With Quote #7

https://forums.alliedmods.net/showthread.php?p=2646030
__________________
8guawong is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 07-25-2019 , 01:35   Re: Deathnotice custom icon
Reply With Quote #8

Quote:
Originally Posted by PC Gamer View Post
This may help to point you in the right direction since it alters the killfeed.

It's code taken from Leonardo's Be the Eye plugin.
He needs help in CS:GO. 8guawong just posted a link to the perfect plugin for the OP to check out.
__________________
Plugin Developer for Creators.TF


Last edited by 404UNF; 07-25-2019 at 01:35.
404UNF is offline
Paaf
Member
Join Date: Dec 2010
Old 07-25-2019 , 15:14   Re: Deathnotice custom icon
Reply With Quote #9

Thank you, I think I have everything I need with this plugin.
Paaf 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 05:27.


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