VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CBaseEntity.cpp
Go to the documentation of this file.
1// Generated by `voltmod framework schemagen`. Do not edit.
2
3#include "Schema/Notify.hpp"
4
8
9namespace VoltMod::Schema
10{
11
12// ---- CBaseEntity, 1928 bytes ---------------------------------------
13static constexpr int32_t kCBaseEntity_Health = 1456; // int32
14static constexpr int32_t kCBaseEntity_MaxHealth = 1460; // int32
15static constexpr int32_t kCBaseEntity_GravityScale = 1756; // float32
16static constexpr int32_t kCBaseEntity_TeamNum = 1572; // uint8
17static constexpr int32_t kCBaseEntity_LifeState = 1464; // uint8
18static constexpr int32_t kCBaseEntity_Flags = 1640; // uint32
19static constexpr int32_t kCBaseEntity_AbsVelocity = 1644; // Vector
20static constexpr int32_t kCBaseEntity_MoveTypeRaw = 1491; // MoveType_t
21static constexpr int32_t kCBaseEntity_ActualMoveType = 1493; // MoveType_t
22static constexpr int32_t kCBaseEntity_GroundEntity = 1740; // CHandle< CBaseEntity >
23static constexpr int32_t kCBaseEntity_OwnerEntity = 1732; // CHandle< CBaseEntity >
24static constexpr int32_t kCBaseEntity_BodyComponent = 48; // CBodyComponent*
25
27{
28 if (!_base)
29 {
30 return {};
31 }
32
34}
35
37{
38 if (!_base)
39 {
40 return;
41 }
42
45}
46
48{
49 if (!_base)
50 {
51 return {};
52 }
53
55}
56
58{
59 if (!_base)
60 {
61 return;
62 }
63
66}
67
69{
70 if (!_base)
71 {
72 return {};
73 }
74
76}
77
78void CBaseEntity::SetGravityScale(float value) const
79{
80 if (!_base)
81 {
82 return;
83 }
84
87}
88
90{
91 if (!_base)
92 {
93 return {};
94 }
95
97}
98
100{
101 if (!_base)
102 {
103 return;
104 }
105
108}
109
111{
112 if (!_base)
113 {
114 return {};
115 }
116
118}
119
121{
122 if (!_base)
123 {
124 return;
125 }
126
129}
130
132{
133 if (!_base)
134 {
135 return {};
136 }
137
139}
140
142{
143 if (!_base)
144 {
145 return;
146 }
147
150}
151
153{
154 if (!_base)
155 {
156 return {};
157 }
158
160}
161
163{
164 if (!_base)
165 {
166 return;
167 }
168
170}
171
173{
174 if (!_base)
175 {
176 return {};
177 }
178
180}
181
183{
184 if (!_base)
185 {
186 return;
187 }
188
191}
192
194{
195 if (!_base)
196 {
197 return {};
198 }
199
201}
202
204{
205 if (!_base)
206 {
207 return;
208 }
209
211}
212
214{
215 if (!_base)
216 {
217 return {};
218 }
219
221}
222
224{
225 if (!_base)
226 {
227 return;
228 }
229
232}
233
235{
236 if (!_base)
237 {
238 return {};
239 }
240
242}
243
245{
246 if (!_base)
247 {
248 return;
249 }
250
253}
254
256{
257 if (!_base)
258 {
259 return {};
260 }
261
263}
264
265} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
void SetFlags(uint32_t value) const
void SetAbsVelocity(Vector value) const
void SetGravityScale(float value) const
void SetHealth(int32_t value) const
void SetActualMoveType(MoveType_t value) const
void SetMoveTypeRaw(MoveType_t value) const
EntityRef OwnerEntity() const
MoveType_t ActualMoveType() const
EntityRef GroundEntity() const
void SetOwnerEntity(EntityRef value) const
void SetTeamNum(VoltMod::Team value) const
void SetMaxHealth(int32_t value) const
VoltMod::Team TeamNum() const
void SetLifeState(uint8_t value) const
CBodyComponent BodyComponent() const
void SetGroundEntity(EntityRef value) const
MoveType_t MoveTypeRaw() const
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
static constexpr int32_t kCBaseEntity_LifeState
static constexpr int32_t kCBaseEntity_GravityScale
static constexpr int32_t kCBaseEntity_OwnerEntity
static constexpr int32_t kCBaseEntity_BodyComponent
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:20
static constexpr int32_t kCBaseEntity_MaxHealth
static constexpr int32_t kCBaseEntity_MoveTypeRaw
static constexpr int32_t kCBaseEntity_GroundEntity
static constexpr int32_t kCBaseEntity_AbsVelocity
static constexpr int32_t kCBaseEntity_ActualMoveType
static constexpr int32_t kCBaseEntity_Health
static constexpr int32_t kCBaseEntity_TeamNum
static constexpr int32_t kCBaseEntity_Flags
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
::Vector Vector
Definition Math.hpp:11