Archive incari-client (client, 26.3, clean)

This commit is contained in:
2026-11-28 00:54:38 -06:00
parent 7a6174687f
commit 12838e838c
2383 changed files with 280266 additions and 0 deletions
@@ -0,0 +1,12 @@
// Sprint and sneak as held, from the module's latches.
fn incari_togglesprint_keys(game: &crate::game::Game<'_>, sprint: &mut bool, sneak: &mut bool) {
use crate::game::{incari_client as c, incari_togglesprint as m};
let Some((sprint_mode, sneak_mode)) = c::settings(m::ID, |s| (s.choice("sprint"), s.choice("sneak"))) else {
m::update(m::Keys::unlatch);
return;
};
if game.native_ui_screen() == "dead" {
m::update(m::Keys::unlatch);
}
(*sprint, *sneak) = m::update(|k| k.tick(*sprint, *sneak, sprint_mode, sneak_mode));
}