Raised This Month: $ Target: $400
 0% 

[CS:GO] Get body part ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 08-19-2015 , 13:54   [CS:GO] Get body part ?
Reply With Quote #1

I'm wondering if it's possible to detect where you get hurt, for exemple, when someone shot you (wiht the AWP) in the foots, you would have like 98 damages, but a headshot would kill you.

How the game detect if the shot was in the foots or any where else ?
__________________
Want to check my plugins ?
Arkarr is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-19-2015 , 14:02   Re: [CS:GO] Get body part ?
Reply With Quote #2

hitgroup & hitbox

-> https://developer.valvesoftware.com/wiki/Hitbox view with hlmv.exe in bin directory

Last edited by KissLick; 08-19-2015 at 14:04.
KissLick is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 08-19-2015 , 15:29   Re: [CS:GO] Get body part ?
Reply With Quote #3

Quote:
Originally Posted by KissLick View Post
hitgroup & hitbox

-> https://developer.valvesoftware.com/wiki/Hitbox view with hlmv.exe in bin directory
I know... But how you can detecte where a player get hit, with sourcepawn.
__________________
Want to check my plugins ?
Arkarr is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-19-2015 , 15:38   Re: [CS:GO] Get body part ?
Reply With Quote #4

sdkhook_takedamage has the hitgroup iirc
Miu is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-19-2015 , 18:45   Re: [CS:GO] Get body part ?
Reply With Quote #5

// TraceAttack
Action:public(victim, &attacker, &inflictor, &Float:damage, &damagetype, &ammotype, hitbox, hitgroup),
Mitchell is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 08-20-2015 , 02:02   Re: [CS:GO] Get body part ?
Reply With Quote #6

Thanks ! That's exactly what I need.
__________________
Want to check my plugins ?
Arkarr 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:15.


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