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

#include <EventTypes.hpp>

Static Public Member Functions

static WeaponhudSelection From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 Player who this event applies to.
 
int Mode = 0
 EWeaponHudSelectionMode (switch / pickup / drop)
 
int Entindex = 0
 Weapon entity index.
 

Static Public Attributes

static constexpr std::string_view EventName = "weaponhud_selection"
 

Detailed Description

Definition at line 2299 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 2175 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ Entindex

int VoltMod::WeaponhudSelection::Entindex = 0

Weapon entity index.

Definition at line 2304 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::WeaponhudSelection::EventName = "weaponhud_selection"
staticconstexpr

Definition at line 2301 of file EventTypes.hpp.

◆ Mode

int VoltMod::WeaponhudSelection::Mode = 0

EWeaponHudSelectionMode (switch / pickup / drop)

Definition at line 2303 of file EventTypes.hpp.

◆ Slot

int VoltMod::WeaponhudSelection::Slot = -1

Player who this event applies to.

Definition at line 2302 of file EventTypes.hpp.

Referenced by From().


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