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

[NT] Kill Assists


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Agiel
Junior Member
Join Date: Jan 2010
Plugin ID:
1440
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Neotokyo
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds kill assist points to Neotokyo.
    Old 01-31-2010 , 07:28   [NT] Kill Assists
    Reply With Quote #1

    Wanted to get into plugin coding so I wrote this fairly simple plugin for Neotokyo.

    By default it gives one point to anyone who deals more than 50 damage to an enemy without getting the kill. It's written to calculate who did the most damage so it's possible to set the damage threshold lower than 50. There is also an option to only give a half point for a kill assist, so to make it TF2 style you'd set the damage threshold to 1 and give a half point.

    sm_nt_assist_enabled - Enables or disables kill assist points. (Default 1)
    sm_nt_assist_damage - How much damage needed to score a kill assist. (Default 50, Min 1, Max 99)
    sm_nt_assist_half - Whether to give one point or just a half. (Default 0)
    sm_nt_assist_notifications - Whether to send a chat notification to the player receiving the assist point. (Default 1)

    Changelog
    1.0.0
    * Initial release.
    1.0.1
    * Added log message for HLX:CE support etc.
    Attached Files
    File Type: sp Get Plugin or Get Source (nt_assist.sp - 1167 views - 6.3 KB)

    Last edited by Agiel; 02-01-2010 at 15:58.
    Agiel is offline
    R3M*
    Member
    Join Date: May 2009
    Location: Germany
    Old 02-01-2010 , 04:40   Re: [NT] Kill Assists
    Reply With Quote #2

    Nice!

    Can you please add a logline for every kill assists (eg. Kill_Assist), so we can trigger it with HLX:CE as well?

    Thanks in advance!

    http://forums.interwavestudios.com/t...r-css-and-hlx/
    R3M* is offline
    Agiel
    Junior Member
    Join Date: Jan 2010
    Old 02-01-2010 , 08:28   Re: [NT] Kill Assists
    Reply With Quote #3

    Sure. I have no idea what format HLX:CE wants but I'll look into it when I get home.
    Agiel is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 02-01-2010 , 09:33   Re: [NT] Kill Assists
    Reply With Quote #4

    Quote:
    Originally Posted by Agiel View Post
    Sure. I have no idea what format HLX:CE wants but I'll look into it when I get home.
    http://developer.valvesoftware.com/wiki/HL_Log_Standard

    http://forums.alliedmods.net/showthread.php?t=100084
    Code:
    "playername<userid><steamid><teamname>" triggered "kill_assist"
    psychonic is offline
    Agiel
    Junior Member
    Join Date: Jan 2010
    Old 02-01-2010 , 16:01   Re: [NT] Kill Assists
    Reply With Quote #5

    Ok, I updated the op. The action is "kill_assist" and it's triggered every time a player gets an assist point, no matter what sm_nt_assist_half is set to.
    Agiel is offline
    R3M*
    Member
    Join Date: May 2009
    Location: Germany
    Old 02-02-2010 , 09:15   Re: [NT] Kill Assists
    Reply With Quote #6

    Work like a charm! +karma
    R3M* is offline
    gaissi
    Senior Member
    Join Date: Sep 2009
    Old 02-10-2010 , 13:02   Re: [NT] Kill Assists
    Reply With Quote #7

    Hey,

    I get this error:
    Quote:
    L 02/10/2010 - 19:01:25: [SM] Native "HookEvent" reported: Game event "game_round_start" does not exist
    L 02/10/2010 - 19:01:25: [SM] Displaying call stack trace for plugin "nt_assist.smx":
    L 02/10/2010 - 19:01:25: [SM] [0] Line 51, /home/groups/alliedmodders/forums/files/6/9/5/5/6/58824.attach::OnPluginStart()
    Can you explain me how i can fix it?
    gaissi is offline
    Agiel
    Junior Member
    Join Date: Jan 2010
    Old 02-11-2010 , 08:56   Re: [NT] Kill Assists
    Reply With Quote #8

    Could you explain what you are doing to get the error?
    Agiel is offline
    gaissi
    Senior Member
    Join Date: Sep 2009
    Old 02-11-2010 , 08:58   Re: [NT] Kill Assists
    Reply With Quote #9

    I only install the Plugin on Sourcemod 1.3...

    Copy the smx file into addons/sourcemod/plugins...
    gaissi is offline
    Agiel
    Junior Member
    Join Date: Jan 2010
    Old 02-11-2010 , 10:58   Re: [NT] Kill Assists
    Reply With Quote #10

    Are you running the latest version of Neotokyo? Before the patch the event was called "game_round_restart".
    Agiel 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 08:28.


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