Raised This Month: $51 Target: $400
 12% 

Adding person to assist list, without making damage.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 03-18-2018 , 05:35   Adding person to assist list, without making damage.
Reply With Quote #1

Hello. How to add person to killing assist list, even he is not making damage at this moment. Let's say I have smoker zombie class and I want person to have assist because he dragged that person. Game CS:GO
iGANGNAM is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-18-2018 , 06:44   Re: Adding person to assist list, without making damage.
Reply With Quote #2

Hook death event and update params?
__________________
Neuro Toxin is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 03-18-2018 , 08:22   Re: Adding person to assist list, without making damage.
Reply With Quote #3

Pre hook "player_hurt" event and trick the game, maybe?
cravenge is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 03-18-2018 , 08:57   Re: Adding person to assist list, without making damage.
Reply With Quote #4

When a smoker begins to drag, this code?

Code:
new inflictor = GetPlayerWeaponSlot(Smoker, 3); // You need to replace 3 with the knife slot, no clue which slot is the knife so you gotta try all 5 slots until you locate it.

if(inflictor != -1)
{
	new Health = GetEntProp(DragVictim, Prop_Send, "m_iHealth");
	SetEntityHealth(DragVictim, Health + 1);
	SDKHooks_TakeDamage(DragVictim, inflictor, Smoker, 1.0);
}
Didn't even try to compile so tell me if everything works, you need to include sdkhooks.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Reply



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 12:50.


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