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

Solved Hook paranted entity damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 04-12-2020 , 07:53   Hook paranted entity damage
Reply With Quote #1

I attach a prop_dynamic to a prop_physics via SetParent input.
Both entities have collision enabled. To detect damage to the prop_dynamic entity I use TraceAttack and OnTakeDamage hooks.
The problem is that the hooks only work if the prop_dynamic is not paranted to the prop_physics. When I attach the entity the hooks stop working. When I detach the entity the hooks work again.
Is it possible to bypass that behaviour?

Last edited by kadet.89; 04-12-2020 at 13:10. Reason: Changed $collisionjoints to $collisionmodel, the problem gone
kadet.89 is offline
Send a message via Skype™ to kadet.89
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 03:32.


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