From 5f208d6820f42ab138a3c7144728787bd988004c Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Sat, 14 Sep 2024 22:45:35 +0100 Subject: Add basic button input HUD Committer's note: this is heavily modified from the original code contributed by woz (and somewhat improved by bill and aciidz). Copyright notices reflect joint authorship accordingly. woz still gets commit authorship though because it feels wrong to yoink that from someone. :^) And yes, the original code was written in 2022. Time flies. A lot of the code is still kind of hacky and ugly and I'd like to improve it later but there's other things to do so that can wait. --- src/autojump.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/autojump.c') diff --git a/src/autojump.c b/src/autojump.c index cc44573..64ed436 100644 --- a/src/autojump.c +++ b/src/autojump.c @@ -35,7 +35,6 @@ REQUIRE_GLOBAL(factory_client) // note: server will never be null DEF_CVAR(sst_autojump, "Jump upon hitting the ground while holding space", 0, CON_REPLICATE | CON_DEMO | CON_HIDDEN) -#define IN_JUMP 2 #define NIDX 256 // *completely* arbitrary lol static bool justjumped[NIDX] = {0}; static inline int handleidx(ulong h) { return h & (1 << 11) - 1; } -- cgit v1.2.3-54-g00ecf