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

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerShoot From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 user ID on server
 
int Weapon = 0
 weapon ID
 
int Mode = 0
 weapon mode
 

Static Public Attributes

static constexpr std::string_view EventName = "player_shoot"
 

Detailed Description

player shoot his weapon

Definition at line 1590 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1506 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::PlayerShoot::EventName = "player_shoot"
staticconstexpr

Definition at line 1592 of file EventTypes.hpp.

◆ Mode

int VoltMod::PlayerShoot::Mode = 0

weapon mode

Definition at line 1595 of file EventTypes.hpp.

◆ Slot

int VoltMod::PlayerShoot::Slot = -1

user ID on server

Definition at line 1593 of file EventTypes.hpp.

Referenced by From().

◆ Weapon

int VoltMod::PlayerShoot::Weapon = 0

weapon ID

Definition at line 1594 of file EventTypes.hpp.


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