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/Layout.hpp"
4#include "Schema/Notify.hpp"
5
10
11namespace VoltMod::Schema
12{
13
14// ---- CCSPlayerPawn -----------------------------------------------
15static const int32_t& kCCSPlayerPawn_ArmorValue = GeneratedFields[57].Offset; // int32
16static const int32_t& kCCSPlayerPawn_EyeAngles = GeneratedFields[58].Offset; // QAngle
17static const int32_t& kCCSPlayerPawn_VelocityModifier = GeneratedFields[59].Offset; // float32
18static const int32_t& kCCSPlayerPawn_OnGroundLastTick = GeneratedFields[60].Offset; // bool
19static const int32_t& kCCSPlayerPawn_AimPunchServices = GeneratedFields[61].Offset; // CCSPlayer_AimPunchServices*
20static const int32_t& kCCSPlayerPawn_IsScoped = GeneratedFields[62].Offset; // bool
21static const int32_t& kCCSPlayerPawn_ShotsFired = GeneratedFields[63].Offset; // int32
22static const int32_t& kCCSPlayerPawn_LastWeaponFireUsercmd = GeneratedFields[64].Offset; // int32
23static const int32_t& kCCSPlayerPawn_EntitySpottedState = GeneratedFields[65].Offset; // EntitySpottedState_t
24
26{
27 if (!_base)
28 {
29 return {};
30 }
31
33}
34
35void CCSPlayerPawn::SetArmorValue(int32_t value) const
36{
37 if (!_base)
38 {
39 return;
40 }
41
44}
45
47{
48 if (!_base)
49 {
50 return {};
51 }
52
54}
55
66
68{
69 if (!_base)
70 {
71 return {};
72 }
73
75}
76
87
89{
90 if (!_base)
91 {
92 return {};
93 }
94
96}
97
99{
100 if (!_base)
101 {
102 return;
103 }
104
106}
107
117
119{
120 if (!_base)
121 {
122 return {};
123 }
124
126}
127
128void CCSPlayerPawn::SetIsScoped(bool value) const
129{
130 if (!_base)
131 {
132 return;
133 }
134
137}
138
140{
141 if (!_base)
142 {
143 return {};
144 }
145
147}
148
149void CCSPlayerPawn::SetShotsFired(int32_t value) const
150{
151 if (!_base)
152 {
153 return;
154 }
155
158}
159
161{
162 if (!_base)
163 {
164 return {};
165 }
166
168}
169
171{
172 if (!_base)
173 {
174 return;
175 }
176
178}
179
190
191} // 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 const int32_t & kCCSPlayerPawn_EntitySpottedState
static const int32_t & kCCSPlayerPawn_ArmorValue
static const int32_t & kCCSPlayerPawn_IsScoped
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:10
FieldLayout GeneratedFields[]
Definition Layout.cpp:8
static const int32_t & kCCSPlayerPawn_EyeAngles
static const int32_t & kCCSPlayerPawn_ShotsFired
static const int32_t & kCCSPlayerPawn_OnGroundLastTick
static const int32_t & kCCSPlayerPawn_LastWeaponFireUsercmd
static const int32_t & kCCSPlayerPawn_AimPunchServices
static const int32_t & kCCSPlayerPawn_VelocityModifier
T * MemberPtr(void *base, std::ptrdiff_t offset) noexcept
::QAngle QAngle
Definition Math.hpp:15