2022-03-11 20:43:11 +00:00
|
|
|
#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;
|
2022-03-14 23:54:41 +00:00
|
|
|
static const game::native::dvar_t* pm_bounces;
|
2022-03-15 10:10:15 +00:00
|
|
|
static const game::native::dvar_t* pm_playerEjection;
|
|
|
|
static const game::native::dvar_t* pm_playerCollision;
|
2022-03-11 20:43:11 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2022-03-14 23:54:41 +00:00
|
|
|
static void pm_step_slide_move_stub_mp();
|
|
|
|
static void pm_step_slide_move_stub_sp();
|
|
|
|
|
2022-03-15 10:10:15 +00:00
|
|
|
static int stuck_in_client_stub(game::native::gentity_s* self);
|
|
|
|
static void cm_transformed_capsule_trace_stub(game::native::trace_t* results, const float* start,
|
|
|
|
const float* end, const game::native::Bounds* bounds, const game::native::Bounds* capsule,
|
|
|
|
int contents, const float* origin, const float* angles);
|
|
|
|
|
2022-03-11 20:43:11 +00:00
|
|
|
static void patch_mp();
|
|
|
|
static void patch_sp();
|
|
|
|
};
|