VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CCSPlayerPawn.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// ---- CCSPlayerPawn, 5584 bytes -------------------------------------
14static constexpr int32_t kCCSPlayerPawn_ArmorValue = 5412; // int32
15static constexpr int32_t kCCSPlayerPawn_EyeAngles = 5568; // QAngle
16static constexpr int32_t kCCSPlayerPawn_VelocityModifier = 5360; // float32
17static constexpr int32_t kCCSPlayerPawn_OnGroundLastTick = 4060; // bool
18static constexpr int32_t kCCSPlayerPawn_AimPunchServices = 3656; // CCSPlayer_AimPunchServices*
19static constexpr int32_t kCCSPlayerPawn_IsScoped = 5324; // bool
20static constexpr int32_t kCCSPlayerPawn_ShotsFired = 5352; // int32
21static constexpr int32_t kCCSPlayerPawn_LastWeaponFireUsercmd = 5424; // int32
22static constexpr int32_t kCCSPlayerPawn_EntitySpottedState = 5296; // EntitySpottedState_t
23
25{
26 if (!_base)
27 {
28 return {};
29 }
30
32}
33
35{
36 if (!_base)
37 {
38 return;
39 }
40
43}
44
46{
47 if (!_base)
48 {
49 return {};
50 }
51
53}
54
55void CCSPlayerPawn::SetEyeAngles(QAngle value) const
56{
57 if (!_base)
58 {
59 return;
60 }
61
64}
65
67{
68 if (!_base)
69 {
70 return {};
71 }
72
74}
75
76void CCSPlayerPawn::SetVelocityModifier(float value) const
77{
78 if (!_base)
79 {
80 return;
81 }
82
85}
86
88{
89 if (!_base)
90 {
91 return {};
92 }
93
95}
96
97void CCSPlayerPawn::SetOnGroundLastTick(bool value) const
98{
99 if (!_base)
100 {
101 return;
102 }
103
105}
106
107CCSPlayer_AimPunchServices CCSPlayerPawn::AimPunchServices() const
108{
109 if (!_base)
110 {
111 return {};
112 }
113
114 return CCSPlayer_AimPunchServices{*MemberPtr<void*>(_base, kCCSPlayerPawn_AimPunchServices)};
115}
116
117bool CCSPlayerPawn::IsScoped() const
118{
119 if (!_base)
120 {
121 return {};
122 }
123
125}
126
127void CCSPlayerPawn::SetIsScoped(bool value) const
128{
129 if (!_base)
130 {
131 return;
132 }
133
136}
137
139{
140 if (!_base)
141 {
142 return {};
143 }
144
146}
147
149{
150 if (!_base)
151 {
152 return;
153 }
154
157}
158
160{
161 if (!_base)
162 {
163 return {};
164 }
165
167}
168
170{
171 if (!_base)
172 {
173 return;
174 }
175
177}
178
179EntitySpottedState_t CCSPlayerPawn::EntitySpottedState() const
180{
181 if (!_base)
182 {
183 return {};
184 }
185
186 return EntitySpottedState_t{MemberPtr<void>(_base, kCCSPlayerPawn_EntitySpottedState), _owner,
188}
189
190} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
void SetOnGroundLastTick(bool value) const
EntitySpottedState_t EntitySpottedState() const
void SetIsScoped(bool value) const
void SetShotsFired(int32_t value) const
void SetEyeAngles(QAngle value) const
void SetLastWeaponFireUsercmd(int32_t value) const
CCSPlayer_AimPunchServices AimPunchServices() const
void SetArmorValue(int32_t value) const
void SetVelocityModifier(float value) const
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
static constexpr int32_t kCCSPlayerPawn_ShotsFired
static constexpr int32_t kCCSPlayerPawn_OnGroundLastTick
static constexpr int32_t kCCSPlayerPawn_AimPunchServices
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:20
static constexpr int32_t kCCSPlayerPawn_VelocityModifier
static constexpr int32_t kCCSPlayerPawn_EyeAngles
static constexpr int32_t kCCSPlayerPawn_ArmorValue
static constexpr int32_t kCCSPlayerPawn_EntitySpottedState
static constexpr int32_t kCCSPlayerPawn_IsScoped
static constexpr int32_t kCCSPlayerPawn_LastWeaponFireUsercmd
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
::QAngle QAngle
Definition Math.hpp:14