Raised This Month: $94 Target: $400
 23% 

Kill assist (for CS)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Emp` (115)
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-30-2009 , 06:50   Kill assist (for CS)
Reply With Quote #1

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 )

That's all, hope you guys like it
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")
Attached Files
File Type: sma Get Plugin or Get Source (kill_assist.sma - 21736 views - 11.3 KB)
__________________

Last edited by Hunter-Digital; 08-23-2009 at 00:51. Reason: new version, v1.2b
Hunter-Digital is offline
EvolDay
Senior Member
Join Date: Apr 2008
Location: Canada
Old 04-30-2009 , 06:54   Re: Kill assist
Reply With Quote #2

Nice seems like a cool thing i can add to my pub, ill try it out tomorrow. Thanks
__________________
EvolDay is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-30-2009 , 07:24   Re: Kill assist
Reply With Quote #3

holy fck! thats nice!
__________________
xPaw is offline
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 04-30-2009 , 07:26   Re: Kill assist
Reply With Quote #4

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.
__________________
shine771 is offline
Simax
Member
Join Date: Apr 2009
Old 04-30-2009 , 07:31   Re: Kill assist
Reply With Quote #5

Cool, test it
Simax is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-30-2009 , 08:38   Re: Kill assist
Reply With Quote #6

Sounds cool, Nice Job!!!
__________________
alan_el_more is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-30-2009 , 09:23   Re: Kill assist
Reply With Quote #7

cool, ill check this on dod, gj what ever the result is..
__________________
Dr.G is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-30-2009 , 09:43   Re: Kill assist
Reply With Quote #8

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 ?
__________________
Hunter-Digital is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-30-2009 , 09:46   Re: Kill assist [to be fixed...]
Reply With Quote #9

didnt work for dod. all death messages were just blocked
__________________
Dr.G is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-30-2009 , 09:51   Re: Kill assist
Reply With Quote #10

Quote:
Originally Posted by Dr.G View Post
didnt work for dod. all death messages were just blocked
well, this plugin blocks all death messages and sents them again... what's the deathmsg's params for dod, does it have headshot ? any errors in hlds console ?

-------------------

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
__________________
Hunter-Digital 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 20:12.


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