dreamstalker / rehlds

Reverse-engineered HLDS
GNU General Public License v3.0
625 stars 165 forks source link

TraceHull doesn't work for players #981

Open golukon opened 10 months ago

golukon commented 10 months ago

engfunc(EngFunc_TraceHull, ..., DONT_IGNORE_MONSTERS, ...) does not react to players if the cvar sv_force_ent_intersection is "1". That is, it doesn't matter whether the argument is DONT_IGNORE_MONSTERS or IGNORE_MONSTERS, the result is the same. I guess the problem is in the condition in the function "SV_ClipToLinks" `if (touch->v.solid != SOLID_SLIDEBOX

ifdef REHLDS_FIXES

        || sv_force_ent_intersection.value

endif

) { if (!SV_CheckSphereIntersection(touch, clip->start, clip->end)) continue; }` in the file "world.cpp" or in the function "SV_CheckSphereIntersection" in the file "r_studio.cpp"