22 lines
605 B
C++
22 lines
605 B
C++
|
#pragma once
|
||
|
#include "loader/module_loader.hpp"
|
||
|
#include "game/game.hpp"
|
||
|
|
||
|
class player_movement final : public module
|
||
|
{
|
||
|
public:
|
||
|
void post_load() override;
|
||
|
|
||
|
private:
|
||
|
static const game::native::dvar_t* player_sustainAmmo;
|
||
|
|
||
|
static void pm_weapon_use_ammo(game::native::playerState_s* ps, const game::native::Weapon weapon,
|
||
|
bool isAlternate, int amount, game::native::PlayerHandIndex hand);
|
||
|
|
||
|
static const game::native::dvar_t* dvar_register_player_sustain_ammo(const char* dvar_name,
|
||
|
bool value, unsigned __int16 flags, const char* description);
|
||
|
|
||
|
static void patch_mp();
|
||
|
static void patch_sp();
|
||
|
};
|