AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Detecting ballistic shield with ray (https://forums.alliedmods.net/showthread.php?t=329820)

kossolax 01-09-2021 12:39

Detecting ballistic shield with ray
 
Hello,

Anyone was able to detect the csgo shield with a ray trace ? I couldn't find how to.

The ray it-self is good, ent is not the ballistic shield.
PHP Code:

Handle trace TR_TraceRayFilterEx(srcangMASK_SHOTRayType_InfiniteEntityFilterSelfent);
TR_EnumerateEntities(srcangMASK_ALLRayType_Infiniteenumeratorent); 

Things I've tried:
- TR_TraceRayFilterEx + MASK_ALL
- TR_EnumerateEntities + MASK_ALL
- TR_GetSurfaceProps
- TR_GetSurfaceFlags
- TR_GetHitBoxIndex
- TR_GetHitGroup
- TR_GetPhysicsBone

The csgo shield use this model: w_eq_shield.mdl. The model has an hitbox and collision model. The ray works if we spam this model as prop_dynamic.

Thanks,
K.


All times are GMT -4. The time now is 12:16.

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