Raised This Month: $32 Target: $400
 8% 

CSS check if death is by back stab?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D.Moder
I uploaded 2 great gameplay plugins here
Join Date: Sep 2009
Location: Sin city
Old 03-21-2015 , 15:13   CSS check if death is by back stab?
Reply With Quote #1

I thought about getting the angle difference between attacker/victim, but I'm not exactly sure how to write it

any ideas?

c'mon guys Most of my questions are completely ignored, I'm starting to think my questions are either really dumb or I'm just not feeling the love
__________________
Creator of COD-Life (Half COD, Half Life)
https://forums.alliedmods.net/showthread.php?t=261162
twitter: @D_Moder_61216

Last edited by D.Moder; 03-21-2015 at 15:14.
D.Moder is offline
ici
Member
Join Date: Jan 2014
Old 03-21-2015 , 17:32   Re: CSS check if death is by back stab?
Reply With Quote #2

Hook SDKHook_OnTakeDamage and check if the weapon that dealt the damage is weapon_knife. If the damage is greater than 65, then it must be a backstab.
ici is offline
D.Moder
I uploaded 2 great gameplay plugins here
Join Date: Sep 2009
Location: Sin city
Old 03-21-2015 , 17:38   Re: CSS check if death is by back stab?
Reply With Quote #3

I need to make sure player was behind him, it's the most important thing in this bonus thing I'm making.
player gets lots of things if he kills someone completely unaware!

Or it could be: attacker not in victim's field of view!
__________________
Creator of COD-Life (Half COD, Half Life)
https://forums.alliedmods.net/showthread.php?t=261162
twitter: @D_Moder_61216
D.Moder is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-21-2015 , 17:44   Re: CSS check if death is by back stab?
Reply With Quote #4

I came up with this solution for CS 1.6, calculations might be same. Hope this helps you: https://forums.alliedmods.net/showpo...87&postcount=1
lazarev is offline
D.Moder
I uploaded 2 great gameplay plugins here
Join Date: Sep 2009
Location: Sin city
Old 03-22-2015 , 01:46   Re: CSS check if death is by back stab?
Reply With Quote #5

My amx knowledge isn't that much to conver that amx code to sourcepawn
__________________
Creator of COD-Life (Half COD, Half Life)
https://forums.alliedmods.net/showthread.php?t=261162
twitter: @D_Moder_61216
D.Moder is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 03-22-2015 , 06:19   Re: CSS check if death is by back stab?
Reply With Quote #6

4 days old - https://forums.alliedmods.net/showthread.php?t=260050
And if you wanna make sure that attacker is behind victim, check angles OR better (not sure about that, but I think it should work) check hitbox - seems that doesn't work.

Last edited by KissLick; 03-22-2015 at 06:28.
KissLick 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 12:36.


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