VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
BulletImpact.cpp
Go to the documentation of this file.
1#include <igameevents.h>
2
4#include <playerslot.h>
5
6namespace VoltMod
7{
8
10{
11 return {
12 .ShooterSlot = e.GetPlayerSlot("userid").Get(),
13 .TruncatedUserId = e.GetInt("userid"),
14 .X = e.GetFloat("x"),
15 .Y = e.GetFloat("y"),
16 .Z = e.GetFloat("z"),
17 };
18}
19
20} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
One bullet landing, fired once per impact (so a shotgun blast produces several).
static BulletImpact From(IGameEvent &e)