|
VoltMod
C++23 framework for CS2 server plugins
|
Players as team-colored outlines through walls, for one client or one team alone. More...
#include <GlowVision.hpp>
Public Member Functions | |
| GlowVision (EntitySystem &entities, Visibility &visibility, int viewerSlot, GlowConfig config={}) | |
| GlowVision (EntitySystem &entities, Visibility &visibility, Team viewerTeam, GlowConfig config={}) | |
| ~GlowVision () | |
| GlowVision (const GlowVision &)=delete | |
| GlowVision & | operator= (const GlowVision &)=delete |
| void | Refresh () |
| void | Destroy () |
Static Public Attributes | |
| static constexpr int | RefreshIntervalMs = 500 |
Players as team-colored outlines through walls, for one client or one team alone.
Each glowing player gets two clones following their pawn: an invisible relay and the glow prop on it, which renders only the outline. Call Refresh every RefreshIntervalMs.
Definition at line 18 of file GlowVision.hpp.
|
inline |
Both services must outlive this; runtime.Visibility.CreateGlow passes them.
Definition at line 25 of file GlowVision.hpp.
|
inline |
Definition at line 28 of file GlowVision.hpp.
|
inline |
Definition at line 31 of file GlowVision.hpp.
References Destroy().
|
delete |
| void VoltMod::GlowVision::Destroy | ( | ) |
Remove every clone now; Refresh rebuilds them.
Definition at line 127 of file GlowVision.cpp.
References VoltMod::ReadFile().
Referenced by ~GlowVision().
|
delete |
| void VoltMod::GlowVision::Refresh | ( | ) |
Match the clones to the live players.
Definition at line 98 of file GlowVision.cpp.
References VoltMod::GlowConfig::Filter, VoltMod::EntitySystem::Get(), VoltMod::Visibility::IsPawnHidden(), VoltMod::IsPlaying(), VoltMod::MaxPlayers, VoltMod::EntitySystem::Pawn(), and VoltMod::ReadFile().
Suggested tick interval for Refresh.
Definition at line 22 of file GlowVision.hpp.