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
3
#include <
VoltMod/Events/BulletImpact.hpp
>
4
#include <playerslot.h>
5
6
namespace
VoltMod
7
{
8
9
BulletImpact
BulletImpact::From
(
IGameEvent
&
e
)
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
BulletImpact.hpp
VoltMod
Definition
Options.hpp:13
VoltMod::ReadFile
static std::string ReadFile(const std::filesystem::path &path)
Definition
Loader.cpp:56
VoltMod::BulletImpact
One bullet landing, fired once per impact (so a shotgun blast produces several).
Definition
BulletImpact.hpp:18
VoltMod::BulletImpact::From
static BulletImpact From(IGameEvent &e)
Definition
BulletImpact.cpp:9
VoltMod::BulletImpact::ShooterSlot
int ShooterSlot
Definition
BulletImpact.hpp:20
src
Events
BulletImpact.cpp
Generated by
1.9.8