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

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerTeam From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 player
 
VoltMod::Team Team = VoltMod::Team::None
 team id
 
VoltMod::Team Oldteam = VoltMod::Team::None
 old team id
 
bool Disconnect = false
 team change because player disconnects
 
bool Silent = false
 
bool Isbot = false
 true if player is a bot
 

Static Public Attributes

static constexpr std::string_view EventName = "player_team"
 

Detailed Description

player change his team

Definition at line 1633 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1547 of file EventTypes.cpp.

References Disconnect, Oldteam, VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ Disconnect

bool VoltMod::PlayerTeam::Disconnect = false

team change because player disconnects

Definition at line 1639 of file EventTypes.hpp.

Referenced by From().

◆ EventName

constexpr std::string_view VoltMod::PlayerTeam::EventName = "player_team"
staticconstexpr

Definition at line 1635 of file EventTypes.hpp.

◆ Isbot

bool VoltMod::PlayerTeam::Isbot = false

true if player is a bot

Definition at line 1641 of file EventTypes.hpp.

◆ Oldteam

VoltMod::Team VoltMod::PlayerTeam::Oldteam = VoltMod::Team::None

old team id

Definition at line 1638 of file EventTypes.hpp.

Referenced by From().

◆ Silent

bool VoltMod::PlayerTeam::Silent = false

Definition at line 1640 of file EventTypes.hpp.

◆ Slot

int VoltMod::PlayerTeam::Slot = -1

player

Definition at line 1636 of file EventTypes.hpp.

Referenced by From().

◆ Team

VoltMod::Team VoltMod::PlayerTeam::Team = VoltMod::Team::None

team id

Definition at line 1637 of file EventTypes.hpp.


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