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

Hook attacks on a prop_dynamic?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Beaverboys
Member
Join Date: Aug 2012
Old 10-15-2015 , 04:47   Hook attacks on a prop_dynamic?
Reply With Quote #1

Does anyone know of a way to sense when a player attacks a prop_dynamic with a knife?
Beaverboys is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-15-2015 , 06:47   Re: Hook attacks on a prop_dynamic?
Reply With Quote #2

sdkhook that prop entity... with attack or touch
__________________
Do not Private Message @me
Bacardi is offline
Beaverboys
Member
Join Date: Aug 2012
Old 10-15-2015 , 07:48   Re: Hook attacks on a prop_dynamic?
Reply With Quote #3

Touch is not what I want, and I don't see any attack hooks except TraceAttack/TraceAttackPost. Will that work for this?
Beaverboys is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-15-2015 , 10:09   Re: Hook attacks on a prop_dynamic?
Reply With Quote #4

You have to make the entity be able to take damage, and hook the prop with SDKHooks_OnTakeDamage.
netprop: m_takedamage

Last edited by Mitchell; 10-15-2015 at 10:10.
Mitchell is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 10-16-2015 , 07:39   Re: Hook attacks on a prop_dynamic?
Reply With Quote #5

probably could hook single entity output on damaged also
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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:42.


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