From a6367f64dd84c0ae5b39468825b383c31ce3f89b Mon Sep 17 00:00:00 2001 From: NullBite Date: Sun, 30 Oct 2022 20:35:34 -0400 Subject: [PATCH] Add debug logging for pings --- script.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script.lua b/script.lua index a7652a7..f953ea0 100644 --- a/script.lua +++ b/script.lua @@ -361,6 +361,7 @@ do end function ping.syncState(tbl) + logging.debug("ping.syncState") for k, v in pairs(tbl) do local_state[k]=v end @@ -841,6 +842,7 @@ end wheel[1]:newAction():title('test expression'):onLeftClick(function() ping.expressionTest() end) function ping.expressionTest() + logging.debug("ping.expressionTest") changeExpression("hurt", 10) end wheel[1]:newAction():title('log health'):onLeftClick(function() print(player:getHealth()) end) @@ -854,12 +856,14 @@ wheel[1]:newAction():title('UwU'):onLeftClick(function() ping.expr("owo") end) -- Pings -- --- Damage function -- function ping.expr(expr) + logging.debug("ping.expr") local val=(expr==current_expression) and "neutral" or expr setExpression(val) end function ping.oof(health) -- This is a replacement for onDamage, that function doesn't sync for some reason + logging.debug("ping.oof") hurt() end @@ -901,6 +905,7 @@ end function ping.tPose() + logging.debug("ping.tPose") local_state.emote_vector=player:getPos() -- TODO -- animation.tpose.start()