View Single Post
Author Message
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 01-09-2021 , 12:39   Detecting ballistic shield with ray
Reply With Quote #1

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.
kossolax is offline