Cleanup
This commit is contained in:
parent
4139a65172
commit
923edbbba0
2 changed files with 1 additions and 22 deletions
|
|
@ -134,27 +134,6 @@ static_assert(
|
||||||
"MASK_SHOT_PHYSICS mismatch!"
|
"MASK_SHOT_PHYSICS mismatch!"
|
||||||
);
|
);
|
||||||
|
|
||||||
constexpr InteractionLayers RemovePlayers(InteractionLayers m)
|
|
||||||
{
|
|
||||||
return static_cast<InteractionLayers>(
|
|
||||||
static_cast<uint64_t>(m) &
|
|
||||||
~static_cast<uint64_t>(InteractionLayers::Player)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
constexpr InteractionLayers BuildShotMask(bool includePlayers, bool includeHitboxes)
|
|
||||||
{
|
|
||||||
InteractionLayers m = MASK_SHOT_PHYSICS;
|
|
||||||
|
|
||||||
if (!includePlayers)
|
|
||||||
m = RemovePlayers(m);
|
|
||||||
|
|
||||||
if (includeHitboxes)
|
|
||||||
m |= InteractionLayers::Hitboxes;
|
|
||||||
|
|
||||||
return m;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct TraceOptions
|
struct TraceOptions
|
||||||
{
|
{
|
||||||
uint64_t InteractsWith = static_cast<uint64_t>(MASK_SHOT_PHYSICS);
|
uint64_t InteractsWith = static_cast<uint64_t>(MASK_SHOT_PHYSICS);
|
||||||
|
|
|
||||||
2
vendor/khook
vendored
2
vendor/khook
vendored
|
|
@ -1 +1 @@
|
||||||
Subproject commit 09d46ffb743f5659b3d497228843a8aa7fcf883f
|
Subproject commit f6785fd70869972841d9bc0a87013355eb9ce7e1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue