Skip to content

Commit

Permalink
Re-add dhooks crash fix (not fixed yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alienmario committed Dec 12, 2024
1 parent 8054766 commit ac06f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gamedata/modelchooser.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"Functions"
{
"CBaseEntity::SetModel"
"CBaseEntity::SetModel_" // https://github.com/alliedmodders/sourcemod/issues/1879
{
"offset" "CBaseEntity::SetModel"
"hooktype" "entity"
Expand Down
2 changes: 1 addition & 1 deletion scripting/ultimate_modelchooser.sp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void OnPluginStart()
SetFailState("Failed to load \"modelchooser\" gamedata");
}

LoadDHookVirtual(gamedata, hkSetModel, "CBaseEntity::SetModel");
LoadDHookVirtual(gamedata, hkSetModel, "CBaseEntity::SetModel_");
LoadDHookVirtual(gamedata, hkDeathSound, "CBasePlayer::DeathSound");
LoadDHookVirtual(gamedata, hkSetAnimation, "CBasePlayer::SetAnimation");

Expand Down

0 comments on commit ac06f2f

Please sign in to comment.