AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get touched hitzone? (https://forums.alliedmods.net/showthread.php?t=252062)

FromTheFuture 11-24-2014 18:49

How to get touched hitzone?
 
Hi. How to get touched hit zone with a entity to player?
Entity = Hegrenade.
PHP Code:

public Ham_Touche_Grenade_Post(grenadevictim) { 
        
    if (!
pev_validgrenade ))
        return;
        
    if (!
is_user_alivevictim )) return;



RateX 11-25-2014 06:30

Re: How to get touched hitzone?
 
Try this: get grenade's origin and velocity, use traceline with (origin+velocity) is the end position, then check the result for the body part (TR_iHitgroup).


All times are GMT -4. The time now is 17:37.

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