VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
DamageLayout.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5#include <entityhandle.h>
6#include <gametrace.h>
7#include <mathlib/vector.h>
8
9namespace VoltMod
10{
11
12/** CTakeDamageInfo as of server build 2000908, from CS2Fixes. Only the leading fields are named;
13 * the engine's constructor fills the rest. */
29static_assert(offsetof(EngineDamageInfo, Inflictor) == 0x38);
30static_assert(offsetof(EngineDamageInfo, Damage) == 0x44);
31static_assert(offsetof(EngineDamageInfo, DamageType) == 0x4C);
32static_assert(sizeof(EngineDamageInfo) == 280);
33
34/** CTakeDamageResult as of server build 2000908, from CS2Fixes. */
54static_assert(offsetof(EngineDamageResult, DamageFlags) == 72);
55static_assert(sizeof(EngineDamageResult) == 96);
56
57} // namespace VoltMod
Every entity's damage, from CBaseEntity::TakeDamageOld, and a way to deal it.
Definition Damage.hpp:80
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
::Vector Vector
Definition Math.hpp:11
uint8_t DestructibleHitGroupRequests[16]
EngineDamageInfo * OriginatingInfo