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

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerDisconnect From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 user ID on server
 
int Reason = 0
 see networkdisconnect enum protobuf
 
std::string Name
 player name
 
std::string Networkid
 player network (i.e steam) id
 
uint64_t Xuid = 0
 steam id
 
int PlayerID = 0
 
bool EverFullyConnected = false
 Was the player ever fully connected?
 

Static Public Attributes

static constexpr std::string_view EventName = "player_disconnect"
 

Detailed Description

a client was disconnected

Definition at line 1461 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1381 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::PlayerDisconnect::EventName = "player_disconnect"
staticconstexpr

Definition at line 1463 of file EventTypes.hpp.

◆ EverFullyConnected

bool VoltMod::PlayerDisconnect::EverFullyConnected = false

Was the player ever fully connected?

Definition at line 1470 of file EventTypes.hpp.

◆ Name

std::string VoltMod::PlayerDisconnect::Name

player name

Definition at line 1466 of file EventTypes.hpp.

◆ Networkid

std::string VoltMod::PlayerDisconnect::Networkid

player network (i.e steam) id

Definition at line 1467 of file EventTypes.hpp.

◆ PlayerID

int VoltMod::PlayerDisconnect::PlayerID = 0

Definition at line 1469 of file EventTypes.hpp.

◆ Reason

int VoltMod::PlayerDisconnect::Reason = 0

see networkdisconnect enum protobuf

Definition at line 1465 of file EventTypes.hpp.

◆ Slot

int VoltMod::PlayerDisconnect::Slot = -1

user ID on server

Definition at line 1464 of file EventTypes.hpp.

Referenced by From().

◆ Xuid

uint64_t VoltMod::PlayerDisconnect::Xuid = 0

steam id

Definition at line 1468 of file EventTypes.hpp.


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