|
VoltMod
C++23 framework for CS2 server plugins
|
Pawn::HoldFire that can be let go: a release hands the weapon back the wait it had, so the next click fires at once. Keep one per player. More...
#include <FireHold.hpp>
Public Member Functions | |
| void | Hold (const Pawn &pawn, const Clock &clock) |
| void | Release (const Pawn &pawn) |
Pawn::HoldFire that can be let go: a release hands the weapon back the wait it had, so the next click fires at once. Keep one per player.
Definition at line 13 of file FireHold.hpp.
Keep pawn's weapon in hand from firing, as Pawn::HoldFire does; call it every frame to hold.
Definition at line 7 of file FireHold.cpp.
References VoltMod::Pawn::ActiveWeapon(), VoltMod::HoldFireTick(), VoltMod::Schema::CBasePlayerWeapon::NextPrimaryAttackTick(), VoltMod::Schema::CBasePlayerWeapon::NextSecondaryAttackTick(), VoltMod::Entity::Raw(), VoltMod::Entity::Ref(), VoltMod::Schema::CBasePlayerWeapon::SetNextPrimaryAttackTick(), and VoltMod::Schema::CBasePlayerWeapon::SetNextSecondaryAttackTick().
| void VoltMod::FireHold::Release | ( | const Pawn & | pawn | ) |
Lets the held weapon fire again at its own pace, then forgets it.
Definition at line 30 of file FireHold.cpp.
References VoltMod::Pawn::ActiveWeapon(), VoltMod::Schema::CBasePlayerWeapon::NextPrimaryAttackTick(), VoltMod::Schema::CBasePlayerWeapon::NextSecondaryAttackTick(), VoltMod::Entity::Raw(), VoltMod::Entity::Ref(), VoltMod::Schema::CBasePlayerWeapon::SetNextPrimaryAttackTick(), and VoltMod::Schema::CBasePlayerWeapon::SetNextSecondaryAttackTick().