AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Kill assist (for CS) (https://forums.alliedmods.net/showthread.php?t=91360)

Hunter-Digital 04-30-2009 05:50

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")

EvolDay 04-30-2009 05:54

Re: Kill assist
 
Nice seems like a cool thing i can add to my pub, ill try it out tomorrow. Thanks :)

xPaw 04-30-2009 06:24

Re: Kill assist
 
holy fck! thats nice!

shine771 04-30-2009 06:26

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.

Simax 04-30-2009 06:31

Re: Kill assist
 
Cool, test it :D

alan_el_more 04-30-2009 07:38

Re: Kill assist
 
Sounds cool, Nice Job!!! :up:

Dr.G 04-30-2009 08:23

Re: Kill assist
 
cool, ill check this on dod, gj what ever the result is..

Hunter-Digital 04-30-2009 08:43

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 ? :(

Dr.G 04-30-2009 08:46

Re: Kill assist [to be fixed...]
 
didnt work for dod. all death messages were just blocked

Hunter-Digital 04-30-2009 08:51

Re: Kill assist
 
Quote:

Originally Posted by Dr.G (Post 817700)
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 :?


All times are GMT -4. The time now is 04:12.

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