AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Figure out where on body the entity hits? (https://forums.alliedmods.net/showthread.php?t=56150)

mateo10 06-07-2007 16:15

Figure out where on body the entity hits?
 
Is there a way to find out where on the body an entity hits? Like if you throw your gun at someones head, will you be able to look if that gun really hit the head with a function/stock or something?

Thanks in advance,
MaTTe

regalis 06-07-2007 17:08

Re: Figure out where on body the entity hits?
 
You can register touch, but thats for the whole body...
As far as i know and understand are tracelines only for bullet hits...

greetz regalis

_Master_ 06-08-2007 05:41

Re: Figure out where on body the entity hits?
 
AFAIK there is no way of doing this.
I could be wrong but FM_Touch relies on bbox to do the "touching"

VEN 06-08-2007 12:42

Re: Figure out where on body the entity hits?
 
There is no good way although in some of the cases you can be quite sure that entity is hit player's head/chest/etc. You can trace few lines from different entity-box corners in direction of entity velocity vector.


All times are GMT -4. The time now is 10:40.

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