From 3da5ab2d7a361fd90f6b1bd7b30fcae0013d310d Mon Sep 17 00:00:00 2001 From: Yimura Date: Sun, 27 Dec 2020 00:49:59 +0100 Subject: [PATCH] feat(TabSelf): Switched Reset Mental state with Clear Badsports stat --- BigBaseV2/src/gui/tab_bar/tab_self.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BigBaseV2/src/gui/tab_bar/tab_self.cpp b/BigBaseV2/src/gui/tab_bar/tab_self.cpp index 65cdf72f..990bf5bb 100644 --- a/BigBaseV2/src/gui/tab_bar/tab_self.cpp +++ b/BigBaseV2/src/gui/tab_bar/tab_self.cpp @@ -49,11 +49,14 @@ namespace big PED::RESET_PED_VISIBLE_DAMAGE(pedPlayer); }QUEUE_JOB_END_CLAUSE } - if (ImGui::Button("Reset Mental State")) + if (ImGui::Button("Clear Badsport")) { QUEUE_JOB_BEGIN_CLAUSE() { - STATS::STAT_SET_FLOAT(MISC::GET_HASH_KEY("MP_PLAYER_MENTAL_STATE"), 0.0f, true); + STATS::STAT_SET_FLOAT(MISC::GET_HASH_KEY("MPPLY_OVERALL_BADSPORT"), 0.0f, true); + STATS::STAT_SET_INT(MISC::GET_HASH_KEY("MPPLY_DESTROYED_PVEHICLES"), 0, true); + STATS::STAT_SET_INT(MISC::GET_HASH_KEY("MPPLY_BADSPORT_MESSAGE"), 0, true); + // STATS::STAT_SET_FLOAT(MISC::GET_HASH_KEY("MP_PLAYER_MENTAL_STATE"), 0.0f, true); }QUEUE_JOB_END_CLAUSE }