Skip to content

Commit

Permalink
Fixed an issue that size_of_frame was not found on engine 8684.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Dec 10, 2024
1 parent 78905e0 commit e22843a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/BulletPhysics/BaseRagdollObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void CBaseRagdollObject::Update(CPhysicObjectUpdateContext* ObjectUpdateContext)
if (!CalculateOverrideActivityType(playerState, &iNewActivityType, &iNewAnimControlFlags))
{
StudioGetActivityType(m_model, playerState, &iNewActivityType, &iNewAnimControlFlags);
}
}

if (m_playerindex == m_entindex)
{
Expand Down
6 changes: 6 additions & 0 deletions Plugins/BulletPhysics/privatehook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,11 @@ void Engine_FillAddreess(void)

if (1)
{
if (g_dwEngineBuildnum <= 8684)
{
size_of_frame = 0x42B8;
}

typedef struct
{
int disableFog_instcount;
Expand Down Expand Up @@ -936,6 +941,7 @@ void Engine_FillAddreess(void)

Sig_VarNotFound(cl_frames);
Sig_VarNotFound(cl_parsecount);
Sig_VarNotFound(size_of_frame);
}

if (1)
Expand Down
6 changes: 6 additions & 0 deletions Plugins/Renderer/gl_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3732,6 +3732,11 @@ void R_FillAddress(void)

if (1)
{
if (g_dwEngineBuildnum <= 8684)
{
size_of_frame = 0x42B8;
}

typedef struct
{
int disableFog_instcount;
Expand Down Expand Up @@ -4055,6 +4060,7 @@ void R_FillAddress(void)
Sig_VarNotFound(r_blend);
Sig_VarNotFound(cl_frames);
Sig_VarNotFound(cl_parsecount);
Sig_VarNotFound(size_of_frame);
Sig_FuncNotFound(ClientDLL_DrawTransparentTriangles);

if (ctx.r_entorigin_candidate_count >= 2)
Expand Down

0 comments on commit e22843a

Please sign in to comment.