diff --git a/src/client/game/scripting/function_tables.cpp b/src/client/game/scripting/function_tables.cpp index 1c171769..7773593b 100644 --- a/src/client/game/scripting/function_tables.cpp +++ b/src/client/game/scripting/function_tables.cpp @@ -359,8 +359,8 @@ namespace scripting {"missile_deleteattractor", 0x1AD}, // 0x4D7730 {"newhudelem", 0x1AF}, // 0x4C2570 {"newclienthudelem", 0x1B0}, // 0x4C2510 - {"isplayer", 0x1B2}, // 0x5C8350, time related - {"isplayernumber", 0x1B3}, // 0x504650 + {"resettimeout", 0x1B2}, // 0x5C8350, time related + {"isplayer", 0x1B3}, // 0x504650 {"getpartname", 0x1B5}, // 0x4EDE60 {"weaponfiretime", 0x1B6}, // 0x4EF400 {"weaponclipsize", 0x1B7}, // 0x4EC650 diff --git a/src/client/game/scripting/lua/value_conversion.cpp b/src/client/game/scripting/lua/value_conversion.cpp index 489daa18..35049d7c 100644 --- a/src/client/game/scripting/lua/value_conversion.cpp +++ b/src/client/game/scripting/lua/value_conversion.cpp @@ -272,6 +272,11 @@ namespace scripting::lua return {value.as()}; } + if (value.is()) + { + return convert_function(value); + } + return {}; }