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/Layout.hpp"
4#include "Schema/Notify.hpp"
5
10
11namespace VoltMod::Schema
12{
13
14// ---- CCSPlayerController -----------------------------------------
15static const int32_t& kCCSPlayerController_PlayerPawn = GeneratedFields[47].Offset; // CHandle< CCSPlayerPawn >
17 GeneratedFields[48].Offset; // CCSPlayerController_InGameMoneyServices*
18static const int32_t& kCCSPlayerController_Clan = GeneratedFields[49].Offset; // CUtlSymbolLarge
19static const int32_t& kCCSPlayerController_Score = GeneratedFields[50].Offset; // int32
21 GeneratedFields[51].Offset; // CCSPlayerController_ActionTrackingServices*
22static const int32_t& kCCSPlayerController_PawnHasHelmet = GeneratedFields[52].Offset; // bool
23
25{
26 if (!_base)
27 {
28 return {};
29 }
30
32}
33
44
54
55const char* CCSPlayerController::Clan() const
56{
57 if (!_base)
58 {
59 return {};
60 }
61
63}
64
65void CCSPlayerController::SetClan(const char* value) const
66{
67 if (!_base)
68 {
69 return;
70 }
71
74}
75
77{
78 if (!_base)
79 {
80 return {};
81 }
82
84}
85
86void CCSPlayerController::SetScore(int32_t value) const
87{
88 if (!_base)
89 {
90 return;
91 }
92
95}
96
107
109{
110 if (!_base)
111 {
112 return {};
113 }
114
116}
117
128
129} // 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 const int32_t & kCCSPlayerController_PawnHasHelmet
static const int32_t & kCCSPlayerController_PlayerPawn
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:10
static const int32_t & kCCSPlayerController_Clan
static const int32_t & kCCSPlayerController_InGameMoneyServices
FieldLayout GeneratedFields[]
Definition Layout.cpp:8
static const int32_t & kCCSPlayerController_Score
static const int32_t & kCCSPlayerController_ActionTrackingServices
T * MemberPtr(void *base, std::ptrdiff_t offset) noexcept