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

#include <EventTypes.hpp>

Static Public Member Functions

static BulletDamage From (IGameEvent &e)
 

Public Attributes

int VictimSlot = -1
 player index who was hurt
 
int AttackerSlot = -1
 player index who attacked
 
float Distance = 0.0f
 how far the bullet travelled before it hit the player
 
float DamageDirX = 0.0f
 direction vector of the bullet
 
float DamageDirY = 0.0f
 direction vector of the bullet
 
float DamageDirZ = 0.0f
 direction vector of the bullet
 
int NumPenetrations = 0
 how many surfaces were penetrated
 
bool NoScope = false
 was the shooter noscoped?
 
bool InAir = false
 was the shooter jumping?
 
float ShootAngX = 0.0f
 shoot angle x
 
float ShootAngY = 0.0f
 shoot angle y
 
float ShootAngZ = 0.0f
 shoot angle z
 
float AimPunchX = 0.0f
 aim punch x
 
float AimPunchY = 0.0f
 aim punch y
 
float AimPunchZ = 0.0f
 aim punch z
 
int AttackTickCount = 0
 attack tick
 
float AttackTickFrac = 0.0f
 attack frac
 
int RenderTickCount = 0
 render tick
 
float RenderTickFrac = 0.0f
 render frac
 
float InaccuracyTotal = 0.0f
 total inaccuracy
 
float InaccuracyMove = 0.0f
 move inaccuracy
 
float InaccuracyAir = 0.0f
 air inaccuracy
 
float RecoilIndex = 0.0f
 recoil index. Yes this is really a float.
 
int Type = 0
 lag compensation type
 

Static Public Attributes

static constexpr std::string_view EventName = "bullet_damage"
 

Detailed Description

Definition at line 241 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 236 of file EventTypes.cpp.

References VoltMod::ReadFile(), and VictimSlot.

Member Data Documentation

◆ AimPunchX

float VoltMod::BulletDamage::AimPunchX = 0.0f

aim punch x

Definition at line 256 of file EventTypes.hpp.

◆ AimPunchY

float VoltMod::BulletDamage::AimPunchY = 0.0f

aim punch y

Definition at line 257 of file EventTypes.hpp.

◆ AimPunchZ

float VoltMod::BulletDamage::AimPunchZ = 0.0f

aim punch z

Definition at line 258 of file EventTypes.hpp.

◆ AttackerSlot

int VoltMod::BulletDamage::AttackerSlot = -1

player index who attacked

Definition at line 245 of file EventTypes.hpp.

◆ AttackTickCount

int VoltMod::BulletDamage::AttackTickCount = 0

attack tick

Definition at line 259 of file EventTypes.hpp.

◆ AttackTickFrac

float VoltMod::BulletDamage::AttackTickFrac = 0.0f

attack frac

Definition at line 260 of file EventTypes.hpp.

◆ DamageDirX

float VoltMod::BulletDamage::DamageDirX = 0.0f

direction vector of the bullet

Definition at line 247 of file EventTypes.hpp.

◆ DamageDirY

float VoltMod::BulletDamage::DamageDirY = 0.0f

direction vector of the bullet

Definition at line 248 of file EventTypes.hpp.

◆ DamageDirZ

float VoltMod::BulletDamage::DamageDirZ = 0.0f

direction vector of the bullet

Definition at line 249 of file EventTypes.hpp.

◆ Distance

float VoltMod::BulletDamage::Distance = 0.0f

how far the bullet travelled before it hit the player

Definition at line 246 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::BulletDamage::EventName = "bullet_damage"
staticconstexpr

Definition at line 243 of file EventTypes.hpp.

◆ InaccuracyAir

float VoltMod::BulletDamage::InaccuracyAir = 0.0f

air inaccuracy

Definition at line 265 of file EventTypes.hpp.

◆ InaccuracyMove

float VoltMod::BulletDamage::InaccuracyMove = 0.0f

move inaccuracy

Definition at line 264 of file EventTypes.hpp.

◆ InaccuracyTotal

float VoltMod::BulletDamage::InaccuracyTotal = 0.0f

total inaccuracy

Definition at line 263 of file EventTypes.hpp.

◆ InAir

bool VoltMod::BulletDamage::InAir = false

was the shooter jumping?

Definition at line 252 of file EventTypes.hpp.

◆ NoScope

bool VoltMod::BulletDamage::NoScope = false

was the shooter noscoped?

Definition at line 251 of file EventTypes.hpp.

◆ NumPenetrations

int VoltMod::BulletDamage::NumPenetrations = 0

how many surfaces were penetrated

Definition at line 250 of file EventTypes.hpp.

◆ RecoilIndex

float VoltMod::BulletDamage::RecoilIndex = 0.0f

recoil index. Yes this is really a float.

Definition at line 266 of file EventTypes.hpp.

◆ RenderTickCount

int VoltMod::BulletDamage::RenderTickCount = 0

render tick

Definition at line 261 of file EventTypes.hpp.

◆ RenderTickFrac

float VoltMod::BulletDamage::RenderTickFrac = 0.0f

render frac

Definition at line 262 of file EventTypes.hpp.

◆ ShootAngX

float VoltMod::BulletDamage::ShootAngX = 0.0f

shoot angle x

Definition at line 253 of file EventTypes.hpp.

◆ ShootAngY

float VoltMod::BulletDamage::ShootAngY = 0.0f

shoot angle y

Definition at line 254 of file EventTypes.hpp.

◆ ShootAngZ

float VoltMod::BulletDamage::ShootAngZ = 0.0f

shoot angle z

Definition at line 255 of file EventTypes.hpp.

◆ Type

int VoltMod::BulletDamage::Type = 0

lag compensation type

Definition at line 267 of file EventTypes.hpp.

◆ VictimSlot

int VoltMod::BulletDamage::VictimSlot = -1

player index who was hurt

Definition at line 244 of file EventTypes.hpp.

Referenced by From().


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