Raised This Month: $32 Target: $400
 8% 

[CS:GO] Jump Shot icon in Kill Feed


Post New Thread Reply   
 
Thread Tools Display Modes
Author
eyal282
Veteran Member
Join Date: Aug 2011
Plugin ID:
7574
Plugin Version:
1.2
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Jump Shot icon in Kill Feed
    Old 03-25-2021 , 10:47   [CS:GO] Jump Shot icon in Kill Feed
    Reply With Quote #1

    Stolen directly from https://forums.alliedmods.net/showthread.php?t=315338 as it is now obsolete.

    Too lazy to post guide how to install.

    Warning: Files must appear in server as well as fast dl to work, even if server doesn't use them.

    Only some icons were tested ( it was intended for a retakes so all retake guns work flawlessly )

    Version 1.1 adds a forward if you wanna manipulate event data like revenge and dominating icon.

    Version 1.2 just edits the event, no need anymore to have a forward.

    Version 1.3 adds the forward again. I couldn't get "editing the event" to work.
    Attached Thumbnails
    Click image for larger version

Name:	20210324205711_2.png
Views:	1082
Size:	43.9 KB
ID:	188373  
    Attached Files
    File Type: zip JumpShotIcons.zip (394.8 KB, 616 views)
    File Type: sp Get Plugin or Get Source (JumpShotKillFeed.sp - 243 views - 3.1 KB)
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334

    Last edited by eyal282; 01-04-2023 at 19:48.
    eyal282 is offline
    TheZZL
    Junior Member
    Join Date: Sep 2020
    Location: East Coast US
    Old 03-28-2021 , 02:56   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #2

    Tested in-game, works great!

    Thanks man!
    TheZZL is offline
    raj kaul
    Senior Member
    Join Date: Mar 2018
    Location: www.lotgaming.xyz
    Old 03-28-2021 , 04:11   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #3

    working fine ..thanks for this plugin
    __________________
    raj kaul is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 03-28-2021 , 06:32   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #4

    PHP Code:

    public void Event_player_death(Event event, const char[] namebool dontBroadcast)
    {
        
    int client GetClientOfUserId(event.GetInt("userid"));
        if (!
    client)
        {
            return;
        }
        
        
    int attacker GetClientOfUserId(event.GetInt("attacker"));
        if (!
    attacker || client == attacker)
        {
            return;
        }
        
        
    // attacker on ground
        
    if (GetEntityFlags(iAttacker) & FL_ONGROUND)
        {
            return;
        }
        
        
    char sWeapon[64];
        
    event.GetString("weapon"sWeaponsizeof sWeapon);
        
        if (!
    IsWeaponHasExtendedInfo(sWeapon))
        {
            return;
        }
        
        
    Format(sWeaponsizeof sWeapon"%s_js_bz"sWeapon);
        
        
    char sBuf[PLATFORM_MAX_PATH];
        
    FormatEx(sBufsizeof(sBuf), "%s%s.svg"sPathsWeapon);
        
        if (!
    FileExists(sBuf))
        {
            return;
        }
        
        
    event.SetString("weapon"sWeapon);

    You can do this, no need to create another event ...
    __________________
    Ilusion9 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 03-28-2021 , 13:32   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #5

    Quote:
    Originally Posted by Ilusion9 View Post
    PHP Code:

    public void Event_player_death(Event event, const char[] namebool dontBroadcast)
    {
        
    int client GetClientOfUserId(event.GetInt("userid"));
        if (!
    client)
        {
            return;
        }
        
        
    int attacker GetClientOfUserId(event.GetInt("attacker"));
        if (!
    attacker || client == attacker)
        {
            return;
        }
        
        
    // attacker on ground
        
    if (GetEntityFlags(iAttacker) & FL_ONGROUND)
        {
            return;
        }
        
        
    char sWeapon[64];
        
    event.GetString("weapon"sWeaponsizeof sWeapon);
        
        if (!
    IsWeaponHasExtendedInfo(sWeapon))
        {
            return;
        }
        
        
    Format(sWeaponsizeof sWeapon"%s_js_bz"sWeapon);
        
        
    char sBuf[PLATFORM_MAX_PATH];
        
    FormatEx(sBufsizeof(sBuf), "%s%s.svg"sPathsWeapon);
        
        if (!
    FileExists(sBuf))
        {
            return;
        }
        
        
    event.SetString("weapon"sWeapon);

    You can do this, no need to create another event ...
    Thanks.

    Edit: doesn't that risk breaking horrible plugins that use the weapon's name?
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334

    Last edited by eyal282; 03-28-2021 at 13:35.
    eyal282 is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 03-28-2021 , 17:13   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #6

    Quote:
    Originally Posted by eyal282 View Post
    Edit: doesn't that risk breaking horrible plugins that use the weapon's name?
    No, if they use the Post method (instead of Pre)
    And if they use the Pre method, they already get the old weapon name. If you create another method, they will get 2 events (old and new name). Blocking an event doesn't block the HookEvent method from other plugins.
    __________________
    Ilusion9 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 03-28-2021 , 18:40   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #7

    Quote:
    Originally Posted by Ilusion9 View Post
    No, if they use the Post method (instead of Pre)
    And if they use the Pre method, they already get the old weapon name. If you create another method, they will get 2 events (old and new name). Blocking an event doesn't block the HookEvent method from other plugins.
    I'll get to it then.
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    codeinecrazy09
    New Member
    Join Date: Jun 2021
    Old 06-01-2021 , 21:20   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #8

    install instructions please? thanks
    codeinecrazy09 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 06-02-2021 , 00:59   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #9

    Quote:
    Originally Posted by codeinecrazy09 View Post
    install instructions please? thanks
    Remind me on discord later today:
    Eyal282#1334
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    bongotrommler
    Senior Member
    Join Date: Feb 2013
    Location: GG-Elite.Net
    Old 06-02-2021 , 10:26   Re: [CS:GO][Untested] Jump Shot icon in Kill Feed
    Reply With Quote #10

    Quote:
    Originally Posted by codeinecrazy09 View Post
    install instructions please? thanks
    smx goes to plugins

    bz2-files --> FastDL into materials/panorama/images/icons/equipment/
    svg-files --> gameserver into materials/panorama/images/icons/equipment/

    done.
    bongotrommler is offline
    Reply



    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 11:06.


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