AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [NT] Kill Assists (https://forums.alliedmods.net/showthread.php?t=117349)

Agiel 01-31-2010 07:28

[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.

R3M* 02-01-2010 04:40

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/

Agiel 02-01-2010 08:28

Re: [NT] Kill Assists
 
Sure. I have no idea what format HLX:CE wants but I'll look into it when I get home.

psychonic 02-01-2010 09:33

Re: [NT] Kill Assists
 
Quote:

Originally Posted by Agiel (Post 1075063)
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"

Agiel 02-01-2010 16:01

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.

R3M* 02-02-2010 09:15

Re: [NT] Kill Assists
 
Work like a charm! +karma :wink:

gaissi 02-10-2010 13:02

Re: [NT] Kill Assists
 
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?

Agiel 02-11-2010 08:56

Re: [NT] Kill Assists
 
Could you explain what you are doing to get the error?

gaissi 02-11-2010 08:58

Re: [NT] Kill Assists
 
I only install the Plugin on Sourcemod 1.3...

Copy the smx file into addons/sourcemod/plugins...

Agiel 02-11-2010 10:58

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.