|
VoltMod
C++23 framework for CS2 server plugins
|
#include <EventTypes.hpp>
Static Public Member Functions | |
| static PlayerDeath | From (IGameEvent &e) |
Public Attributes | |
| int | Slot = -1 |
| user who died | |
| int | AttackerSlot = -1 |
| player who killed | |
| int | AssisterSlot = -1 |
| player who assisted in the kill | |
| bool | Assistedflash = false |
| assister helped with a flash | |
| std::string | Weapon |
| weapon name killer used | |
| std::string | WeaponItemid |
| inventory item id of weapon killer used | |
| std::string | WeaponFauxitemid |
| faux item id of weapon killer used | |
| std::string | WeaponOriginalownerXuid |
| bool | Headshot = false |
| singals a headshot | |
| int | Dominated = 0 |
| did killer dominate victim with this kill | |
| int | Revenge = 0 |
| did killer get revenge on victim with this kill | |
| int | Wipe = 0 |
| is the kill resulting in squad wipe | |
| int | Penetrated = 0 |
| number of objects shot penetrated before killing target | |
| bool | Noreplay = false |
| if replay data is unavailable, this will be present and set to false | |
| bool | Noscope = false |
| kill happened without a scope, used for death notice icon | |
| bool | Thrusmoke = false |
| hitscan weapon went through smoke grenade | |
| bool | Attackerblind = false |
| attacker was blind from flashbang | |
| float | Distance = 0.0f |
| distance to victim in meters | |
| int | DmgHealth = 0 |
| damage done to health | |
| int | DmgArmor = 0 |
| damage done to armor | |
| VoltMod::HitGroup | Hitgroup = VoltMod::HitGroup::Generic |
| hitgroup that was damaged | |
| bool | Attackerinair = false |
| attacker was in midair | |
Static Public Attributes | |
| static constexpr std::string_view | EventName = "player_death" |
a game event, name may be 32 characters long
Definition at line 1425 of file EventTypes.hpp.
|
static |
Definition at line 1348 of file EventTypes.cpp.
| bool VoltMod::PlayerDeath::Assistedflash = false |
assister helped with a flash
Definition at line 1431 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::AssisterSlot = -1 |
player who assisted in the kill
Definition at line 1430 of file EventTypes.hpp.
| bool VoltMod::PlayerDeath::Attackerblind = false |
attacker was blind from flashbang
Definition at line 1444 of file EventTypes.hpp.
| bool VoltMod::PlayerDeath::Attackerinair = false |
attacker was in midair
Definition at line 1449 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::AttackerSlot = -1 |
player who killed
Definition at line 1429 of file EventTypes.hpp.
| float VoltMod::PlayerDeath::Distance = 0.0f |
distance to victim in meters
Definition at line 1445 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::DmgArmor = 0 |
damage done to armor
Definition at line 1447 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::DmgHealth = 0 |
damage done to health
Definition at line 1446 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::Dominated = 0 |
did killer dominate victim with this kill
Definition at line 1437 of file EventTypes.hpp.
|
staticconstexpr |
Definition at line 1427 of file EventTypes.hpp.
| bool VoltMod::PlayerDeath::Headshot = false |
singals a headshot
Definition at line 1436 of file EventTypes.hpp.
| VoltMod::HitGroup VoltMod::PlayerDeath::Hitgroup = VoltMod::HitGroup::Generic |
hitgroup that was damaged
Definition at line 1448 of file EventTypes.hpp.
| bool VoltMod::PlayerDeath::Noreplay = false |
if replay data is unavailable, this will be present and set to false
Definition at line 1441 of file EventTypes.hpp.
| bool VoltMod::PlayerDeath::Noscope = false |
kill happened without a scope, used for death notice icon
Definition at line 1442 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::Penetrated = 0 |
number of objects shot penetrated before killing target
Definition at line 1440 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::Revenge = 0 |
did killer get revenge on victim with this kill
Definition at line 1438 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::Slot = -1 |
user who died
Definition at line 1428 of file EventTypes.hpp.
| bool VoltMod::PlayerDeath::Thrusmoke = false |
hitscan weapon went through smoke grenade
Definition at line 1443 of file EventTypes.hpp.
| std::string VoltMod::PlayerDeath::Weapon |
weapon name killer used
Definition at line 1432 of file EventTypes.hpp.
| std::string VoltMod::PlayerDeath::WeaponFauxitemid |
faux item id of weapon killer used
Definition at line 1434 of file EventTypes.hpp.
| std::string VoltMod::PlayerDeath::WeaponItemid |
inventory item id of weapon killer used
Definition at line 1433 of file EventTypes.hpp.
| std::string VoltMod::PlayerDeath::WeaponOriginalownerXuid |
Definition at line 1435 of file EventTypes.hpp.
| int VoltMod::PlayerDeath::Wipe = 0 |
is the kill resulting in squad wipe
Definition at line 1439 of file EventTypes.hpp.