After a long hiatus I came back to mess with the engine. Found another bug - when running, engine crashes when stamina falls down to some level. Not sure if this is related to HUD or stamina code, or something unrelated. Using RMB or LMB also leads to crashes, but I blame it on my makeshift, crude scripts that were made only to run the engine.