Merge pull request #284 from diamante0018/fix-format-string

Fix format string in gsc function
This commit is contained in:
Dss0 2022-05-28 15:00:15 +02:00 committed by GitHub
commit 7fccb48b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,5 +417,8 @@ namespace Components
Utils::Hook(0x41BED2, ScriptExtension::Scr_SetObjectFieldStub, HOOK_CALL).install()->quick(); // SetEntityFieldValue
Utils::Hook(0x5FBF01, ScriptExtension::Scr_SetClientFieldStub, HOOK_CALL).install()->quick(); // Scr_SetObjectField
Utils::Hook(0x4FF413, ScriptExtension::Scr_GetEntityFieldStub, HOOK_CALL).install()->quick(); // Scr_GetObjectField
// Fix format string in Scr_RandomFloatRange
Utils::Hook::Set<const char*>(0x5F10C6, "Scr_RandomFloatRange parms: %f %f ");
}
}