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

#include <EventTypes.hpp>

Static Public Member Functions

static WeaponFire From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 
std::string Weapon
 weapon name used
 
bool Silenced = false
 is weapon silenced
 

Static Public Attributes

static constexpr std::string_view EventName = "weapon_fire"
 

Detailed Description

Definition at line 2261 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 2137 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::WeaponFire::EventName = "weapon_fire"
staticconstexpr

Definition at line 2263 of file EventTypes.hpp.

◆ Silenced

bool VoltMod::WeaponFire::Silenced = false

is weapon silenced

Definition at line 2266 of file EventTypes.hpp.

◆ Slot

int VoltMod::WeaponFire::Slot = -1

Definition at line 2264 of file EventTypes.hpp.

Referenced by From().

◆ Weapon

std::string VoltMod::WeaponFire::Weapon

weapon name used

Definition at line 2265 of file EventTypes.hpp.


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