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

#include <WeaponDrop.hpp>

Public Attributes

int Slot = -1
 
bool Swapping = false
 
bool Blocked = false
 

Detailed Description

A player dropping a weapon themselves, as a WeaponDrop::Before handler sees it.

Definition at line 15 of file WeaponDrop.hpp.

Member Data Documentation

◆ Blocked

bool VoltMod::WeaponDropRequest::Blocked = false

Set to keep the weapon; the game drops nothing.

Definition at line 21 of file WeaponDrop.hpp.

◆ Slot

int VoltMod::WeaponDropRequest::Slot = -1

Definition at line 17 of file WeaponDrop.hpp.

◆ Swapping

bool VoltMod::WeaponDropRequest::Swapping = false

True when a weapon being picked up pushes this one out; false for the drop key.

Definition at line 19 of file WeaponDrop.hpp.


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