diff --git a/src/component/fps.cpp b/src/component/fps.cpp index 7e1a526b..bd773243 100644 --- a/src/component/fps.cpp +++ b/src/component/fps.cpp @@ -65,6 +65,11 @@ namespace fps void draw_speed() { + if (!game::CL_IsCgameInitialized() || !game::g_entities[0].client) + { + return; + } + const auto speed = sqrt(pow(game::g_entities[0].client->velocity[0], 2) + pow(game::g_entities[0].client->velocity[1], 2) + pow(game::g_entities[0].client->velocity[2], 2)); diff --git a/src/game/scripting/function_tables.cpp b/src/game/scripting/function_tables.cpp index dc155550..1eb7ca39 100644 --- a/src/game/scripting/function_tables.cpp +++ b/src/game/scripting/function_tables.cpp @@ -717,7 +717,7 @@ namespace scripting {"nullsub_367", 0x8079}, {"nullsub_533", 0x807A}, {"sub_503ad0", 0x807B}, - {"sub_503af0", 0x807C}, + {"playloopsound", 0x807C}, {"sub_503c10", 0x807D}, {"sub_503c90", 0x807E}, {"sub_503d20", 0x807F}, @@ -1772,13 +1772,9 @@ namespace scripting std::unordered_map token_map = { + {"init", 521}, {"main", 616}, {"player", 794}, {"default_start", 10126}, }; - - std::unordered_map file_list = - { - - }; }