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

#include <EventTypes.hpp>

Static Public Member Functions

static RoundEnd From (IGameEvent &e)
 

Public Attributes

int Winner = 0
 winner team/user i
 
int Reason = 0
 reson why team won
 
std::string Message
 end round message
 
int Legacy = 0
 server-generated legacy value
 
int PlayerCount = 0
 
int Nomusic = 0
 if set, don't play round end music, because action is still on-going
 

Static Public Attributes

static constexpr std::string_view EventName = "round_end"
 

Detailed Description

Definition at line 1705 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1612 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Winner.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::RoundEnd::EventName = "round_end"
staticconstexpr

Definition at line 1707 of file EventTypes.hpp.

◆ Legacy

int VoltMod::RoundEnd::Legacy = 0

server-generated legacy value

Definition at line 1711 of file EventTypes.hpp.

◆ Message

std::string VoltMod::RoundEnd::Message

end round message

Definition at line 1710 of file EventTypes.hpp.

◆ Nomusic

int VoltMod::RoundEnd::Nomusic = 0

if set, don't play round end music, because action is still on-going

Definition at line 1714 of file EventTypes.hpp.

◆ PlayerCount

int VoltMod::RoundEnd::PlayerCount = 0

total number of players alive at the end of round, used for statistics gathering, computed on the server in the event client is in replay when receiving this message

Definition at line 1712 of file EventTypes.hpp.

◆ Reason

int VoltMod::RoundEnd::Reason = 0

reson why team won

Definition at line 1709 of file EventTypes.hpp.

◆ Winner

int VoltMod::RoundEnd::Winner = 0

winner team/user i

Definition at line 1708 of file EventTypes.hpp.

Referenced by From().


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