AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Deathnotice custom icon (https://forums.alliedmods.net/showthread.php?t=317692)

Paaf 07-24-2019 16:15

Deathnotice custom icon
 
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

Neuro Toxin 07-24-2019 16:27

Re: Deathnotice custom icon
 
I'm pretty sure you would have to also mod the clients, thus it wouldn't be possible server side.

Paaf 07-24-2019 16:54

Re: Deathnotice custom icon
 
I have seen that on several servers, I think it is possible server side.

Neuro Toxin 07-24-2019 16:59

Re: Deathnotice custom icon
 
We are talking public servers?

Not faceit or such?

ThatOneGuy 07-24-2019 19:36

Re: Deathnotice custom icon
 
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.

PC Gamer 07-24-2019 21:45

Re: Deathnotice custom icon
 
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;
}


8guawong 07-25-2019 01:27

Re: Deathnotice custom icon
 
https://forums.alliedmods.net/showthread.php?p=2646030

404UserNotFound 07-25-2019 01:35

Re: Deathnotice custom icon
 
Quote:

Originally Posted by PC Gamer (Post 2660505)
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.

Paaf 07-25-2019 15:14

Re: Deathnotice custom icon
 
Thank you, I think I have everything I need with this plugin.


All times are GMT -4. The time now is 05:56.

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