-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlot.h
35 lines (24 loc) · 939 Bytes
/
Plot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "HavokScript.h"
#include "ProxyTypes.h"
#include <set>
namespace Plot {
typedef class Instance;
namespace Types {
typedef void(__thiscall* SetAppeal)(void* plot, int appeal);
typedef Instance* (__cdecl* GetInstance)(hks::lua_State*, int, bool);
}
extern ProxyTypes::PushMethods base_PushMethods;
extern ProxyTypes::PushMethods orig_PushMethods;
extern Types::SetAppeal base_SetAppeal;
extern Types::SetAppeal orig_SetAppeal;
extern std::set<short*> lockedAppeals;
constexpr uintptr_t SET_APPEAL_OFFSET = 0x61270;
constexpr uintptr_t PUSH_METHODS_OFFSET = 0x1b2e0;
constexpr uintptr_t GET_INSTANCE_OFFSET = 0x15d60;
extern Types::GetInstance GetInstance;
extern void __cdecl SetAppeal(Instance* plot, int appeal);
extern int lSetAppeal(hks::lua_State* L);
extern int lLockAppeal(hks::lua_State* L);
extern void Create();
}