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

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerInfo From (IGameEvent &e)
 

Public Attributes

std::string Name
 player name
 
int Slot = -1
 user ID on server (unique on server)
 
uint64_t Steamid = 0
 player network (i.e steam) id
 
bool Bot = false
 true if player is a AI bot
 

Static Public Attributes

static constexpr std::string_view EventName = "player_info"
 

Detailed Description

a player changed his name

Definition at line 1526 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1445 of file EventTypes.cpp.

References Name, and VoltMod::ReadFile().

Member Data Documentation

◆ Bot

bool VoltMod::PlayerInfo::Bot = false

true if player is a AI bot

Definition at line 1532 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::PlayerInfo::EventName = "player_info"
staticconstexpr

Definition at line 1528 of file EventTypes.hpp.

◆ Name

std::string VoltMod::PlayerInfo::Name

player name

Definition at line 1529 of file EventTypes.hpp.

Referenced by From().

◆ Slot

int VoltMod::PlayerInfo::Slot = -1

user ID on server (unique on server)

Definition at line 1530 of file EventTypes.hpp.

◆ Steamid

uint64_t VoltMod::PlayerInfo::Steamid = 0

player network (i.e steam) id

Definition at line 1531 of file EventTypes.hpp.


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