Skip to content

Commit ac06f2f

Browse files
committed
Re-add dhooks crash fix (not fixed yet)
1 parent 8054766 commit ac06f2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gamedata/modelchooser.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"Functions"
66
{
7-
"CBaseEntity::SetModel"
7+
"CBaseEntity::SetModel_" // https://github.com/alliedmodders/sourcemod/issues/1879
88
{
99
"offset" "CBaseEntity::SetModel"
1010
"hooktype" "entity"

scripting/ultimate_modelchooser.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void OnPluginStart()
100100
SetFailState("Failed to load \"modelchooser\" gamedata");
101101
}
102102

103-
LoadDHookVirtual(gamedata, hkSetModel, "CBaseEntity::SetModel");
103+
LoadDHookVirtual(gamedata, hkSetModel, "CBaseEntity::SetModel_");
104104
LoadDHookVirtual(gamedata, hkDeathSound, "CBasePlayer::DeathSound");
105105
LoadDHookVirtual(gamedata, hkSetAnimation, "CBasePlayer::SetAnimation");
106106

0 commit comments

Comments
 (0)