VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::EntityVisible Struct Reference

#include <EventTypes.hpp>

Static Public Member Functions

static EntityVisible From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 The player who sees the entity.
 
int Subject = 0
 Entindex of the entity they see.
 
std::string Classname
 Classname of the entity they see.
 
std::string Entityname
 name of the entity they see
 

Static Public Attributes

static constexpr std::string_view EventName = "entity_visible"
 

Detailed Description

Definition at line 641 of file EventTypes.hpp.

Member Function Documentation

◆ From()

EntityVisible VoltMod::EntityVisible::From ( IGameEvent &  e)
static

Definition at line 609 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ Classname

std::string VoltMod::EntityVisible::Classname

Classname of the entity they see.

Definition at line 646 of file EventTypes.hpp.

◆ Entityname

std::string VoltMod::EntityVisible::Entityname

name of the entity they see

Definition at line 647 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::EntityVisible::EventName = "entity_visible"
staticconstexpr

Definition at line 643 of file EventTypes.hpp.

◆ Slot

int VoltMod::EntityVisible::Slot = -1

The player who sees the entity.

Definition at line 644 of file EventTypes.hpp.

Referenced by From().

◆ Subject

int VoltMod::EntityVisible::Subject = 0

Entindex of the entity they see.

Definition at line 645 of file EventTypes.hpp.


The documentation for this struct was generated from the following files: