From 5af62e813bf0f01f1c1dc40f19ba686eca2783af Mon Sep 17 00:00:00 2001 From: Chuck <84461456+Whoeza@users.noreply.github.com> Date: Tue, 13 Feb 2024 03:29:26 +0100 Subject: [PATCH] Update SwitchCrimeType.md (#975) * Update SwitchCrimeType.md 'from' --> 'in' * Update SwitchCrimeType.md Update native name, description and parameters. * Rename SwitchCrimeType.md to SuppressCrimeThisFrame.md --------- Co-authored-by: ammonia-cfx <38232208+4mmonium@users.noreply.github.com> --- PLAYER/SuppressCrimeThisFrame.md | 18 ++++++++++++++++++ PLAYER/SwitchCrimeType.md | 22 ---------------------- 2 files changed, 18 insertions(+), 22 deletions(-) create mode 100644 PLAYER/SuppressCrimeThisFrame.md delete mode 100644 PLAYER/SwitchCrimeType.md diff --git a/PLAYER/SuppressCrimeThisFrame.md b/PLAYER/SuppressCrimeThisFrame.md new file mode 100644 index 000000000..5aa92dabd --- /dev/null +++ b/PLAYER/SuppressCrimeThisFrame.md @@ -0,0 +1,18 @@ +--- +ns: PLAYER +aliases: ["0x9A987297ED8BD838", "_SWITCH_CRIME_TYPE"] +--- +## SUPPRESS_CRIME_THIS_FRAME + +```c +// 0x9A987297ED8BD838 0x59B5C2A2 +void SUPPRESS_CRIME_THIS_FRAME(Player player, int crimeType); +``` + +Suppresses a crime for a given player for this frame only. + +**Note:** This native needs to be executed inside a thread if a crime is meant to be suppressed for a given amount of time. + +## Parameters +* **player**: The player we are suppressing the crime for. +* **crimeType**: The crime to suppress, see [`REPORT_CRIME`](#_0xE9B09589827545E7) for available types. diff --git a/PLAYER/SwitchCrimeType.md b/PLAYER/SwitchCrimeType.md deleted file mode 100644 index e7c6c5185..000000000 --- a/PLAYER/SwitchCrimeType.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -ns: PLAYER -aliases: ["0x9A987297ED8BD838"] ---- -## _SWITCH_CRIME_TYPE - -```c -// 0x9A987297ED8BD838 0x59B5C2A2 -void _SWITCH_CRIME_TYPE(Player player, int p1); -``` - -``` -This was previously named as "RESERVE_ENTITY_EXPLODES_ON_HIGH_EXPLOSION_COMBO" -which is obviously incorrect. -Seems to only appear in scripts used in Singleplayer. p1 ranges from 2 - 46. -I assume this switches the crime type -``` - -## Parameters -* **player**: -* **p1**: -