feat(TabSelf): Switched Reset Mental state with Clear Badsports stat

This commit is contained in:
Yimura 2020-12-27 00:49:59 +01:00
parent 88fb0b0141
commit 86a2b2ba16
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78

View File

@ -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
}