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

CS:S Detect if one player can hurt another player


Post New Thread Reply   
 
Thread Tools Display Modes
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 10-24-2016 , 13:53   Re: CS:S Detect if one player can hurt another player
Reply With Quote #11

8guawong, You suggest that I should make a fake takadamage call?.. It might work, but how can I make it? And I'm not shur about the result of this call, where will I catch it?

Last edited by kadet.89; 10-24-2016 at 14:32.
kadet.89 is offline
Send a message via Skype™ to kadet.89
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 10-25-2016 , 03:15   Re: CS:S Detect if one player can hurt another player
Reply With Quote #12

Quote:
Originally Posted by kadet.89 View Post
8guawong, You suggest that I should make a fake takadamage call?.. It might work, but how can I make it? And I'm not shur about the result of this call, where will I catch it?
no i was just saying you can hook that and do what you want before the damage is given (which you probably already know)

would it be possible for you to give us more details on what you want to achieve?
__________________
8guawong is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 10-25-2016 , 11:46   Re: CS:S Detect if one player can hurt another player
Reply With Quote #13

8guawong, the players may never see/shoot/stub each other and I need to know there relations in random time. Literally I need to know what would happen if (hypothetically) one player shoots the other player. The result - the bullet hits the other player i.e. they are enemies, or does not affect so they are friends. In other words I need to know relations between two random players in random time. The players may or may not be in the same team.

Last edited by kadet.89; 10-25-2016 at 11:52.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-25-2016 , 12:10   Re: CS:S Detect if one player can hurt another player
Reply With Quote #14

You have to test, ex. SDKHooks OnTakeDamagePost and look damge value.
Otherwise this is difficult/complex to regognice other plugins behavier if those plugins not have own "global forwards"
Bacardi 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 09:03.


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