VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CCSPlayerController.cpp
Go to the documentation of this file.
1// Generated by `voltmod framework schemagen`. Do not edit.
2
3#include "Schema/Notify.hpp"
4
9
10namespace VoltMod::Schema
11{
12
13// ---- CCSPlayerController, 2744 bytes -------------------------------
14static constexpr int32_t kCCSPlayerController_PlayerPawn = 2284; // CHandle< CCSPlayerPawn >
15static constexpr int32_t kCCSPlayerController_InGameMoneyServices = 2024; // CCSPlayerController_InGameMoneyServices*
16static constexpr int32_t kCCSPlayerController_Clan = 2112; // CUtlSymbolLarge
17static constexpr int32_t kCCSPlayerController_Score = 2332; // int32
19 2040; // CCSPlayerController_ActionTrackingServices*
20
22{
23 if (!_base)
24 {
25 return {};
26 }
27
29}
30
32{
33 if (!_base)
34 {
35 return;
36 }
37
40}
41
42CCSPlayerController_InGameMoneyServices CCSPlayerController::InGameMoneyServices() const
43{
44 if (!_base)
45 {
46 return {};
47 }
48
49 return CCSPlayerController_InGameMoneyServices{*MemberPtr<void*>(_base, kCCSPlayerController_InGameMoneyServices)};
50}
51
52const char* CCSPlayerController::Clan() const
53{
54 if (!_base)
55 {
56 return {};
57 }
58
60}
61
62void CCSPlayerController::SetClan(const char* value) const
63{
64 if (!_base)
65 {
66 return;
67 }
68
71}
72
74{
75 if (!_base)
76 {
77 return {};
78 }
79
81}
82
84{
85 if (!_base)
86 {
87 return;
88 }
89
92}
93
94CCSPlayerController_ActionTrackingServices CCSPlayerController::ActionTrackingServices() const
95{
96 if (!_base)
97 {
98 return {};
99 }
100
101 return CCSPlayerController_ActionTrackingServices{
103}
104
105} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
CCSPlayerController_InGameMoneyServices InGameMoneyServices() const
CCSPlayerController_ActionTrackingServices ActionTrackingServices() const
void SetPlayerPawn(EntityRef value) const
void SetClan(const char *value) const
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
static constexpr int32_t kCCSPlayerController_Score
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:20
static constexpr int32_t kCCSPlayerController_InGameMoneyServices
static constexpr int32_t kCCSPlayerController_ActionTrackingServices
static constexpr int32_t kCCSPlayerController_PlayerPawn
static constexpr int32_t kCCSPlayerController_Clan
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56