styyx-util 1.0
Utility Header for SKSE Plugin development
Loading...
Searching...
No Matches
st-crimes.h
Go to the documentation of this file.
1//
2// Created by styyx on 13/03/2026.
3//
4
5#pragma once
6
7namespace StyyxUtil
8{
10{
11 static uint64_t GetCrimeValue(RE::Actor* a_actor, RE::PackageNS::CRIME_TYPE a_crime, RE::TESFaction* a_faction,
12 int32_t a_itemValue = 0)
13 {
14 using func_t = decltype(&GetCrimeValue);
15 static REL::Relocation<func_t> func{RELOCATION_ID(36672, 37680)};
16 return func(a_actor, a_crime, a_faction, a_itemValue);
17 }
18
19 static void SendTrespassingAlarm(RE::Actor* a_this, RE::Actor* a_caughtBy, RE::TESNPC* a_caughtByBase,
20 RE::PackageNS::CRIME_TYPE a_crimeType = RE::PackageNS::CRIME_TYPE::kTrespass)
21 {
22 using func_t = decltype(&SendTrespassingAlarm);
23 static REL::Relocation<func_t> func{RELOCATION_ID(36432, 37427)};
24 return func(a_this, a_caughtBy, a_caughtByBase, a_crimeType);
25 }
26
27 static bool unk_Assault(RE::AIProcess* a_victimProcess, RE::Actor* a_victim, RE::Actor* a_aggressor,
28 int64_t param_4 = 0, float param_5 = 0)
29 {
30 using func_t = decltype(&unk_Assault);
31 static REL::Relocation<func_t> func{RELOCATION_ID(38375, 39359)};
32 return func(a_victimProcess, a_victim, a_aggressor, param_4, param_5);
33 }
34
35 static void SendAssaultAlarm(RE::Actor* a_this, RE::Actor* a_attacker, int32_t a3, float a4)
36 {
37 using func_t = decltype(&SendAssaultAlarm);
38 static REL::Relocation<func_t> func{RELOCATION_ID(36429, 37424)};
39 return func(a_this, a_attacker, a3, a4);
40 }
41
42 static void SendStealAlarm(RE::Actor* a_this, RE::Actor* a_thief, RE::TESObjectREFR* a_stolenItemRef,
43 RE::TESForm* a_stolenItemBase, int32_t a_stolenItemCount, int32_t a_itemWorth,
44 RE::TESForm* a_owner, bool a8)
45 {
46 using func_t = decltype(&SendStealAlarm);
47 static REL::Relocation<func_t> func{RELOCATION_ID(36427, 37422)};
48 return func(a_this, a_thief, a_stolenItemRef, a_stolenItemBase, a_stolenItemCount, a_itemWorth, a_owner, a8);
49 }
50};
51} // namespace StyyxUtil
Definition st-actor.h:7
Definition st-crimes.h:10
static uint64_t GetCrimeValue(RE::Actor *a_actor, RE::PackageNS::CRIME_TYPE a_crime, RE::TESFaction *a_faction, int32_t a_itemValue=0)
Definition st-crimes.h:11
static void SendAssaultAlarm(RE::Actor *a_this, RE::Actor *a_attacker, int32_t a3, float a4)
Definition st-crimes.h:35
static bool unk_Assault(RE::AIProcess *a_victimProcess, RE::Actor *a_victim, RE::Actor *a_aggressor, int64_t param_4=0, float param_5=0)
Definition st-crimes.h:27
static void SendStealAlarm(RE::Actor *a_this, RE::Actor *a_thief, RE::TESObjectREFR *a_stolenItemRef, RE::TESForm *a_stolenItemBase, int32_t a_stolenItemCount, int32_t a_itemWorth, RE::TESForm *a_owner, bool a8)
Definition st-crimes.h:42
static void SendTrespassingAlarm(RE::Actor *a_this, RE::Actor *a_caughtBy, RE::TESNPC *a_caughtByBase, RE::PackageNS::CRIME_TYPE a_crimeType=RE::PackageNS::CRIME_TYPE::kTrespass)
Definition st-crimes.h:19