Skip to content

Fix L4D2FWA_PenetrationNumLayers#31

Open
jensewe wants to merge 2 commits intoSilvDev:mainfrom
jensewe:fix_fwa
Open

Fix L4D2FWA_PenetrationNumLayers#31
jensewe wants to merge 2 commits intoSilvDev:mainfrom
jensewe:fix_fwa

Conversation

@jensewe
Copy link
Contributor

@jensewe jensewe commented Feb 16, 2026

L4D1

  v36 = (float)*((int *)this + 603);
  v37 = KeyValues::GetFloat(a2, "PenetrationNumLayers", v36);
  *((_DWORD *)this + 603) = (int)v37;

L4D2

  v43 = KeyValues::GetFloat(a3, "PenetrationNumLayers", (float)*((int *)this + 786));
  v5 = *((float *)this + 787);
  *((_DWORD *)this + 786) = (int)v43;

Seems g_bLeft4Dead2 was checked at the previously wrong placed fix, but both have the attribute set as int.

Fix:

  • Fixed storing float to int variable when setting float attribute "L4D2FWA_PenetrationNumLayers".

Fix:
- Fixed storing float to int variable when setting float attribute "L4D2FWA_PenetrationNumLayers".
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.

1 participant

Comments