Add customizable speed scale for stance

This commit is contained in:
FutureRave 2021-11-07 11:09:00 +00:00
parent 3cbe6e820c
commit 1112eba7fa
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
4 changed files with 36 additions and 0 deletions

View File

@ -104,6 +104,7 @@ namespace Components
Loader::Register(new Gamepad()); Loader::Register(new Gamepad());
Loader::Register(new Chat()); Loader::Register(new Chat());
Loader::Register(new TextRenderer()); Loader::Register(new TextRenderer());
Loader::Register(new Movement());
Loader::Register(new Client()); Loader::Register(new Client());

View File

@ -132,6 +132,7 @@ namespace Components
#include "Modules/SoundMutexFix.hpp" #include "Modules/SoundMutexFix.hpp"
#include "Modules/Chat.hpp" #include "Modules/Chat.hpp"
#include "Modules/TextRenderer.hpp" #include "Modules/TextRenderer.hpp"
#include "Modules/Movement.hpp"
#include "Modules/Gamepad.hpp" #include "Modules/Gamepad.hpp"
#include "Modules/Client.hpp" #include "Modules/Client.hpp"

View File

@ -299,6 +299,9 @@ namespace Components
// Uncheat ui_debugMode // Uncheat ui_debugMode
Utils::Hook::Xor<BYTE>(0x6312DE, Game::dvar_flag::DVAR_FLAG_CHEAT); Utils::Hook::Xor<BYTE>(0x6312DE, Game::dvar_flag::DVAR_FLAG_CHEAT);
// Remove unknown flag (to prevent unknown behaviour)
Utils::Hook::Xor<BYTE>(0x448B42, Game::dvar_flag::DVAR_FLAG_UNKNOWN80);
// Hook dvar 'name' registration // Hook dvar 'name' registration
Utils::Hook(0x40531C, Dvar::RegisterName, HOOK_CALL).install()->quick(); Utils::Hook(0x40531C, Dvar::RegisterName, HOOK_CALL).install()->quick();

View File

@ -6876,6 +6876,37 @@ namespace Game
const char* args[9]; const char* args[9];
}; };
struct pmove_s
{
playerState_s* ps;
usercmd_s cmd;
usercmd_s oldcmd;
int tracemask;
int numtouch;
int touchents[32];
char __pad0[24];
float xyspeed;
int proneChange;
float maxSprintTimeMultiplier;
bool mantleStarted;
float mantleEndPos[3];
int mantleDuration;
int viewChangeTime;
float viewChange;
float fTorsoPitch;
float fWaistPitch;
unsigned char handler;
};
enum EffectiveStance
{
PM_EFF_STANCE_DEFAULT = 0,
PM_EFF_STANCE_PRONE = 1,
PM_EFF_STANCE_DUCKED = 2,
PM_EFF_STANCE_LASTSTANDCRAWL = 3,
PM_EFF_STANCE_COUNT = 4
};
#pragma endregion #pragma endregion
#ifndef IDA #ifndef IDA