forgot those

This commit is contained in:
Skull Merlin 2022-05-09 02:09:05 +03:00
parent 2c59d8a646
commit 27be3db50c
4 changed files with 10 additions and 1 deletions

View File

@ -179,7 +179,7 @@ namespace gameplay
// If g_enableElevators is 1 the 'ducked' flag will always be removed from the player state // If g_enableElevators is 1 the 'ducked' flag will always be removed from the player state
utils::hook::jump(0x1401E1CD1, utils::hook::assemble(pm_trace_stub), true); utils::hook::jump(0x1401E1CD1, utils::hook::assemble(pm_trace_stub), true);
dvars::g_enableElevators = dvars::register_bool("g_enableElevators", false, game::DvarFlags::DVAR_FLAG_NONE, ""); dvars::g_enableElevators = dvars::register_bool("g_enableElevators", false, game::DvarFlags::DVAR_FLAG_NONE, "Enables Elevators");
#endif #endif
auto* timescale = dvars::register_float("timescale", 1.0f, 0.1f, 50.0f, game::DVAR_FLAG_REPLICATED, "Changes Timescale of the game"); auto* timescale = dvars::register_float("timescale", 1.0f, 0.1f, 50.0f, game::DVAR_FLAG_REPLICATED, "Changes Timescale of the game");

View File

@ -24,6 +24,7 @@ namespace dvars
game::dvar_t* g_playerEjection = nullptr; game::dvar_t* g_playerEjection = nullptr;
game::dvar_t* g_playerCollision = nullptr; game::dvar_t* g_playerCollision = nullptr;
game::dvar_t* player_sustainAmmo = nullptr; game::dvar_t* player_sustainAmmo = nullptr;
game::dvar_t* g_enableElevators = nullptr;
game::dvar_t* jump_enableFallDamage; game::dvar_t* jump_enableFallDamage;

View File

@ -27,6 +27,7 @@ namespace dvars
extern game::dvar_t* g_playerEjection; extern game::dvar_t* g_playerEjection;
extern game::dvar_t* g_playerCollision; extern game::dvar_t* g_playerCollision;
extern game::dvar_t* player_sustainAmmo; extern game::dvar_t* player_sustainAmmo;
extern game::dvar_t* g_enableElevators;
extern game::dvar_t* jump_enableFallDamage; extern game::dvar_t* jump_enableFallDamage;

View File

@ -1430,6 +1430,9 @@ namespace game
struct trace_t struct trace_t
{ {
char __pad0[41];
bool allsolid;
bool startsolid;
}; };
struct Bounds struct Bounds
@ -1438,6 +1441,10 @@ namespace game
float halfSize[3]; float halfSize[3];
}; };
struct pmove_t
{
};
enum PlayerHandIndex enum PlayerHandIndex
{ {
WEAPON_HAND_DEFAULT = 0x0, WEAPON_HAND_DEFAULT = 0x0,