|
VoltMod
C++23 framework for CS2 server plugins
|
#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" |
Definition at line 241 of file EventTypes.hpp.
|
static |
Definition at line 236 of file EventTypes.cpp.
| float VoltMod::BulletDamage::AimPunchX = 0.0f |
aim punch x
Definition at line 256 of file EventTypes.hpp.
| float VoltMod::BulletDamage::AimPunchY = 0.0f |
aim punch y
Definition at line 257 of file EventTypes.hpp.
| float VoltMod::BulletDamage::AimPunchZ = 0.0f |
aim punch z
Definition at line 258 of file EventTypes.hpp.
| int VoltMod::BulletDamage::AttackerSlot = -1 |
player index who attacked
Definition at line 245 of file EventTypes.hpp.
| int VoltMod::BulletDamage::AttackTickCount = 0 |
attack tick
Definition at line 259 of file EventTypes.hpp.
| float VoltMod::BulletDamage::AttackTickFrac = 0.0f |
attack frac
Definition at line 260 of file EventTypes.hpp.
| float VoltMod::BulletDamage::DamageDirX = 0.0f |
direction vector of the bullet
Definition at line 247 of file EventTypes.hpp.
| float VoltMod::BulletDamage::DamageDirY = 0.0f |
direction vector of the bullet
Definition at line 248 of file EventTypes.hpp.
| float VoltMod::BulletDamage::DamageDirZ = 0.0f |
direction vector of the bullet
Definition at line 249 of file EventTypes.hpp.
| float VoltMod::BulletDamage::Distance = 0.0f |
how far the bullet travelled before it hit the player
Definition at line 246 of file EventTypes.hpp.
|
staticconstexpr |
Definition at line 243 of file EventTypes.hpp.
| float VoltMod::BulletDamage::InaccuracyAir = 0.0f |
air inaccuracy
Definition at line 265 of file EventTypes.hpp.
| float VoltMod::BulletDamage::InaccuracyMove = 0.0f |
move inaccuracy
Definition at line 264 of file EventTypes.hpp.
| float VoltMod::BulletDamage::InaccuracyTotal = 0.0f |
total inaccuracy
Definition at line 263 of file EventTypes.hpp.
| bool VoltMod::BulletDamage::InAir = false |
was the shooter jumping?
Definition at line 252 of file EventTypes.hpp.
| bool VoltMod::BulletDamage::NoScope = false |
was the shooter noscoped?
Definition at line 251 of file EventTypes.hpp.
| int VoltMod::BulletDamage::NumPenetrations = 0 |
how many surfaces were penetrated
Definition at line 250 of file EventTypes.hpp.
| float VoltMod::BulletDamage::RecoilIndex = 0.0f |
recoil index. Yes this is really a float.
Definition at line 266 of file EventTypes.hpp.
| int VoltMod::BulletDamage::RenderTickCount = 0 |
render tick
Definition at line 261 of file EventTypes.hpp.
| float VoltMod::BulletDamage::RenderTickFrac = 0.0f |
render frac
Definition at line 262 of file EventTypes.hpp.
| float VoltMod::BulletDamage::ShootAngX = 0.0f |
shoot angle x
Definition at line 253 of file EventTypes.hpp.
| float VoltMod::BulletDamage::ShootAngY = 0.0f |
shoot angle y
Definition at line 254 of file EventTypes.hpp.
| float VoltMod::BulletDamage::ShootAngZ = 0.0f |
shoot angle z
Definition at line 255 of file EventTypes.hpp.
| int VoltMod::BulletDamage::Type = 0 |
lag compensation type
Definition at line 267 of file EventTypes.hpp.
| int VoltMod::BulletDamage::VictimSlot = -1 |
player index who was hurt
Definition at line 244 of file EventTypes.hpp.