[NT] Kill Assists
1 Attachment(s)
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. |
Re: [NT] Kill Assists
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/ |
Re: [NT] Kill Assists
Sure. I have no idea what format HLX:CE wants but I'll look into it when I get home.
|
Re: [NT] Kill Assists
Quote:
http://forums.alliedmods.net/showthread.php?t=100084 Code:
"playername<userid><steamid><teamname>" triggered "kill_assist" |
Re: [NT] Kill Assists
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.
|
Re: [NT] Kill Assists
Work like a charm! +karma :wink:
|
Re: [NT] Kill Assists
Hey,
I get this error: Quote:
|
Re: [NT] Kill Assists
Could you explain what you are doing to get the error?
|
Re: [NT] Kill Assists
I only install the Plugin on Sourcemod 1.3...
Copy the smx file into addons/sourcemod/plugins... |
Re: [NT] Kill Assists
Are you running the latest version of Neotokyo? Before the patch the event was called "game_round_restart".
|
All times are GMT -4. The time now is 04:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.