Kill assist (for CS)
1 Attachment(s)
Kill assist v1.2b (for CS)
Author: Digi (aka Hunter-Digital) Description: When a player gets killed, this plugin checks if another player, from the same team, did enough damage to the victim so that he could be an accomplice to the kill and the assister will also receive a frag (all of these are cvar controlled) Configuration variables and default values: - amx_killassist_enable 0/1/2 (default: 1) Enable modes: 0 = Disable / 1 = Enable with DeathMsg / 2 = Enable with HUD message - amx_killassist_mindamage 1-9999 (default: 50) Minimum amount of damage to deal to be nominated for an assisted kill - amx_killassist_givefrags 0/1 (default: 1) Give or not give the assister frags - amx_killassist_givemoney 0-16000 (default: 300) Give or not give the assister some money, 0 disables, 1 or more sets how much money - amx_killassist_onlyalive 0/1 (default: 0) Only alive players can be of assistance in killing other players Modules required: - hamsandwich - cstrike - engine - fun Credits and thanks: - ConnorMcLeod - for helping with quick name changing - arkshine - for helping with name squeeze - joaquimandrade - code improvements - anakin_cstrike - code improvements - Nextra - more code improvements - ajvn - some ideas - Dores - and more code improvements - frearmer - hud message sugestion Some screenshots: [IMG]http://img253.**************/img253/4124/14436808.jpg[/IMG] [IMG]http://img403.**************/img403/1954/40100193.jpg[/IMG] [IMG]http://img299.**************/img299/9150/81448149.jpg[/IMG] (sorry about the botlike names xD :lol: ) That's all, hope you guys like it :P and if it's a good ideea I'll work on improving it, less modules, less module comunications and so on :} People who want to make this (or help me in making it) for other mods are free to do so :) Changelog: v1.2b - modified public variable to "killassist_version" and fixed deathmsg not showing when you suicide with worldspawn or an entity v1.2 - added no-name-changing support, prints HUD message, to activate, set enabled to 2 v1.1b - simplified cvar checking using clamp() v1.1 - converted to CS only, new cvars: amx_killassist_onlyalive, amx_killassist_givemoney, enriched cvar handling, added team cache and fixed some bugs v1.0d - Removed useless stuff xD, added pcvar on amx_mode and used formatex() v1.0c - Some modifications and added g_bOnline v1.0b - Fixed admin name bug v1.0 - Release Servers using Kill Assist: version < 1.2b version 1.2b+ This plugin can be compiled via Web Compiler (aka "Get Plugin") |
Re: Kill assist
Nice seems like a cool thing i can add to my pub, ill try it out tomorrow. Thanks :)
|
Re: Kill assist
holy fck! thats nice!
|
Re: Kill assist
I was making this a while ago. GJ. The reason why i didn't finish it was because i didn't think about a delay after set_user_info. :). I just couldn't get it to work.
|
Re: Kill assist
Cool, test it :D
|
Re: Kill assist
Sounds cool, Nice Job!!! :up:
|
Re: Kill assist
cool, ill check this on dod, gj what ever the result is..
|
Re: Kill assist
Pffffff, big fricken bug :<... when a player's name will be changed that contains an admin's name he's kicked before he can change his name back... damn, I was SURE I'll have a big fricken error like his... anyone know how to block the check for admin or something ? :(
|
Re: Kill assist [to be fixed...]
didnt work for dod. all death messages were just blocked
|
Re: Kill assist
Quote:
------------------- I think I got that bug fixed... I set amx_mode to 0 and then back to it's original value, shouldn't create any more problems... but didn't test it tough :? |
Re: Kill assist
|
Re: Kill assist
Now some tips. I just looked over the code. Probably i will look at the algorithm later.
__ Evaluate this: PHP Code:
Remove this: PHP Code:
|
Re: Kill assist
Quote:
|
Re: Kill assist
Quote:
Code:
This is a very nice plugin, gj! |
Re: Kill assist
Quote:
Quote:
and that ... well, I thought I'd make sure the var is cleared :} Quote:
------------------- New source uploaded, v1.0c =) Also, I want to make this to work for other mods as well, but I don't know team names for dod, etc... can anyone help me on making this for dod and other mods 'cause I don't know how they react and I don't have the games... |
Re: Kill assist
Was thinking about that when playing TF2, nice someone actually did it. However, here are some things you could/should change:
- Use get_cvar_pointer on amx_mode (check if it exists) - Use formatex where applicable - Why do you use g_bBlockDeathMsg? When you are not using emessages your plugin won't be able to block them anyway. |
Re: Kill assist
Quote:
- what's with formatex ? I didn't experiment much with formatting stuff, only format() - ooooh... riight :mrgreen: fixing :oops: thanks for input :} new source uploaded edit: oh, now I get the point with formatex, doesn't do a copyback, I don't use such thing in here so I could use that because it's faster... ok, done :P source uploaded... again |
Re: Kill assist
hamdatas.ini doesn't seems to support csv15 and cs13
Even setting @mirror cstrike csv15 i'm not sure it would work. |
Re: Kill assist
Awesome! I made request for similiar plugin 2 months ago. Maybe you can add more features:
http://forums.alliedmods.net/showthread.php?t=89068 |
Re: Kill assist
Really nice plugin, the code is extremely clean and just easy to read from. ;)
I have a few notes/questions though(probably stupid ones): 1) About iMinDamage = ch_pCVar_minDamage, why creating an extra var when you can just call it from first place iMinDamagePCVar or something? 2) About g_iDamage[p][iVictim] > iMinDamage, since it's the minimum damage, shouldn't it be: g_iDamage[p][iVictim] >= iMinDamage? 3) I think that this: PHP Code:
PHP Code:
4) I think you should create a global var to check the players' teams when they join a cretain team because not only that you use get_user_team everytime a player dies, you also use a loop and inside the loop you use that native so I just thought maybe it would be more efficient to create a global var instead... 5) Finally, I'd like to suggest you to add friendly fire compatibility. ;) Sorry for nagging and nice plugin! :up: |
Re: Kill assist
Thanks everyone for the tips, I'm off in a trip, I'll be back in 3-4 days :}
|
Re: Kill assist
Quote:
|
Re: Kill assist
Have you even tested it? It completely messed my player names. Once it changes the names, they stay like that. It is a bad idea to change names in first place.
|
Re: Kill assist
Quote:
|
Re: Kill assist
Quote:
gj for the plugin ;) |
Re: Kill assist
nice plugin +karma
|
Re: Kill assist
Well, I'm back :P so... let's see...
Quote:
ajvn, I read your topic, added some features :P dores, I like receiving tips from more experienced users, well... 1 - because it was initial set to get_pcvar_num() :lol: fixing 2 - yep, you're right, damn little things :P 3 - right again xD 4 - yes, I thought about that but here it comes the mod dilema =) I'll do it only for CS first and then focus on other mods then :) 5 - assisting on killing teammates ? WHY ? :lol: Alucard^, already thinked of that before I left :} Quote:
Quote:
New version uploaded, fixed and tested, should work perfectly on CS :) other mods... well, either help me do it or do it yourself :P I don't mind |
Re: Kill assist
Quote:
Quote:
|
Re: Kill assist (for CS)
wow i`m loving it !
gj man |
Re: Kill assist (for CS)
Anyone (else, because I have) tested the new version ? Works ok ? Any bugs ? Anything ?! :}
|
Re: Kill assist (for CS)
The commands u put won't work for me.
|
Re: Kill assist (for CS)
wich commands don't work.. ?
|
Re: Kill assist (for CS)
I like the plugin, but I don't like the name change because it will mess with people. Add in like a hud message for the person getting the assist with like +Assist or something.
|
Re: Kill assist (for CS)
Won't it spam/lag because of the name changes?
Nice idea :) |
Re: Kill assist (for CS)
Nope, because this is not verry likely to happen on EVERY kill... if it does, increase the min damage :P it would be awesome to just set it to 99 for those verry rare lost frags xD
I *could* make a bot and name it to the two player's name... but joining fake bots have alot of consequences on severs with different mods and stuff... one simple fact is the join hud and country plugins, and I don't know how to silent-join a bot :lol: |
Re: Kill assist (for CS)
Good Job, Hunter! :crab:
|
Re: Kill assist (for CS)
maybe u can add a message
|
Re: Kill assist (for CS)
huh ?
|
Re: Kill assist (for CS)
what do you need a message for? you can see the frags...
|
Re: Kill assist (for CS)
It would be nice to have a cvar to disable name changing and instead just write some message or something in the hud.
Awesome plugin, thank you... |
| All times are GMT -4. The time now is 05:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.