Skip to content

Fix multiple func_breakable_surf penetrations case#1686

Draft
Rainyan wants to merge 3 commits intoNeotokyoRebuild:masterfrom
Rainyan:bug/breakable-surf-pen
Draft

Fix multiple func_breakable_surf penetrations case#1686
Rainyan wants to merge 3 commits intoNeotokyoRebuild:masterfrom
Rainyan:bug/breakable-surf-pen

Conversation

@Rainyan
Copy link
Collaborator

@Rainyan Rainyan commented Feb 14, 2026

Description

Fix bullet penetration through multiple func_breakable_surf panes.

Toolchain

  • Windows MSVC VS2022

Linked Issues

@Rainyan Rainyan requested a review from a team February 14, 2026 17:43
@DESTROYGIRL
Copy link
Contributor

Getting a crash with this.

  1. Go into firing range
  2. Select support and PZ
  3. Start tactical trial
  4. Shoot the further away dummy in the first room
  5. crash
image
    client.dll!IntersectRayWithBox(const Vector & vecRayStart, const Vector & vecRayDelta, const Vector & boxMins, const Vector & boxMaxs, float flTolerance, CBaseTrace * pTrace, float * pFractionLeftSolid) Line 1211    C++
     client.dll!ClipRayToHitbox(const Ray_t & ray, mstudiobbox_t * pbox, matrix3x4_t & matrix, CGameTrace & tr) Line 5305    C++
     client.dll!TraceToStudio(IPhysicsSurfaceProps * pProps, const Ray_t & ray, CStudioHdr * pStudioHdr, mstudiohitboxset_t * set, matrix3x4_t * * hitboxbones, int fContentsMask, const Vector & vecOrigin, float flScale, CGameTrace & tr) Line 5454    C++
     client.dll!C_BaseAnimating::TestHitboxes(const Ray_t & ray, unsigned int fContentsMask, CGameTrace & tr) Line 5434    C++
     engine.dll!00007ffdeb6c0a44()    Unknown
     engine.dll!00007ffdeb6bf732()    Unknown
     engine.dll!00007ffdeb6beb96()    Unknown
     client.dll!UTIL_TraceLine(const Vector & vecAbsStart, const Vector & vecAbsEnd, unsigned int mask, ITraceFilter * pFilter, CGameTrace * ptr) Line 272    C++
     client.dll!C_BaseEntity::FireBullets(const FireBulletsInfo_t & info) Line 1890    C++
     client.dll!C_BaseEntity::HandleShotPenetration(const FireBulletsInfo_t & info, const CGameTrace & tr, const Vector & vecDir, ITraceFilter * pTraceFilter) Line 2325    C++
     client.dll!C_BaseEntity::FireBullets(const FireBulletsInfo_t & info) Line 2162    C++
     client.dll!C_BaseEntity::HandleShotPenetration(const FireBulletsInfo_t & info, const CGameTrace & tr, const Vector & vecDir, ITraceFilter * pTraceFilter) Line 2325    C++
     client.dll!C_BaseEntity::FireBullets(const FireBulletsInfo_t & info) Line 2162    C++

@Rainyan Rainyan marked this pull request as draft February 14, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants